-
[CS3] Tweener code help
Hello,
I got this code which works really well (below), when one movie clip is on the stage. Now I want multiple movies/buttons and the other buttons don't seem to work. What do I need to do?
I've changed the instance name to "scale_mc1" but not sure where to put it.
Rather than having the code in the timeline, should I put it on the symbol itself?
thanks
----------------------------
import mx.transitions.Tween;
import flash.geom.ColorTransform;
import flash.geom.Transform;
var myTween:Tween = new Tween(scale_mc, "_xscale", mx.transitions.easing.Elastic.easeOut, 100, 200, 1, true);
var myTween1:Tween = new Tween(scale_mc, "_yscale", mx.transitions.easing.Elastic.easeOut, 100, 200, 1, true);
var myTween2:Tween = new Tween(scale_mc, "_xscale", mx.transitions.easing.Elastic.easeOut, 200, 100, 1, true);
var myTween3:Tween = new Tween(scale_mc, "_yscale", mx.transitions.easing.Elastic.easeOut, 200, 100, 1, true);
scale_mc.onRollOver = function():Void {
myTween.start();
myTween1.start();
};
scale_mc.onRollOut = function():Void {
myTween2.start();
myTween3.start();
};
import mx.transitions.Tween;
import flash.geom.ColorTransform;
import flash.geom.Transform;
var myTween:Tween = new Tween(scale_mc, "_xscale", mx.transitions.easing.Elastic.easeOut, 100, 200, 1, true);
var myTween1:Tween = new Tween(scale_mc, "_yscale", mx.transitions.easing.Elastic.easeOut, 100, 200, 1, true);
var myTween2:Tween = new Tween(scale_mc, "_xscale", mx.transitions.easing.Elastic.easeOut, 200, 100, 1, true);
var myTween3:Tween = new Tween(scale_mc, "_yscale", mx.transitions.easing.Elastic.easeOut, 200, 100, 1, true);
scale_mc.onRollOver = function():Void {
myTween.start();
myTween1.start();
};
scale_mc.onRollOut = function():Void {
myTween2.start();
myTween3.start();
};
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
|