PDA

View Full Version : Help, please!


malphonic
09-30-2006, 03:15 AM
Hello all,

I am new to all of this, so sorry for the newb questions. Anyways,

I made a 20 second clip, and want it to stop at the last frame.

On the last frame it will say: "The End", and "Play again?"

How do I make it stop on the last frame, and make it so if you click "Play again?" it will restart and repeat the procesess?

Thanks!

stompwampa
09-30-2006, 03:28 AM
use action script. in the last frame:


stop ();



Then, on the symbol that says "Play Again" put action script on the symbol:

playagain.onrelease.gotoandplay (1);

malphonic
09-30-2006, 03:31 AM
Thanks, but when I add stop, do I make another frame?

And, how do I make it so it makes "play again" play, I know you use "
playagain.onrelease.gotoandplay (1);", but how do I associate that with the "play again?" text?

What steps? Speccificly?

stompwampa
09-30-2006, 03:45 AM
i'm still pretty new to flash too...so someone else it probably a little better versed...but I'll try.

Lets' say your movie is 15 frames long.
The movie will loop by default, you need to put the "stop" script in the frame you want the movie to stop on. So, assuming frame 15 has your "Play Again" button, you'll want to put

stop ();

in frame 15.

Also, now that I think about it, it would be easier to use behaviors on the "Play Again" button to make it go to the beginning.

Make your "Play Again" into a symbold. (Right click/convert to symbol) and make it a Button.
Click on your new button, and go to the Behaviors pannel.
Choose MovieClip/Go to and Play at Frame or Label
In the dialog box that pops up, choose Root (it should be the only option since your movie is so small)
and make sure that there is a "1" in the text box, so it will go to frame 1.

That should work.

malphonic
09-30-2006, 03:50 AM
Oh my god!

Thank you so much!

Woot!

:D :D :D

stompwampa
09-30-2006, 03:58 AM
you bet. i assume it worked then? ;)

malphonic
09-30-2006, 07:01 AM
Yes, thank you very much, once again.