View Full Version : scale with a growing effect
NickMalloy
03-31-2003, 08:02 PM
How do you scale an object in actionscript to give it the effect of getting larger. Just like you would do with a motion tween, but I want to do it with actionscript.
Jesse
03-31-2003, 09:13 PM
You create a loop of some kind, be it two frames looping back and forth inside a movieclip, an onClipEvent or an Interval. If you're using FLash MX I'd suggest intervals, see the Intervals tutorial. If you don't want to do that, throw this code on the MC:
// THis will make an MC just grow and grow forever.
onClipEvent (enterFrame) {
this._xscale += 5;
this._yscale += 5;
}
NickMalloy
03-31-2003, 09:30 PM
what does this mean?
Symbol=southeaststatemovie, Layer=Layer 10, Frame=20: Line 1: Clip events are permitted only for movie clip instances
onClipEvent (enterFrame) {
Jesse
03-31-2003, 09:51 PM
It means you've not put the code on a MovieClip... I assumed the thing you wanted to resize was a movieclip.
NickMalloy
04-01-2003, 12:52 PM
how do you put the code on a movie clip? I selected my movie clip and then put the code in the actions panel, that didn't work. I double clicked the movie and put the code in frame 1 and that didn't work?
NickMalloy
04-01-2003, 01:03 PM
nevermind I figured it out. sorry
|
vBulletin® v3.8.5, Copyright ©2000-2012, Jelsoft Enterprises Ltd.