flash on 2009-7-6
♥0 |
Line 17 |
Modified 2009-07-06 17:41:53 |
MIT License
archived:2017-03-20 06:18:54
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/s3aM
*/
package {
import flash.display.Sprite;
public class Ball extends Sprite{
public function Ball(){
init();
}
private function init():void{
var ball:Sprite = new Sprite();
ball.graphics.beginFill(0xff0000);
ball.graphics.drawCircle(0,0,80);
ball.graphics.endFill();
ball.x =stage.stageWidth /2;
ball.y = stage.stageHeight /2;
addChild(ball);
}
}
}