Replay button

Hello everyone…

I don’t have the time to read all post in this forum, so I (myabe) could help myself, but… I have a little problem with a animation… ( you can se my animation here: www.john5.dk/horror.html )
How do I make a “replay” button on my animation??

(When the “movie” is over, I want to click on a button, and see the “movie” again)

Hope you understand… sorry for my bad english :S

Chris…

You expect people to help you but you wont help yourself :roll:

on(release){
mc_to_reply.gotoAndPlay(1);
}

That should do it, place it on the replay button

No I don’t expect it, I just think that would be alot easier to ask, than search hours and hours on this board… :stuck_out_tongue:

anyway it dosen’t work…

It doesnt take hours…
Besides it does work, if the animation is on the main timeline then replace mc_to_reply with _root, or _parent if its relative parent

Put this code on a movieclip that represents the replay button
on(release){
_parent.gotoAndPlay(1);
}

Well I’m a noob to flash… would you please see my .fla ??

http://john5.dk/wallpapers/horror.fla

:blush:

Im just sticking the fla up somewhere so you can have it, but all you need todo is give the head an instance name(in the properties area, i called it mc_head)
Then click the replay button, open up the actions panel and add this code :wink:
on(release){
mc_head.gotoAndPlay(1);
}

Works a treat

http://www.lounge8.com/ntshp/horror-1.swf
http://www.lounge8.com/ntshp/horror-1.fla

Ok … well it works! Thanks alot :smiley: !

no probs :wink: