# Help a noob out? Loading an array of images

**URL:** <https://forum.kirupa.com/t/help-a-noob-out-loading-an-array-of-images/200750>\
**Category:** flash\
**Created:** [September 14, 2006, 7:26pm UTC](https://forum.kirupa.com/t/help-a-noob-out-loading-an-array-of-images/200750 "2006-09-14T19:26:31Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![9mm\_Ed](https://avatars.discourse-cdn.com/v4/letter/9/7ea924/32.png) [@9mm\_Ed](https://forum.kirupa.com/u/9mm_Ed)\
**Post date:** [September 14, 2006, 7:26pm UTC](https://forum.kirupa.com/t/help-a-noob-out-loading-an-array-of-images/200750/1 "2006-09-14T19:26:31Z")

</div>

Hey, Everybody!

I’m a designer who does Flash and loves it, but AS is new to me. But I am willing to learn!

Right now I am working on a game where I need to have 19 pieces revolving with 19 different MCs in them. The code I have can accommodate the movement and 19 pieces, but I can’t figure out how to get 19 different ones in there - just one with 19 duplicates.

I thought if I addressed them in an array, I could tell my emptyMovieClip to load them into itself with individual MCs. I’m sure I’m on the right path, but it’s not working yet. Any ideas?

My array:  
anames = new Array (mcAnniePiece,  
mcAlbertPiece,  
mcAshleyPiece,  
mcBrianaPiece,  
mcBridgetPiece,  
mcCharliePiece,  
mcDennyPiece,  
mcGaryPiece,  
mcGavinPiece,  
mcJeffPiece,  
mcKarynPiece,  
mcKellyPiece,  
mcKristyPiece,  
mcLauraPiece,  
mcMrTrumpPiece,  
mcRachelPiece,  
mcRockyPiece,  
mcSarahLynnPiece,  
mcSidPiece   
);

The trouble spot?  
angleStep = 2\*Math.PI/19;

for (i=0; i \< 19; i++){  
attachedObj = pieceLoader.attachMovie(“container\_mc”, anames, +i, i);

Because it worked when it was:

```
attachedObj = pieceLoader.attachMovie("mcAnniePiece", "mcAnniePiece"+i, i);

```

Any help at all would be appreciated.  
Thanks, y’all!  
9mm
