tweenerを使ってみたが失敗,そして成功
package {
import flash.display.Sprite;
import flash.events.Event;
import flash.events.MouseEvent;
import caurina.transitions.*;
import caurina.transitions.properties.*;
public class FlashTest extends Sprite {
private var circle:Sprite;
public function FlashTest() {
init();
}
private function init():void {
circle = new Sprite();
circle.graphics.beginFill(0xff0000);
circle.graphics.drawCircle(0, 0, 30);
circle.graphics.endFill();
circle.x = 5;
circle.y = stage.stageHeight/2;
circle.alpha = 0.8;
circle.width = 15;
circle.height = 15;
circle.name = "circle";
addChild(circle);
stage.addEventListener(MouseEvent.CLICK, onClick);
}
private function onClick(event:MouseEvent):void {
Tweener.addTween(circle, {width:200, height:200, time:3, alpha:1, transition:"easeoutelastic"});
}
}
}