initialize ball(s) / enterFrame
for(var i:uint = 0; i < numBalls; i++)
{
var ball:animation_ch18_Ball3D = new animation_ch18_Ball3D(15);
balls.push(ball);
ball.xpos = Math.random() * 200 - 100;
ball.ypos = Math.random() * 200 - 100;
ball.zpos = Math.random() * 200 - 100;
addChild(ball);
}
addEventListener(Event.ENTER_FRAME, onEnterFrame);
}