Unloading swf using the unloadAndStop() method, but video sounds remain audible

前端 未结 4 1828
眼角桃花
眼角桃花 2021-01-24 05:00

I have tried many approaches to unloading my swf, but to no avail, the video sounds within my laoded swf keep playing even once the swf has been loaded.

I have created a

4条回答
  •  温柔的废话
    2021-01-24 05:46

    In your video.swf, you have to write something like this:

    this.addEventListener(Event.REMOVED_FROM_STAGE, stopSound)
    
    function stopSound(e:Event):void
    {
        my_flvPlayer.stop();
    }
    

提交回复
热议问题