girlneedshelp
05-24-2008, 06:07 AM
Hello I have this code that I would like to use as a button and be able to duplicate the button. I would like it to go to a frame label called "start" and the second button to go to finish.
Everything I have tried is not working.
First this script was on a layer in the timeline, I then embeded inside the movieclip. Help would be so appreciated :)
Here's the file as well (http://www.whereistilly.com/scale_tween.fla)
import mx.transitions.Tween;
import flash.geom.ColorTransform;
import flash.geom.Transform;
var myTween:Tween = new Tween(scale_mc2, "_xscale", mx.transitions.easing.Elastic.easeOut, 100, 200, 1, true);
var myTween1:Tween = new Tween(scale_mc2, "_yscale", mx.transitions.easing.Elastic.easeOut, 100, 200, 1, true);
var myTween2:Tween = new Tween(scale_mc2, "_xscale", mx.transitions.easing.Elastic.easeOut, 200, 100, 1, true);
var myTween3:Tween = new Tween(scale_mc2, "_yscale", mx.transitions.easing.Elastic.easeOut, 200, 100, 1, true);
scale_mc2.onRollOver = function():Void {
myTween.start();
myTween1.start();
};
scale_mc2.onRollOut = function():Void {
myTween2.start();
myTween3.start();
};
Everything I have tried is not working.
First this script was on a layer in the timeline, I then embeded inside the movieclip. Help would be so appreciated :)
Here's the file as well (http://www.whereistilly.com/scale_tween.fla)
import mx.transitions.Tween;
import flash.geom.ColorTransform;
import flash.geom.Transform;
var myTween:Tween = new Tween(scale_mc2, "_xscale", mx.transitions.easing.Elastic.easeOut, 100, 200, 1, true);
var myTween1:Tween = new Tween(scale_mc2, "_yscale", mx.transitions.easing.Elastic.easeOut, 100, 200, 1, true);
var myTween2:Tween = new Tween(scale_mc2, "_xscale", mx.transitions.easing.Elastic.easeOut, 200, 100, 1, true);
var myTween3:Tween = new Tween(scale_mc2, "_yscale", mx.transitions.easing.Elastic.easeOut, 200, 100, 1, true);
scale_mc2.onRollOver = function():Void {
myTween.start();
myTween1.start();
};
scale_mc2.onRollOut = function():Void {
myTween2.start();
myTween3.start();
};