[flexcoders] RE: Unloading/stopping sounds from SWFLoader .swf
Ah crap. To add on to this, this seems to be a bug that was only fixed with the Flash 10 player: http://bugs.adobe.com/jira/browse/SDK-14379 - I have to target Flash 9. Is this really still an outstanding bug with Flex 3 and Flash 9? That really bites. Jason Merrill Bank of America Picture (Device Independent Bitmap) Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community http://sharepoint.bankofamerica.com/sites/tlc/flash/default.aspx _ From: Merrill, Jason Sent: Thursday, May 07, 2009 12:55 PM To: 'flexcoders@yahoogroups.com' Subject: Unloading/stopping sounds from SWFLoader .swf I'm having a problem getting sounds from .swfs (both AVM1 and AVM2) to stop playing. I am adding these .swfs (loaded with SWFLoader) onto a Canvas in my Flex application. The instance of my SWFLoader is _swfLoader which I add as a child to the _demoCanvas Canvas. Here is what I have tried (my lame attempt at garbage collection): private function hideScreenAnimation():void { _swfLoader.removeEventListener(Event.COMPLETE, onSwfLoaded); _swfLoader.removeEventListener(Event.UNLOAD, onSwfUnload); _swfLoader = null; removeChild(_demoCanvas); _demoCanvas = null; SoundMixer.stopAll(); } I can't seem to locate any unload() method for SWFLoader instances or SWFLoader.content. SoundMixer.stopAll() seems to have no effect. Again, these are both AVM1 and AVM2 .swfs which contain sounds. I don't have any control over the AVM1 files, they are produced by someone else using another app (Captivate and Camtasia). The AVM2 .swf is just a simple .swf I made with Flash CS3 and contains a sound on the timeline. Thanks, any help is appreciated. I've researched this enough with Google and none of the suggestions I've found seem to work. Jason Merrill Bank of America OLE Object: Picture (Device Independent Bitmap) Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Community http://sharepoint.bankofamerica.com/sites/tlc/flash/default.aspx attachment: ole0.bmp
[flexcoders] RE: Unloading/stopping sounds from SWFLoader .swf
Without cooperation from the loaded SWF, there is no way to stop audio from outside that swf on FP9 Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Merrill, Jason Sent: Thursday, May 07, 2009 9:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] RE: Unloading/stopping sounds from SWFLoader .swf Ah crap. To add on to this, this seems to be a bug that was only fixed with the Flash 10 player: http://bugs.adobe.com/jira/browse/SDK-14379 - I have to target Flash 9. Is this really still an outstanding bug with Flex 3 and Flash 9? That really bites. Jason Merrill Bank of America [cid:image001.gif@01C9CEFC.3949AD20] Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Communityhttp://sharepoint.bankofamerica.com/sites/tlc/flash/default.aspx _ From: Merrill, Jason Sent: Thursday, May 07, 2009 12:55 PM To: 'flexcoders@yahoogroups.com' Subject: Unloading/stopping sounds from SWFLoader .swf I'm having a problem getting sounds from .swfs (both AVM1 and AVM2) to stop playing. I am adding these .swfs (loaded with SWFLoader) onto a Canvas in my Flex application. The instance of my SWFLoader is _swfLoader which I add as a child to the _demoCanvas Canvas. Here is what I have tried (my lame attempt at garbage collection): private function hideScreenAnimation():void { _swfLoader.removeEventListener(Event.COMPLETE, onSwfLoaded); _swfLoader.removeEventListener(Event.UNLOAD, onSwfUnload); _swfLoader = null; removeChild(_demoCanvas); _demoCanvas = null; SoundMixer.stopAll(); } I can't seem to locate any unload() method for SWFLoader instances or SWFLoader.content. SoundMixer.stopAll() seems to have no effect. Again, these are both AVM1 and AVM2 .swfs which contain sounds. I don't have any control over the AVM1 files, they are produced by someone else using another app (Captivate and Camtasia). The AVM2 .swf is just a simple .swf I made with Flash CS3 and contains a sound on the timeline. Thanks, any help is appreciated. I've researched this enough with Google and none of the suggestions I've found seem to work. Jason Merrill Bank of America OLE Object: Picture (Device Independent Bitmap) Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Communityhttp://sharepoint.bankofamerica.com/sites/tlc/flash/default.aspx inline: image001.gif
[flexcoders] Re: Unloading/stopping sounds from SWFLoader .swf
Thanks Alex. That's too bad. On this project, we're stuck then with no support for external .swfs that have sound since we're using FP9. Bummer. I wonder if we could use LocalConnection to communicate with the AVM1 Captivate or Camtasia files to stop the sound. Possible in theory? Jason --- In flexcoders@yahoogroups.com, Alex Harui aha...@... wrote: Without cooperation from the loaded SWF, there is no way to stop audio from outside that swf on FP9 Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Merrill, Jason Sent: Thursday, May 07, 2009 9:59 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] RE: Unloading/stopping sounds from SWFLoader .swf Ah crap. To add on to this, this seems to be a bug that was only fixed with the Flash 10 player: http://bugs.adobe.com/jira/browse/SDK-14379 - I have to target Flash 9. Is this really still an outstanding bug with Flex 3 and Flash 9? That really bites. Jason Merrill Bank of America [cid:image001.gif@...] Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Communityhttp://sharepoint.bankofamerica.com/sites/tlc/flash/default.aspx _ From: Merrill, Jason Sent: Thursday, May 07, 2009 12:55 PM To: 'flexcoders@yahoogroups.com' Subject: Unloading/stopping sounds from SWFLoader .swf I'm having a problem getting sounds from .swfs (both AVM1 and AVM2) to stop playing. I am adding these .swfs (loaded with SWFLoader) onto a Canvas in my Flex application. The instance of my SWFLoader is _swfLoader which I add as a child to the _demoCanvas Canvas. Here is what I have tried (my lame attempt at garbage collection): private function hideScreenAnimation():void { _swfLoader.removeEventListener(Event.COMPLETE, onSwfLoaded); _swfLoader.removeEventListener(Event.UNLOAD, onSwfUnload); _swfLoader = null; removeChild(_demoCanvas); _demoCanvas = null; SoundMixer.stopAll(); } I can't seem to locate any unload() method for SWFLoader instances or SWFLoader.content. SoundMixer.stopAll() seems to have no effect. Again, these are both AVM1 and AVM2 .swfs which contain sounds. I don't have any control over the AVM1 files, they are produced by someone else using another app (Captivate and Camtasia). The AVM2 .swf is just a simple .swf I made with Flash CS3 and contains a sound on the timeline. Thanks, any help is appreciated. I've researched this enough with Google and none of the suggestions I've found seem to work. Jason Merrill Bank of America OLE Object: Picture (Device Independent Bitmap) Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Communityhttp://sharepoint.bankofamerica.com/sites/tlc/flash/default.aspx
RE: [flexcoders] Re: Unloading/stopping sounds from SWFLoader .swf
Oh sure, that's what I mean by cooperation. Your SWF has to request the other SWF to stop. Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Jason Sent: Thursday, May 07, 2009 2:36 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Unloading/stopping sounds from SWFLoader .swf Thanks Alex. That's too bad. On this project, we're stuck then with no support for external .swfs that have sound since we're using FP9. Bummer. I wonder if we could use LocalConnection to communicate with the AVM1 Captivate or Camtasia files to stop the sound. Possible in theory? Jason --- In flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com, Alex Harui aha...@... wrote: Without cooperation from the loaded SWF, there is no way to stop audio from outside that swf on FP9 Alex Harui Flex SDK Developer Adobe Systems Inc.http://www.adobe.com/ Blog: http://blogs.adobe.com/aharui From: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com] On Behalf Of Merrill, Jason Sent: Thursday, May 07, 2009 9:59 AM To: flexcoders@yahoogroups.commailto:flexcoders%40yahoogroups.com Subject: [flexcoders] RE: Unloading/stopping sounds from SWFLoader .swf Ah crap. To add on to this, this seems to be a bug that was only fixed with the Flash 10 player: http://bugs.adobe.com/jira/browse/SDK-14379 - I have to target Flash 9. Is this really still an outstanding bug with Flex 3 and Flash 9? That really bites. Jason Merrill Bank of America [cid:image001.gif@...] Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Communityhttp://sharepoint.bankofamerica.com/sites/tlc/flash/default.aspx _ From: Merrill, Jason Sent: Thursday, May 07, 2009 12:55 PM To: 'flexcoders@yahoogroups.commailto:%27flexcoders%40yahoogroups.com' Subject: Unloading/stopping sounds from SWFLoader .swf I'm having a problem getting sounds from .swfs (both AVM1 and AVM2) to stop playing. I am adding these .swfs (loaded with SWFLoader) onto a Canvas in my Flex application. The instance of my SWFLoader is _swfLoader which I add as a child to the _demoCanvas Canvas. Here is what I have tried (my lame attempt at garbage collection): private function hideScreenAnimation():void { _swfLoader.removeEventListener(Event.COMPLETE, onSwfLoaded); _swfLoader.removeEventListener(Event.UNLOAD, onSwfUnload); _swfLoader = null; removeChild(_demoCanvas); _demoCanvas = null; SoundMixer.stopAll(); } I can't seem to locate any unload() method for SWFLoader instances or SWFLoader.content. SoundMixer.stopAll() seems to have no effect. Again, these are both AVM1 and AVM2 .swfs which contain sounds. I don't have any control over the AVM1 files, they are produced by someone else using another app (Captivate and Camtasia). The AVM2 .swf is just a simple .swf I made with Flash CS3 and contains a sound on the timeline. Thanks, any help is appreciated. I've researched this enough with Google and none of the suggestions I've found seem to work. Jason Merrill Bank of America OLE Object: Picture (Device Independent Bitmap) Global Learning Shared Services Solutions Development Monthly meetings on the Adobe Flash platform for rich media experiences - join the Bank of America Flash Platform Communityhttp://sharepoint.bankofamerica.com/sites/tlc/flash/default.aspx