flash on 2009-10-2
♥0 |
Line 23 |
Modified 2009-10-02 08:04:44 |
MIT License
archived:2017-03-20 02:50:23
ActionScript3 source code
/**
* Copyright telcanty ( http://wonderfl.net/user/telcanty )
* MIT License ( http://www.opensource.org/licenses/mit-license.php )
* Downloaded from: http://wonderfl.net/c/7JLd
*/
package {
import flash.display.Sprite;
public class FlashTest extends Sprite {
private var _ball:Sprite;
public function FlashTest() {
_ball = new Sprite();
_ball.graphics.beginFill(0xFF0000);
_ball.graphics.drawCircle(0,0,20);
_ball.graphics.endFill();
_ball.x = stage.stageWidth/4;
_ball.y = stage.stageHeight/4;
_ball.scaleX = _ball.scaleY = 2;
var blue_ball:Sprite = new Sprite();
blue_ball.graphics.beginFill(0x0000FF);
blue_ball.graphics.drawCircle(0,0,20);
blue_ball.graphics.endFill();
blue_ball.x = stage.stageWidth/4;
blue_ball.y = stage.stageHeight/4;
addChild(_ball);
addChild(blue_ball);
//_ball.addChild(blue_ball);
//_ball.removeChild(blue_ball);
}
}
}