1 Reply Latest reply on Dec 25, 2007 8:22 PM by kglad

    using a listener in a loop

      i load about 20 external pics to frames (the frames are movieclips that have inside them an a movieclip that will be the container of the pic)
      i use a loop to load the pics.
      the problem is that i have to resize the pictures to fit into the frames.
      and to resize the mc that holds the pic i have to be sure that the pic was loaded
      i do that using MovieClipLoader
      and i attach to it a listner that will tell me when the pic was loaded
      the problem is:
      cause it is a loop, the listener is created again and again before it finishes its work and resizes the pic