FLVPlayback.height

Availability

Flash Player 8.

Edition

Flash Professional 8.

Usage

my_FLVPlybk.height

Description

Property; a number that specifies the height of the FLVPlayback instance. This property affects only the height of the FLVPlayback instance and does not include the height of a skin SWF file that might be loaded. Use the FLVPlayback height property and not the MovieClip._height property because the _height property might give a different value if a skin SWF file is loaded.

Example

The following example sets the width and height properties to change the size of the video player. It first sets the maintainAspectRatio property to false to prevent the video player from resizing automatically when the dimensions change.

Drag an FLVPlayback component to the Stage, and give it an instance name of my_FLVPlybk. Then add the following code to the Actions panel on Frame 1 of the Timeline:

/**
 Requires:
  - FLVPlayback component on the Stage with an instance name of my_FLVPlybk
*/
import mx.video.*;
my_FLVPlybk.maintainAspectRatio = false;
my_FLVPlybk.width = 300;
my_FLVPlybk.height = 350;
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/water.flv";

See also

FLVPlayback.preferredHeight, FLVPlayback.preferredWidth, FLVPlayback.maintainAspectRatio, FLVPlayback.resize, FLVPlayback.setSize(), FLVPlayback.width


Flash CS3