Skip to main content
Known Participant
May 27, 2009
Answered

How to load external images and animate it after being loaded?

  • May 27, 2009
  • 1 reply
  • 667 views

I know how to load external images using xml but the problem is if I have a lot of images to load then animate it after being loaded. I know theres a work-around with this problem but still I did'nt figure it out.

Thanks for help.

This topic has been closed for replies.
Correct answer Ned Murphy

You will need to use the MovieClipLoader class.  It supports having a listener, which you can use to determine when the image has loaded so that you can take action on it.

If you look up the MovieClipLoader.addEventListener() methoid, there is an example there that will be helpful in seeing how to configure things (it's not your scenario, but a good reference).

1 reply

Ned Murphy
Ned MurphyCorrect answer
Legend
May 27, 2009

You will need to use the MovieClipLoader class.  It supports having a listener, which you can use to determine when the image has loaded so that you can take action on it.

If you look up the MovieClipLoader.addEventListener() methoid, there is an example there that will be helpful in seeing how to configure things (it's not your scenario, but a good reference).

Known Participant
May 27, 2009

Is there anyway that after the images being loaded I can animate it like animate on timeline?

Thanks for the reply.

Ned Murphy
Legend
May 27, 2009

That depends on the type of animation you intend for it.  For a timeline animation you'd have to load it into a special movieclip that has a placeholder movieclip for the image, where the placeholder is what you animate along the timeline.

You could possibly use a coded animation depending on the nature of the animation.