Question : How can I tell programmatically if a loaded swf has finished playing?

How can I tell if an external swf file has finished playing so that an event can be triggered in the page loading it?

I am building a tutorial in Flash 8 and trying to use Actionscript as much as possible.  I have a main (loader) page that contains the menu and previous/next buttons.   The tutorial content is contained in external .swf files and the next swf in the sequence (using arrays) is called when the Next button is pushed.  This all works fine.

One of the requirements of the tutorial is that when the content for a scene completes, the Next button flashes.  I don't want to put code in the called swfs, I would like all Actionscript to be in the loader.   How can I code the loading page to know if the external swf has finished playing, so that the button event can be triggered?

I am pretty new to Actionscript and would very much appreciate any help you can give me. Thanks!

Answer : How can I tell programmatically if a loaded swf has finished playing?

crooksy88,

As I seemed to be digging a deeper and deeper hole for myself,  I took the easy way out and let the loaded swf do the work.  When it reaches the last frame it calls the blinking button on the loader using  _parent.   Works great actually.  I'd never done that before either, but was at least able to figure it out.

I appreciate your giving it a try!
Random Solutions  
 
programming4us programming4us