change the position of the MovieClip using Tween in AS 3.0
import fl.transitions.Tween;
import fl.transitions.easing.*;
var _time_duration:Number=2;
var _startX:Number=0;
var _startY:Number=0;
var _endX:Number=500;
var _endY:Number=300;
var __tweenX = new Tween(mc,"x",Regular.easeOut,_startX,_endX,_time_duration,true);
var __tweenY = new Tween(mc,"y",Regular.easeOut,_startX,_endY,_time_duration,true);
Thursday, December 17, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment