Home Tutorials Forums Articles Blogs Movies Library Employment Press
Prev Previous Post   Next Post Next
Old 02-13-2012, 02:36 AM   #1
Registered User
Join Date: Feb 2012
Posts: 7
Default Random Array, create sprite

How can I create a sprite with a random array?

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?

Last edited by TheMadHatter; 02-13-2012 at 02:52 AM.
TheMadHatter is offline   Reply With Quote

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT. The time now is 04:39 PM.

Follow actionscriptorg on Twitter


Powered by vBulletin® Version 3.8.5
Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2013 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.