I always use mx.effects.Tween and i never use mx.transitions.Tween

example :

import mx.effects.Tween;
import mx.transitions.easing.*;

this.createEmptyMovieClip( "mc" , this.getNextHighestDepth() );
mc.beginFill( 0x00 , 100 );
mc.lineTo( 10 , 0 );
mc.lineTo( 10 , 10 );
mc.lineTo( 0 , 10 );
mc.lineTo( 0 , 0 );
mc.endFill();

function onTweenEnd( values:Array ):Void
{
   this.onTweenUpdate( values );
}
function onTweenUpdate( values:Array ):Void
{
   mc._x = values[0];
   mc._y = values[1];
}
var tw:Tween = new Tween( this , [0,0] , [ 250 , 100 ] , 1000 );
tw.easingEquation = Back.easeOut;


what Tween class is better?


thx

MauricioMassaia
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to