Stop video embedded into swf that is displayed into loader when clicking next and previous
I am having a problem with embedded flv
I am having a main page with Next and Previous buttons, I am loading swf into this main page using addchild(loader), this swf contains flv embedded into it
The next and previous code contains the following code to remove child before adding the new child
| SoundMixer.stopAll(); | ||||
| if(loader != null) | ||||
| { | ||||
| if(stage.contains(loader)) | ||||
| { | ||||
| removeChild(loader); | ||||
| } | ||||
| loader.unloadAndStop(); | ||||
| loader = null; | ||||
| } | ||||
| fnLoadNext(); |
The problem appears when I am quickly clicking on Next or Previous Buttons, One of the old videos still working with the new one (If I click 10 times quickly on next button, video interference occurs)
Any advice for that?