1 Reply Latest reply on Sep 10, 2009 4:15 PM by Ned Murphy

    Detect image load complete after loadMovie()

    the678guy

      Hi all,

       


      I use attachMovie() to create a new instance of a movieclip, then I use loadMovie() to load an external PNG image into the new movieclip. That is working fine.

       

      I want to be able to detect when the image has finished loading into the movie clip container. I need to detect this because I want to check the image width and height.

       

      If I check the width and height right after I call loadMovie() it is returning the default placeholder size, instead of the new loaded image size. It obviously has not finished loading when I check it there.

       

      I am using ActionScript 2.0 but I can use 3.0 if there is an easier solution.

       

      Any ideas? Thanks in advance.