Hi, i am using OOP to create a website,
I have a workin FLVPlayback component which works absolutely fine… u can have a look on http://bit.ly/cfGzih [biturl for personal reasons]… the as video is played… there is also a “skip” button on the bottom right hand corner that allows users to skip viewing FLVPlayback… once clicked … the website begins…
Now here is the problem , you can still hear the Sound from the FLVPlayback and that means its still loading in the background…(only when skip is clicked)
settin the FLVPlayback source to NULL does not help
if the FLVPlayback component completes the streaming then it disposes everythin successfully…
below is the FLVPlayback code
private function makePlayer() : void
{
my_player = new FLVPlayback();
my_player.skin = "SkinOverPlay.swf";
addChild(my_player);
my_player.source = READS OF XML
my_player.addEventListener(VideoEvent.COMPLETE, playComplete);
}
private function playComplete(e : VideoEvent) : void
{
removeChild(my_player);
my_player.removeEventListener(VideoEvent.COMPLETE, playComplete);
}
when the skip button is pressed
private function onSkipClick(e : MouseEvent) : void
{
my_player.source =null;
my_player.stop();
removeChild(my_player);
removeChild(skip_Btn);
skip_Btn.removeEventListener(MouseEvent.CLICK, onSkipClick);
my_player.removeEventListener(VideoEvent.COMPLETE, playComplete);
}