And for the archives or anyone listening, here is what my function looks like.  
I'm sure a few things might be overkill, but if it works, it works:

                public function destroyVideo():void
                {
                        if (_flvPlayback != null)
                        {
                                _flvPlayback.pause();
                                _flvPlayback.getVideoPlayer(0).close();//close 
the netstream
                                _flvPlayback.stop();
                                
_flvPlayback.removeEventListener(VideoEvent.READY, onVideoReady);
                                
_flvPlayback.removeEventListener(MetadataEvent.METADATA_RECEIVED, 
onMetadataReceived);
                                
_flvPlayback.removeEventListener(VideoEvent.COMPLETE, onVideoComplete);
                                
_flvPlayback.removeEventListener(MetadataEvent.CUE_POINT, onCuePoint);
                                if (_flvPlayback.stage) { 
removeChild(_flvPlayback); }
                                _flvPlayback = null;
                        }
                }

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 



-----Original Message-----
From: [email protected] 
[mailto:[email protected]] On Behalf Of Merrill, Jason
Sent: Thursday, September 30, 2010 11:27 PM
To: Flash Coders List
Subject: RE: [Flashcoders] FLV audio doesn't stop

>> You might want to try to pause the video before stopping, unloading and 
>> reloading

Geez Karl, I think that might have fixed it... at least, since I added the 
pause() before the stop() and everything else, I cannot reproduce the bug...  

Stupid, you would think that calling flvPlayback.stop() would stop the audio as 
well!  

If that was it, then I'm so happy - thanks Karl, Deepanjan, and Henrik. I'll 
keep trying to break it and see if the bug is still there, so keeping my 
fingers crossed.

 Jason Merrill
 Instructional Technology Architect
 Bank of America  Global Learning 


_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to