Posted in Adobe, Flash
08/17 2006

AS2 :: Animator Class

Nothing special here. This is just a helper class for the TileMaker class. It only has (1) method animate which I made static so you don’t have to create instances of this class.

import mx.transitions.Tween;
import mx.transitions.easing.*;
 
class org.thesourcecode.effects.Animator extends MovieClip
{
 
	private function Animator(){ super(); }
 
	static public function animate( clip:MovieClip, newx:Number, newy:Number, tweenType:Function )
	{
		var xTween:Tween =  new Tween( clip,"_x",tweenType,clip._x,newx,3,true );
		var yTween:Tween =  new Tween( clip,"_y",tweenType,clip._y,newy,3,true );
	}
}

This class is part of the easy-install extenstion for the TileMaker class.
No documentation necessary.

This Post tags:

 

USER COMMENTS

Track comments via RSS 2.0 feed. Feel free to post the comment, or trackback from your web site.

Currently there are no comments related to article "AS2 :: Animator Class".

Get Adobe Flash playerPlugin by wpburn.com wordpress themes