forked from: flash on 2010-5-12
/**
* Copyright yasu ( http://wonderfl.net/user/yasu )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/hbow
*/
// forked from yasu's flash on 2010-5-12
package {
import flash.display.Sprite;
import fl.transitions.Tween;
import fl.transitions.easing.*;
public class FlashTest extends Sprite {
private const SW:Number = stage.stageWidth;
private const SH:Number = stage.stageHeight;
public function FlashTest() {
var circle:Circle = new Circle();
circle.y = SH/2;
addChild(circle);
new Tween(circle, "x", Elastic.easeOut, 0, SW/2, 3, true);
}
}
}
import flash.display.Shape;
class Circle extends Shape {
public function Circle():void {
graphics.beginFill(0xff0000);
graphics.drawCircle(0,0,50);
graphics.endFill();
}
}