5 Replies Latest reply on Oct 14, 2010 11:09 AM by kglad

    How to detect the end of an external swf loaded into a container

    0belix Level 1

      Hi,

       

      I'm having trouble finding a solution for this problem, can somebody help me?

       

      I have a main swf that will load external swfs into a container. I need to detect the end of the loaded external swf in order to start to load and play a new one into the same container.

      The problem is that i do not know what the length of the external swfs will be, and will have no control over the development of them, so i cannot place a variable at the end of their animation which would allow me to detect from the main movie its end.

      I also cannot rely on the _totalFrames property because the loaded swf might not have all the animation inside its main timeline.

       

      Is there any way to achieve this goal?

       

      Thx