flash on 2009-10-14

by sinclairc5
♥0 | Line 23 | Modified 2009-10-14 06:56:06 | MIT License
play

ActionScript3 source code

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

package
{
    import flash.display.Sprite;
    
    public class FlashTest extends Sprite
     {
        public function FlashTest()
        {           
           addChild( new Game() );            
        }
    }
}
    /********************************************/
    
    import flash.display.Sprite;
    import flash.display.Graphics;
    
    class Game extends Sprite
    {
       public function Game()
       {
            graphics.beginFill(0x999111, 1);
            graphics.lineStyle(1, 0x666666, 1);
            graphics.drawRect(0, 0, 10, 10);
            graphics.endFill();
       } 
    }