Tag Info

New answers tagged


I'm not sure I understand the relevance of the random array function, but to set a random position for each box you could create a helper function which returns a random number between min and max: private function randomNumber(min:Number, max:Number):Number { return Math.random() * (max - min) + min; } And then set the position of each box using: ...

Top 50 recent answers are included