-
replay movie from within clip
I have a button within a movie clip in the main time line of the second scene of my FlashMX .fla.
When you click it I want it to replay the whole movie ie. go back to frame one of Scene 1 and play. If I move the button out of the movie clip and onto the main timeline it works but if it's inside a movie clip it doesn't. What gives??!
cz
-
Senior Member
probably need to add a _root
i.e.
_root.whateverMC.gotoandPlay()
-
Yes _root would have to be added, but you can't target a scene name, if that's what you were doing.
You must target a frame number, or much better, a labeled frame on the main timeline...
code:
on(release){
_root.gotoAndPlay("frame_label");
}
-
thanks guys
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|