Reputation: 1197
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;
}
}
Upvotes: 0
Views: 1710
Reputation: 72
If your video is being played using a Video object. You can also check out the fullScreenRect property
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Stage.html
The way it works is that you specify a rectangle for the viewport you want when the display changes to fullscreen.
Hope this helps.
Upvotes: 1
Reputation: 6127
The FLVPlayback component has a fullScreenTakeOver property for dealing with this kind of things:
Upvotes: 3
Reputation: 3239
As far as I know, when you go full screen, everything has to go full screen. You could hide everything on the stage though except for the video when in full screen.
Upvotes: 1