How to detect external SWF has stopped not using totalFrames
Trying to find a way to detect when an externally loaded SWF has stopped. Using "totalFrames" like the example below doesn't work for what I'm trying to accomplish.
I need something that simply listens and detects when the clip has stopped. Editing the external SWF is not an option. Thanks in advance for any insight.
function onfrm( evnt: Event 😞 void
{
if (newMC.currentFrame == newMC.totalFrames )
{
newMC.removeEventListener( Event.ENTER_FRAME, onfrm);
trace("End of banner");
}
}
