PDA

View Full Version : closing an FLVPlayback component


ssarcheck
12-01-2008, 05:01 PM
I have several .flv files that load into an FLVPlayback component in a sequential order. I need to give users the option of ending the movies at any time - so I made a close button. I want the button to end the stream and close the FLVPlayback component.

Here's what I've tried - the button is called closeModule:
----------------------------------------
closeModule._visible = true;
closeModule.onRelease = function ( ) {
trace("hit the button");
my_FLVPlybk.stop();
my_FLVPlybk.removeMovieClip();
gotoAndStop(3);
}

Doesn't work. - although the trace does, so I know the button is active.

Any thoughts would be appreciated. Thanks.

ssarcheck
12-01-2008, 08:14 PM
Ok - got it to work - had a typo. Also found out you can't delete the default player. still having an issue with the depth of the player. It's coming up over top of a submenu.