Grow/Shrink Circle with AS
Below is what i have, i can get it to grow but not shrink... heh.. anyways I don't use AS usually when developing websites so i'm a complete beginner
The AS is on a a frame in the timeline and the mc is on a layer/ frame below it that extends for about 30 frames
thanks for any assistance
Code:
import flash.display.MovieClip;
import fl.transitions.Tween;
import fl.motion.Tweenables;
import fl.transitions.easing.Strong;
import fl.transitions.easing.None;
import fl.transitions.TweenEvent;
var tweenScaleX : Tween;
var tweenScaleY : Tween;
function grow(mc : MovieClip) : void
{
tweenScaleX = new Tween(mc, Tweenables.SCALE_X, None.easeNone, mc.scaleX, 2, .2, true);
tweenScaleY = new Tween(mc, Tweenables.SCALE_Y, None.easeNone, mc.scaleY, 2, .2, true);
tweenScaleX.addEventListener(TweenEvent.MOTION_FINISH, shrink);
}
grow(myCircle);
How to control the growing and shrinking with a mouse click
i am really impress by this code but is there any way to edit it so the growing and shrinking of the circle is controled by a mouse click?