User Guide
FLVPlayback class 645
Example
The following example creates a listener for the stateChange event and uses the
FLVPlayback.REWINDING property to determine whether the component is in the
rewinding state.
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.*;
var listenerObject:Object = new Object();
listenerObject.stateChange = function(eventObject:Object):Void {
if(eventObject.state == FLVPlayback.REWINDING)
trace("The current state is " + FLVPlayback.REWINDING);
};
my_FLVPlybk.addEventListener("stateChange", listenerObject);
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/
water.flv";
See also
FLVPlayback.state, FLVPlayback.stateChange
FLVPlayback.scaleX
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
my_FLVPlybk.scaleX
Description
Property; a number that is the horizontal scale. The standard scale is 100.
Example
The following example sets the scaleX (horizontal) and scaleY (vertical) properties of the
FLVPlayback instance to 150 percent.