The ActionScript 3 FLVPlayback component can play your FLV video in full-screen mode. With the click of a button, the SWF file fills the screen and shows the video scaled in the center. You can control the video layout, background color, and skin delay using ActionScript.
To use the full-screen feature, you'll need to work with the FLA file's publish settings, the FLVPlayback custom UI components, and a little bit of ActionScript.
Follow these steps to set up a video user interface with a full-screen button:
import fl.video.*; // 1. Video component instance name var flvControl:FLVPlayback = display; var flvSource:String = "Call_to_Action.flv"; // 2. Set video parametes flvControl.fullScreenButton = fullScrn_btn; flvControl.source = flvSource;
flvSource path to match the video
you're using.Note: Using the enterFullScreenDisplayState method has the same effect as using the FullScreenButton UI component.
Follow these steps to set the HTML parameters to allow for full-screen video:
Click the HTML tab in the Publish Settings dialog box and choose the Flash Only – Allow Full Screen option from the Templates pop-up menu (see Figure 1).

Figure 1. Choosing the Flash Only – Allow Full Screen option for full-screen video
You can change the align and scaleMode properties of the FLVPlayback instance to change how the video layout looks during scaling and full-screen layout.
To apply the recommended defaults for full-screen viewing, follow these steps:
Add the following code below the fullScreenButton assignment line:
flvControl.align = VideoAlign.CENTER; flvControl.scaleMode = VideoScaleMode.MAINTAIN_ASPECT_RATIO;
If you are interested in pursuing further layout controls for your video, take a look at the registration height, width, x, and y properties in the FLVPlayback section of the Help pages. You can use these properties along with the align and scaleMode properties to fine-tune how your videos look while scaling, switching from video to video, and so on.
To see a working example, see flvplayback_programming5.fla in the sample ZIP file linked to at the beginning of this article.
Note: Full-screen mode requires the use of Flash Player 9,0,28,0 or later, the ActionScript 3 version of the FLVPlayback component, and an HTML file set up correctly for full-screen viewing. For more information, you can read Exploring full-screen mode in Flash Player 9.