var ballArr:Array = [];
var tempBall:ball;
var numOfBall:Number=10;
for(var i:int = 0; i
tempBall = new ball();
ballArr[i] = tempBall;
tempBall.x = 0;
tempBall.y = 0;
tempBall.rotation=30;
tempBall.addEventListener(MouseEvent.CLICK, click_handler);
addChild(ballArr[i]);
}
沒有留言:
張貼留言