>> Could you set the code that starts the new video to check for a boolean >> before playing a new video?
Well, thanks, but that isn't my setup. If I did that, then the new video would have to wait for the old video (now not on the screen, the user told it to disappear, but you still hear the audio for some reason) to finish playing - not a good user experience. They are two different instances - a player in one container sprite and after that sprite is removed, a player in a new sprite container. My code does the following when a video is supposed to be removed before a new one is created and played: 1. The Flvplayback component instance is told to stop. 2. Any listeners are removed from Flvplayback component instance 3. The Flvplayback component instance is removed from container sprite's display list 4. The Flvplayback component instance set to null 5. The Sprite that the FLVplayback component was in is removed from the display list. 6. Any listeners attached to the container Sprite instance are removed 7. The container Sprite instance is set to null. 8. Then the new sprite is created, and the new FLV component created which plays the video. Jason Merrill Instructional Technology Architect Bank of America Global Learning -----Original Message----- From: [email protected] [mailto:[email protected]] On Behalf Of Karl DeSaulniers Sent: Thursday, September 30, 2010 10:56 PM To: Flash Coders List Subject: Re: [Flashcoders] FLV audio doesn't stop Hi Jason, Could you set the code that starts the new video to check for a boolean before playing a new video? I am thinking you may already have this. var isPlaying:Boolean = true; and set this when a video actually starts playing? Best, Karl On Sep 30, 2010, at 9:51 PM, Merrill, Jason wrote: > Thanks, tried that too. Seems the problem occurs if the user goes to > look at a new video before the previous video in the previous sprite > starts playing. > > Jason Merrill > Instructional Technology Architect > Bank of America Global Learning > > > > -----Original Message----- > From: [email protected] [mailto:flashcoders- > [email protected]] On Behalf Of Deepanjan Das > Sent: Thursday, September 30, 2010 10:46 PM > To: Flash Coders List > Subject: Re: [Flashcoders] FLV audio doesn't stop > > Hi Jason, > Try to close the stream after stopping the playpack. > > Cheers > Deepanjan Das > > On Fri, Oct 1, 2010 at 8:14 AM, Deepanjan Das > <[email protected]>wrote: > >> Hello Jason, >> I am using this to clear the FLVPlayback: >> I have added the FLVPlayback component through code doing an >> addChild. >> >> Then I have passed the custom NCManagerLimelight Class which >> overrites the inbuilt NCManager class. >> The NCManagerLimelight is an opensource code you will get from net. >> >> this.video = new FLVPlayback(); >> VideoPlayer.iNCManagerClass = NCManagerLimelight; >> >> if (this.video.ncMgr.netConnection != null) { >> if (this.video.ncMgr.netConnection.connected) { >> if(this.video.getVideoPlayer(0).netStream != null){ >> >> this.video.getVideoPlayer(0).close(); >> //TraceDebug.print("NET_STREAM ON RESET : " + >> this.video.getVideoPlayer(0).netStream); >> } >> } >> } >> >> Hope this helps. >> >> >> -- >> Warm Regards >> Deepanjan Das >> W: http://deepanjandas.wordpress.com >> || Om Manasamarthadata Shri Aniruddhaya Namah || >> >> *"Think of the environment before printing this email"* >> >> >> On Thu, Sep 30, 2010 at 11:17 PM, Merrill, Jason < >> [email protected]> wrote: >> >>>>> I am also using the FLVPlayback Component, but accessed the >>>>> NetStream >>> from the component to close it: >>>>> this.video.getVideoPlayer(0).close(); >>>>> this.video.getVideoPlayer(0).netStream.close(); >>> >>> I get a null error when I run that: >>> >>> if (_flvPlayback != null) >>> { >>> _flvPlayback.getVideoPlayer(0).close(); >>> _flvPlayback.getVideoPlayer(0).netStream.close(); //<--Null >>> error here ... >>> >>> The null error is on the second statement >>> (_flvPlayback.getVideoPlayer(0).netStream.close();), not the first >>> (_flvPlayback.getVideoPlayer(0).close();). >>> >>> ?? >>> >>> >>> Jason Merrill >>> Instructional Technology Architect >>> Bank of America Global Learning >>> >>> >>> _______________________________________________ >>> Flashcoders mailing list >>> [email protected] >>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders >>> >> >> >> > > > -- > Warm Regards > Deepanjan Das > W: http://deepanjandas.wordpress.com > || Om Manasamarthadata Shri Aniruddhaya Namah || > > *"Think of the environment before printing this email"* > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders > _______________________________________________ > Flashcoders mailing list > [email protected] > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders Karl DeSaulniers Design Drumm http://designdrumm.com _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

