MACROMEDIA FLASH 8-COMPONENTS LANGUAGE Reference page 698

Components language reference
Table of Contents

Advertisement

FLVPlayback.width
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
my_FLVPlybk.width
Description
Property; a number that specifies the width of the FLVPlayback instance on the Stage. This
property affects only the width of the FLVPlayback instance and does not include the width
of a skin SWF file that might be loaded. Use the FLVPlayback
property because the
MovieClip._width
skin SWF file is loaded.
Example
The following example sets the
because the default value of the
occurs, the event handler shows the width and height of the resized FLVPlayback instance in
the Output panel.
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 (true by default) affects the actual dimensions
my_FLVPlybk.width = 400;
my_FLVPlybk.height = 350;
var listenerObject:Object = new Object();
listenerObject.resize = function(eventObject:Object) {
trace("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";
696
FLVPlayback Component (Flash Professional Only)
property might give a different value if a
_width
and
properties, which causes a
width
height
maintainAspectRatio
property and not the
width
property is
. When the event
true
event
resize

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

Subscribe to Our Youtube Channel

This manual is also suitable for:

Flash 8

Table of Contents