Skip to main content
September 11, 2006
Question

Iteratively loading multple movie clips

  • September 11, 2006
  • 1 reply
  • 206 views
What is the most effective way to iteratively load movie clips? I have the names of this clips I want to load in an array which I am cycling through with a "for" loop, but what's the most effective way to be sure one is loaded before I move on to the next? Is there a way to pause the loop until I get an onLoadComplete message?
This topic has been closed for replies.

1 reply

Inspiring
September 11, 2006
If one must be loaded before the others then you need to wait until one is loaded before you start the next. Tautological, but true!

Instead of using a for loop, just use a counter and when you get an onLoadComplete event start the next one loading and increment the counter. Also the onLoadInit event is probably a better choice for many reasons.