View Full Version : Stop scaling at specific frame number - Is this ridiculous?
I'm trying to stop my scaling action script at a certain frame number (or label) in a movie clip and then start it again at another frame number (or label).
So say a movie clip is 30 frames long. It scales from frame 1 - 10, remains at the size it was scaled to at frame 10 from frame 11 - 20, and then begins scaling again from 21-30.
I guess I could do it all in the main timline, but I want it to be neater than that. 8)
Hi,
Put a stop action on the frame you want it to stop on,..... then to restart it.....
_root.mcName.gotoAndPlay('frameLabel')
sounds like the start of a plan. but will the scaling action stop if the movie clip stops? my scaling action is in my main timeline. i want the scaling action to stop (at a certain frame in the attached movie clip) and my movie clip to keep playing. perhaps i wasn't clear??? dig the flash drums btw.
./h
Hi,
It sounded as though you were using a motion tween in a movieclip to achieve the scale. If your using actionscript , you would need to establish the bounds for the scale effect. If your scaleing your MC from the main timeline, it wont effect the playing of the MC. You can control that in setting the bounds.........
if (_root.mcName._xscale >=150) {
_root._xscale = 150;
_root.mcName.gotoAndStop('someFrameLabel');
}else if (_root._yscale>=150) {
_root._yscale = 150;
_root.mcname.gotoAndStop('someFrameLabel');
}else{
_root.mcName.play();
}
If your using width and height properties to scale the clip, setting the bounds is the same, just change methods.
i like it. i'll give it a whirl.
Powered by vBulletin™ Version 4.1.1 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.