PDA

View Full Version : Restarting a One Frame Movie.


thawki
02-28-2002, 05:06 PM
I have a training module with different steps. Each step brings the user to a different area of a movieclip off the main timeline. I want to create a button that will restart the movieclip, which I have done successfully, but also, go back to the 1st frame. But wait there is only one frame. Any Ideas? Can I do this without reloading the .swf?

Thanks.

Tim

Ricod
02-28-2002, 05:26 PM
You're a bit vague ... explain to me plz.
U have 1 frame on the main timeline, with an mc and a button ?
With the button u restart the mc ... Then what else is there to restart ?

thawki
02-28-2002, 07:19 PM
I will try to be more specific.

Each movie has 4 or 5 steps. There is one mc that is played using gotoAndStops as the user makes their way down the steps. At which time, these steps become _visible or highlighted if you will.

My problem is that I want to be able to have the user start back at the first step without putting in all the code (e.g Step 3._visible = false; Step 1._visible=true;). Remember this is a one frame movie. So I can't just put gotoAndPlay(1);.

I know I can restart the movie clip on the button action, I just wanted to know if there was a way to RELOAD or RESTART, LOAD or UNLOAD the scene.

Hope this clarifies it a bit.

Thanks.
Tim

pixelwit
02-28-2002, 10:15 PM
I'm not sure, but you may be able to place a blank keyframe in frame 2 of your single frame clip and a stop action in the first frame.

Then to clear and reset your clip that now has 2 frames, send it to frame 2 to clear all contents, then send it back to frame 1 to reload all content from the begining.

Maybe it will help,

-PiXELWiT
http://www.pixelwit.com

thawki
02-28-2002, 10:25 PM
Thanks Pixelwit. I feel like such a @$%@. That Worked! I somehow thought that by adding that 2nd Frame, it would flash that frame before going seemlessly back to the start of Frame 1.

:)

pixelwit
02-28-2002, 10:39 PM
Don't feel like a @$%@. One thing I've noticed is that a good answer to a problem usually looks simple. Just because you didn't think of one of the many different ways to solve a problem doesn't mean your an @$%@.

Okay, I'm done my pep talk now.

-PiXELWiT
http://www.pixelwit.com

thawki
03-07-2002, 08:28 PM
As this post stated...I had done the recommend thing of putting an empty keyframe at frame 2 saying gotoAndPlay(1);

And then on the reset button I say goto 2 and play and it resets the movie...

THE PROBLEM IS - when the power button is pressed. It goes to the Preloader of the .swf first. How can I avoid this? Some time of If Loaded Statement?

Thanks for any help in advance.

Tim