limitedwave
08-05-2008, 02:38 PM
Greetings ~ I'm wondering what method people use to load things into multiple movie clips, that have the same name barring the trailing numeral. As in - how to address the clip on the left side of the = sign with [i] type syntax. For example:
function loadImage0(url:String):void {
imageLoader[i] = new Loader();
imageLoader[i].load(new URLRequest(url));
imageLoader[i].contentLoaderInfo.addEventListener(Event.COMPLETE , imageLoaded[i]);
}
If I run something like this I get errors like imageLoader[i] doesn't exist. I've seen this before trying to pump up clips with a loop and getting thrown off by what to do on the left side of the = sign. Thanks.
Any help would be appreciated, thanks!
function loadImage0(url:String):void {
imageLoader[i] = new Loader();
imageLoader[i].load(new URLRequest(url));
imageLoader[i].contentLoaderInfo.addEventListener(Event.COMPLETE , imageLoaded[i]);
}
If I run something like this I get errors like imageLoader[i] doesn't exist. I've seen this before trying to pump up clips with a loop and getting thrown off by what to do on the left side of the = sign. Thanks.
Any help would be appreciated, thanks!