Note that there are some explanatory texts on larger screens.

plurals
  1. POFlash AS 3 Loader OnComplete Inside a Loop
    primarykey
    data
    text
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. COYour code as is attempts to assign the EventHandler for the onComplete event 5 times. Can you elaborate on what you are trying to do? Your array is not being referenced here... just a looping bit of code that executes 5 times. I think a bit more of your code needs to be visible for suggestions to be made. You also are not letting your initial loader complete anything - by calling _loader.load() on the same object over and over again, you are effectively canceling the previous load request.
      singulars
    2. COYou might want to put the declaration of var _loader = new Loader(); WITHIN the for loop - that way you will have 5 loader objects created instead of trying to use one for all 5 objects. There seems to be some confusion here about how event listeners function - again, a little more detail would help.
      singulars
    3. COThanks! Iam trying to assign dynamic 'Image()' objects byte data from remote images. I am also passing on values of 'mylabel' which are assigned fron a recAC array to a label field. I think basically, if you can tell me as to who to repurpose the http://stackoverflow.com/questions/2338317/how-to-get-associated-urlrequest-from-event-complete-fired-by-urlloader so that it works for a 'loader' object then that will be big help. Specifically, the line: xmlURLLoader.addEventListener(Event.COMPLETE, function(req:URLRequest):Function {
      singulars
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload