Groups | Blog | Home
all groups > flash actionscript > april 2005 >

flash actionscript : need a movie clip to point back to main timeline


bertjeb
4/25/2005 12:00:00 AM
when you want to move the timeline to a frame label you have to put the name of
the label between " " cause else flash thinks it's a variable and tries to find
the content of that variable.
The code is:
_root.gotoAndPlay("text2");


Matt Miller
4/25/2005 3:56:16 PM
Hi,

I have several movie clips that contain a text animation and I need each one
to play to the end, stop, and then point back to the next frame on the main
timeline where I have the the next clip placed to start. For example, the
main timeline stops on a frame labeled "text1". This contains my first movie
clip (text clip 1). On it's last frame, that movie clip contains the script:
stop();
gotoAndPlay(_root, text2);
Where I am using "_root" to try to point back to the main timeline and
"text2" is one frame after "text1". The frame labeled "text2" contains the
second movie clip and the process will repeat with several movie clips.
I have also tried the script:
stop();
_root.gotoAndPlay(text2);
When I test the movie, "text clip 1" just repeats and it doesn't seem to
recognize the request to make the main timeline jump forward to the next
clip.
Oh yeah, I'm using Flash MX Pro 2004. Any ideas to get this working would be
appreciated.

Thanks,
Matt

AddThis Social Bookmark Button