flash on 2009-7-7
♥0 |
Line 19 |
Modified 2009-07-07 10:51:11 |
MIT License
archived:2017-03-20 06:18:47
ActionScript3 source code
/**
* Copyright albatrus ( http://wonderfl.net/user/albatrus )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/qiJn
*/
package {
import flash.display.Sprite;
public class FlashTest extends Sprite {
private var vx:Number = 0;
private var vy:Number = 0;
public function FlashTest() {
init();
}
private function init():void{
var ball:Sprite = new Sprite();
ball.graphics.beginFill(0xff00ff);
ball.graphics.drawCircle(0,0,40);
ball.graphics.endFill();
ball.x = stage.stageWidth / 2;
ball.y = stage.stageHeight / 2;
addChild(ball);
}
}
}