Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to stop a movie clip and move to another one?

Status
Not open for further replies.

hope8nzc

Technical User
Jun 30, 2009
2
I have a problem and I wonder if I can get help, it isn't such a big problem bur for a beginner like me it is.

I have a movie clip called Lion Beginning_mc, inside of it I have 3 Key Frames and Inside each and one of them I have different shapes.
For example:
Key Frame number 01 - Dog
Key Frame number 02 - Cat
Key Frame number 03 - Mouse

I want to move this movie clip "Lion Beginning_mc" form Key frame number 1 to Key frame number 20.

I want the Dog,Cat and a mouse to change between each other only once while moving from Key Frame number 1 to 20.
And then when the movie clip "Lion Beginning_mc" reaches his goal another movie clip or a frame (with a shape) will start.

Thanks hope8nzc

P.S
Action Script 3.0, Flash CS3
 
I'm a newbie so sorry if I'm not getting it, I don't know if I"m doing it right.
Where should I write it? "lion_beginning_mc.gotoAndStop(3);"
Inside of the movie clip? The first frame of the last one?

I tried it and Flash said I have an Error, I probably didn't write it right.
 
If you are writing the script in the main time line it would be:
[tt]lion_beginning_mc.gotoAndStop(3);[/tt]
(assuming you have your MovieClip in the main timeline (stage))

Or of you writing in the MovieClip, it would be:
[tt]gotoAndStop(3);[/tt]

Kenneth Kawamoto
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top