2010年11月2日 星期二

[AS3] Tweener類別_Tweening Parameters>>base

SWF瀏覽


// WITH base, using an array of base objects:
import caurina.transitions.Tweener;
import flash.display.MovieClip;
import flash.events.MouseEvent;

var aOri:Object = {x:a_mc.x, y:a_mc.y, transition:"easeInOutBounce", time:2};
var myFade:Object = {x:450, time:1};
Tweener.addTween(a_mc, {base:myFade, y:300});

a_mc.addEventListener(MouseEvent.CLICK, oriFun);
function oriFun(e:MouseEvent){
 Tweener.addTween(e.currentTarget, aOri);
}

沒有留言: