Greetings!
Is it possible to add and event to a SWFLoader to check if a loaded swf has stopped playing?
or is there another way to check if a loaded swf had finished playing?
thanks!
Greetings!
Is it possible to add and event to a SWFLoader to check if a loaded swf has stopped playing?
or is there another way to check if a loaded swf had finished playing?
thanks!
Loaded movie must dispatch a custom event, Flash doesn’t do that automatically.
//in last keyframe
dispatchEvent(new Event("contentHasFinishedPlaying",false,true);
If ur event is bubbling (like here) it can be listened even on stage.
[quote=Felixz;2328881]Loaded movie must dispatch a custom event, Flash doesn’t do that automatically.
ActionScript Code:
[LEFT][COLOR=#808080]//in last keyframe[/COLOR]
dispatchEvent[COLOR=#000000]([/COLOR][COLOR=#000000]new[/COLOR] EventCOLOR=#000000[/COLOR];
[/LEFT]
If ur event is bubbling (like here) it can be listened even on stage.[/quote]
Can u explain this with a simple example?
:: Copyright KIRUPA 2024 //--