Skip to main content
Known Participant
June 21, 2009
Question

unlod swf contain flv

  • June 21, 2009
  • 1 reply
  • 738 views

Hello all

here am loaded many swf using Loader

/////////// the code/////////////

var ldr:Loader = new Loader();
var url:String
var urlReq = new URLRequest(url);

Packing_Btn.addEventListener(MouseEvent.CLICK, gopack)

function gopack(event:MouseEvent):void {
    ldr.unload()
}

////////////

but when i unload the swf which contain flv file

it seems it doesn't work

the sound still running :S

can any one help ?

thnx

This topic has been closed for replies.

1 reply

kglad
Community Expert
Community Expert
June 21, 2009

if you're publishing for flash player 10, you can use the unloadAndStop() method of your loader.

otherwise, you'll need to explicitly stop your flv stream to stop it from downloading.  a poor solution is to use SoundMixer.stopAll().

Known Participant
June 21, 2009

thnx but SoundMixer.stopAll() is very poor idea it makes problem when i return playing the sound:S

kglad
Community Expert
Community Expert
June 21, 2009

i think i already said it was a poor choice so pick another option if that doesn't work for you.