Use a for loop like so...

var myArray:Array = new Array();
var someNumber:Number = 10;

for(var i:int = 0; i< someNumber; i++){
      var mc:MovieClip = new MovieClip();
      myArray.push(mc);
}

someNumber will be your unknown number. I'll assume that you're going to get 
that from either a number 
of XML elements or some number that you set based on your needs.

-Gerry


On Feb 27, 2010, at 9:57 AM, Susan Day wrote:

> On Sat, Feb 27, 2010 at 8:58 AM, Susan Day <[email protected]>wrote:
> 
>> On Fri, Feb 26, 2010 at 3:25 PM, Nathan Mynarcik <[email protected]>wrote:
>> 
>>> Put your bitmap in a movieclip and add a listener to the Md so when the
>>> user clicks it navigates to the new page.
>>> 
>> 
> How do I create an array of which the elements--preferably of unknown number
>> at runtime--are Sprites or MovieClips?
>> 
>   TIA,
> 
>> Susan
>> 
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to