ActionScript 2.0 Components Language Reference |
|
|
|
| FLVPlayback Component > FLVPlayback class > FLVPlayback.autoPlay | |||
Flash Player 8.
Flash Professional 8.
my_FLVPlybk.autoPlay
Property; a Boolean value that, if set to true, causes the FLV file to play immediately when the contentPath property is set. If set to false, the component waits for the play command. Even if autoPlay is set to false, the component loads the content immediately. The default value is true.
If you set the property to true between the loading of new FLV files, it has no effect until contentPath is set.
The following example disables the FLV file from playing to set the playhead 30 percent into the playing time and begin playing at that point.
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.autoPlay = false;var listenerObject:Object = new Object();listenerObject.ready = function(eventObject:Object):Void {my_FLVPlybk.seekPercent(30);my_FLVPlybk.play();};my_FLVPlybk.addEventListener("ready", listenerObject);my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/water.flv";
FLVPlayback.activeVideoPlayerIndex
|
|
|
|