# Loading swfs into MCs on Stage after loadMovieNum

**URL:** <https://forum.kirupa.com/t/loading-swfs-into-mcs-on-stage-after-loadmovienum/193952>\
**Category:** flash\
**Created:** [July 19, 2006, 3:36pm UTC](https://forum.kirupa.com/t/loading-swfs-into-mcs-on-stage-after-loadmovienum/193952 "2006-07-19T15:36:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![schmichael](https://avatars.discourse-cdn.com/v4/letter/s/ea5d25/32.png) [@schmichael](https://forum.kirupa.com/u/schmichael)\
**Post date:** [July 19, 2006, 3:36pm UTC](https://forum.kirupa.com/t/loading-swfs-into-mcs-on-stage-after-loadmovienum/193952/1 "2006-07-19T15:36:19Z")

</div>

Hello there, I am trying to load a bunch of swf files into my main movie and I am doing this using an array and loadMovieNum that holds the clips like this:

[http://www.bokelberg.de/actionscript/3.html](http://www.bokelberg.de/actionscript/3.html)

My problem is that previously I was loading my swfs into movieclips on the stage like this:

```auto

with (_root) {
Chat.loadMovie("chat8.swf" add cachebuster());
Calls.loadMovie("calls.swf" add cachebuster());
Tickets.loadMovie("TicketAnimatingArrowSwap.swf" add cachebuster());
BuyTickets.loadMovie("buytickets.swf" add cachebuster());
Help.loadMovie("howtoplay.swf" add cachebuster());
SoundModule.loadMovie("soundmodule.swf" add cachebuster());
trace("loading...");
}

```

and my code is targeted using these names. Is there a way I can target my MCs loaded using loadMovieNum to the old MCs and so keep loading them using the array?

The code that loads the movie looks like this (the movielevels are named as the MCs on the stage):

```auto

moviename = moviearray[actMovieIdx++];
movielevel = moviearray[actMovieIdx++];
//load the given movie
//loadMovieNum(moviename, movielevel);

```

I thought that this might work but it doesn’t:

```auto

this[movielevel].loadMovie(moviename add cachebuster())

```

I guess I just need a way to to load the swfs into the mc’s on the stage that will let me dynamically name the targets.

Many thanks for any ideas :))

Schm
