Flash CS3 Documentation |
|||
| ActionScript 2.0 Components Language Reference > FLVPlayback Component > FLVPlayback class > FLVPlayback.height | |||
Flash Player 8.
Flash Professional 8.
my_FLVPlybk.height
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.
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";
FLVPlayback.preferredHeight, FLVPlayback.preferredWidth, FLVPlayback.maintainAspectRatio, FLVPlayback.resize, FLVPlayback.setSize(), FLVPlayback.width
Flash CS3