How can I create a sprite with a random array?
Code:
var ball:Array = new Array();
var currentBall:Number = Math.random();
Now I want to create a sprite with ball[currentBall]
What I am trying to do is have it so that I can keep creating sprites from a random number
like if i wanted every time a user pressed a spacebar to create a new sprite.
No I am not asking anyone to do this, I am asking for help on how I should go about this? Is array the best way to do this?