Hello,
I have some animation what i did on timeline in flash GUI and I need to do the same in code. So I extracted object info like (position, scale, rotation etc) from each frame of animation from swf.
And now i need to do the animation in as3
So I need to say to MaxTween to animate my object through points (pos.x, pos.y) which I have. But only through this points.
I tried to do
__path -> is array of my points
var path:LinePath2D = new LinePath2D(__path);
var f:PathFollower = path.addFollower(__object, 0);
var tween:TweenMax = TweenMax.to(f, 5, {progress: 0, onComplete:OnComplete, onUpdate:OnUpdateTween});
But its going via different points.
I just need to do animation only through points what I defined.
So if I define 6 points and set the duration of animation to 5 seconds the object must change the position every second to the next defined points.
So simply I just need to convert animation from flash gui to code.