User Guide

FLVPlayback class 633
my_FLVPlybk.addEventListener("ready", listenerObject);
listenerObject.cuePoint = function(eventObject:Object):Void {
my_FLVPlybk.setSize(my_FLVPlybk.preferredWidth,
my_FLVPlybk.preferredHeight);
};
my_FLVPlybk.addEventListener("cuePoint", listenerObject);
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/
water.flv";
my_FLVPlybk.addASCuePoint(1.5, "AScp1");
See also
FLVPlayback.autoSize, FLVPlayback.height, FLVPlayback.maintainAspectRatio,
FLVPlayback.preferredWidth, FLVPlayback.ready, FLVPlayback.setSize(),
FLVPlayback.setScale(), FLVPlayback.width
FLVPlayback.preferredWidth
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
my_FLVPlybk.preferredWidth
Description
Property; gives the width of the source FLV file. This information is not valid immediately
when the
play() or load() methods are called; it is valid when the ready event starts. If the
value of the
autoSize or maintainAspectRatio properties is true, it is best to read the
value when the
resize event starts. Read-only.
Example
The following example sets the size of the FLVPlayback instance when the ready event
occurs. When the
cuePoint event occurs, it resets the size to the size specified by
preferredHeight and preferredWidth properties.