Description
Property; a Boolean value that, if
changed from
false
loaded, an automatic resize of the video starts immediately. The default value is
Example
The following example calls the
instance, causing a
resize
forces a second
true,
displays the width and height of the resized FLVPlayback instance for both occurrences in the
Output panel. If you set
method take effect.
setSize()
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.*;
// maintainAspectRatio defaults to true, causing resize when size changes.
// Remove the comment delimiters from the following line to disable resize.
// my_FLVPlybk.maintainAspectRatio = false;
var listenerObject:Object = new Object();
listenerObject.resize = function(eventObject:Object) {
trace("resize event; Width is: " + eventObject.target.width + " Height
is: " + eventObject.target.height);
};
my_FLVPlybk.addEventListener("resize", listenerObject);
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/
water.flv";
my_FLVPlybk.setSize(300, 300);
See also
FLVPlayback.autoSize
FLVPlayback.preferredWidth
FLVPlayback.width
606
FLVPlayback Component (Flash Professional Only)
, maintains the video aspect ratio. If this property is
true
to
and the
true
autoSize
setSize()
event. The
maintainAspectRatio
event to maintain the aspect ratio. The resize event handler
resize
maintainAspectRatio
,
FLVPlayback.height
,
FLVPlayback.resize
property is
false
method to change the size of the FLVPlayback
property, which defaults to
to
, the dimensions specified by the
false
,
FLVPlayback.preferredHeight
,
FLVPlayback.setSize()
after an FLV file has been
.
true
,
,
Need help?
Do you have a question about the FLASH 8-COMPONENTS LANGUAGE and is the answer not in the manual?
Questions and answers