flash on 2013-3-11

by ifree
♥0 | Line 20 | Modified 2013-03-15 00:51:25 | MIT License
play

ActionScript3 source code

/**
 * Copyright ifree ( http://wonderfl.net/user/ifree )
 * MIT License ( http://www.opensource.org/licenses/mit-license.php )
 * Downloaded from: http://wonderfl.net/c/xxyC
 */

package {
    import flash.text.TextField;
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            // write as3 code here..
            addChild(new RedBall);
            
        }
    }
}
import flash.display.Graphics;
import flash.display.Sprite;

class RedBall extends Sprite
{
   function RedBall(){
       var g:Graphics=graphics;
       g.beginFill(0xff0000);
       g.drawCircle(100,100,100);
       g.endFill();
   }
   
    
}