flash on 2009-10-10

by hacker_9p8x8mco
♥0 | Line 21 | Modified 2009-10-10 17:30:43 | MIT License
play

ActionScript3 source code

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

package{
    import flash.display.Sprite;
    
    public class flashTest extends Sprite{
        public  function flashTest(){
            var s1:Sprite = new Sprite();
            s1.graphics.lineStyle(1,0xff0000);
            s1.graphics.drawCircle(0,0,50);
            s1.x = 100;
            s1.y = 100;
            addChild(s1);
            
            var s2:Sprite = new Sprite();
            s2.graphics.lineStyle(1,0x0000ff);
            s2.graphics.beginFill(0xffffff);
            s2.graphics.drawRect(0,0,50,50);
            s2.graphics.endFill();
            s2.x = 150;
            s2.y = 50;
            addChild(s2);    
        }                 
    }        
}