I have a FLV playing in Flash with a full screen button. The problem is I want only the video to be shown full screen, not the entire stage. This is the code I’m using to make the video fullscreen.
function fullScreenUP(event:MouseEvent):void {
if (screenCheck == false) {
stage.displayState = StageDisplayState.FULL_SCREEN;
screenCheck = true;
} else {
stage.displayState = StageDisplayState.NORMAL;
screenCheck = false;
}
}
The FLVPlayback component has a fullScreenTakeOver property for dealing with this kind of things:
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/fl/video/FLVPlayback.html#fullScreenTakeOver