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.preferredWidth
FLVPlayback.setScale()
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
or
play()
load()
value of the
autoSize
value when the
resize
Example
The following example sets the size of the FLVPlayback instance when the
occurs. When the
cuePoint
and
preferredHeight
,
FLVPlayback.height
,
FLVPlayback.ready
,
FLVPlayback.width
methods are called; it is valid when the
or
maintainAspectRatio
event starts. Read-only.
event occurs, it resets the size to the size specified by
properties.
preferredWidth
,
FLVPlayback.maintainAspectRatio
,
FLVPlayback.setSize()
ready
properties is
, it is best to read the
true
,
,
event starts. If the
event
ready
FLVPlayback class
633
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?
Questions and answers