Skip to main content
December 25, 2007
Answered

using a listener in a loop

  • December 25, 2007
  • 1 reply
  • 254 views
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
This topic has been closed for replies.
Correct answer kglad
try:

1 reply

kglad
Community Expert
kgladCommunity ExpertCorrect answer
Community Expert
December 26, 2007
try: