forked from: ExtentionExample

by hacker_xaotp5zq forked from ExtentionExample (diff: 49)
♥0 | Line 21 | Modified 2010-01-25 01:03:04 | MIT License
play

ActionScript3 source code

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

// forked from yd_niku's ExtentionExample
package {
    import flash.display.Sprite;
    public class FlashTest extends Sprite {
        public function FlashTest() {
            var ball:Sprite= new BallSprite(0xFF9933);
            ball.x = 50;
            ball.y = 50
            addChild( ball );
            
            
        }
    }
}

import flash.display.*;
import flash.events.*;

class BallSprite extends Sprite {
    public function BallSprite( color:uint ){
        super();
        
        graphics.beginFill(color);
        graphics.drawCircle( 0, 0, 10 );
        graphics.endFill();
    }
}