User Guide
FLVPlayback class 697
See also
FLVPlayback.height, FLVPlayback.setSize(), FLVPlayback.preferredHeight,
FLVPlayback.preferredWidth
FLVPlayback.x
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
my_FLVPlybk.x
Description
Property; a number that specifies the horizontal coordinate (location) of the video player. This
property affects only the horizontal location of the FLVPlayback instance and does not
include the location of a skin SWF file that, when applied, may alter the location. Use the
FLVPlayback
x property, not the MovieClip._x property because the _x property might give
a different value if a skin SWF file is loaded.
Example
The following example places the FLVPlayback instance 50 pixels from the left and 25 pixels
from the top.
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.*;
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/
water.flv";
my_FLVPlybk.x = 50;
my_FLVPlybk.y = 25;
See also
FLVPlayback.y