flash on 2010-12-9
♥0 |
Line 25 |
Modified 2010-12-09 18:46:29 |
MIT License
archived:2017-03-20 05:43:16
ActionScript3 source code
/**
* Copyright genny ( http://wonderfl.net/user/genny )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/deWh
*/
package {
import flash.display.Sprite;
import caurina.transitions.Tweener;
import caurina.transitions.properties.*;
public class FlashTest extends Sprite {
public function FlashTest() {
CurveModifiers.init();
init();
}
private function init():void
{
var sp:Sprite = new Sprite();
sp.graphics.beginFill(0x000000);
sp.graphics.drawCircle(0, 0, 20);
sp.graphics.endFill();
addChild(sp);
Tweener.addTween(sp, {
x: 200,
y: 100,
_bezier:[{x:200,y:300}],
transition:"linear",
time: 2 });
}
}
}