flash on 2011-7-1
♥0 |
Line 23 |
Modified 2011-07-01 18:05:00 |
MIT License
archived:2017-03-20 10:00:06
ActionScript3 source code
/**
* Copyright gogo178 ( http://wonderfl.net/user/gogo178 )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/cSKl
*/
package
{
import flash.display.*;
import flash.events.*;
/**
* ...
* @author GO
*/
public class Main extends Sprite
{
public function Main():void
{
init();
}
private function init():void
{
var sp:Sprite = new Sprite();
sp.x = stage.stageWidth * 0.5;
sp.y = stage.stageHeight * 0.5;
var g:Graphics = sp.graphics;
g.beginFill(0xFF0000);
g.drawCircle(0, 0, 50);
g.endFill();
addChild(sp);
}
}
}