forked from: ExtentionExample
forked from ExtentionExample (diff: 49)
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();
}
}
