MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 634

Components language reference
Table of Contents

Advertisement

FLVPlayback.preferredHeight
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
my_FLVPlybk.preferredHeight
Description
Property; a number that specifies the height of the source FLV file. This information is not
valid immediately upon calling the
event starts. If the value of the
, it is best to read the value when the
true
Example
The following example sets the size of the FLVPlayback instance when the
occurs. When the
cuePoint
and
preferredHeight
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.*;
var listenerObject:Object = new Object();
listenerObject.resize = function(eventObject:Object):Void {
trace("width is: " + my_FLVPlybk.width);
trace("height is: " + my_FLVPlybk.height);
};
my_FLVPlybk.addEventListener("resize", listenerObject);
listenerObject.ready = function(eventObject:Object):Void {
my_FLVPlybk.setSize(250, 350);
};
632
FLVPlayback Component (Flash Professional Only)
or
play()
property or
autoSize
resize
event occurs, it resets the size to the size specified by
properties.
preferredWidth
methods. It is valid when the
load()
maintainAspectRatio
event starts. Read-only.
ready
property is
event
ready

Hide quick links:

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash 8

Table of Contents