-
Playing mc's through other AS
Hi All,
Does anyone know how I can do the following please?
If I have a movie clip on my timeline that has say 200 frames to it with a stop action every 10 frames to signal frame with content for the viewer.
What I want to do is have buttons that tell the mc to go to a certain frame - but rather than just slipping to the relevant frame I want it to play the mc through to that frame, ignoring all other stop actions just playing the timeline until it reaches the button specific frame.
For example the mc is on frame 1 and click button 3 - the movie clip then plays from 1 - 60 passing through the frames with the stop action on it.
Hope that makes sense! and hope someone can tell me how to do it )
Thanks in anticipation
D
-
Just through in a variable.
var num:Number = 0;
button1: plan to reach 60 from 1. gotoAndPlay(1); At frame sixty type if (num == 1){ stop;}
button2: plan to reach 40 from 20. gotoAndPlay(20); At frame forty type if (num == 2){stop;}
Get the idea?
-
oh yes on button 1 you would need to make num = 1; and button 2 num = 2;
-
thanks for that SWAK, I'm a little foggy as to what you mean! sorry!
do you have a fla for me to study? Thanks for the reply though.
-
Here's your fla, hope you're using flash 8
I quickly baked this up. Hope it's clear enough. I have it on flash 8.
Last edited by swak; 10-08-2007 at 07:42 AM.
.
-
...cheers for that SWAK! Looks the biz amigo
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
|