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
My problem is that previously I was loading my swfs into movieclips on the stage like this:
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):
moviename = moviearray[actMovieIdx++];
movielevel = moviearray[actMovieIdx++];
//load the given movie
//loadMovieNum(moviename, movielevel);
I thought that this might work but it doesn’t:
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