flash on 2010-12-9
♥0 |
Line 18 |
Modified 2010-12-09 20:43:46 |
MIT License
archived:2017-03-20 05:35:36
ActionScript3 source code
/**
* Copyright enecre ( http://wonderfl.net/user/enecre )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/1KIw
*/
package {
import flash.display.Graphics;
import flash.display.Sprite;
import caurina.transitions.Tweener;
public class FlashTest extends Sprite {
public function FlashTest() {
// write as3 code here..
var s:Sprite = new Sprite();
var g:Graphics = s.graphics
g.beginFill(0xaaaaff);
g.drawRect(0, 0,100,100);
g.endFill();
this.addChild(s);
Tweener.addTween(s, {x:300, y:200, time:1.0, onComplete: function():void{
Tweener.addTween(s, {x: 100, time:2.0});
}});
}
}
}