I’d like to make a fullscreen desktop application, with an FLV, using the FLV Playback component. However, I’d like there to be a Fullscreen button on the playback component, which will allow the user to toggle the video fullscreen.
I can’t, for the life of me, figure out how to do this with various settings—it should be easy! This is what I have–is there a better way to do things (without a custom movie player)?
My inital settings are as follows:
stage.displayState = StageDisplayState.FULL_SCREEN;
theMovie.fullScreenTakeOver = false;
Then I have a function which should work–but my button won’t appear in fullscreen–Can I apply this function to the built-in fullscreen button?:
function handleClick(event:MouseEvent):void
{
if ( !theMovie.fullScreenTakeOver )
{
stage.displayState = StageDisplayState.NORMAL;
theMovie.fullScreenTakeOver = true;
stage.displayState=StageDisplayState.FULL_SCREEN;
} else {
theMovie.fullScreenTakeOver = false;
stage.displayState = StageDisplayState.FULL_SCREEN;
}
}