User Guide
596 FLVPlayback Component (Flash Professional Only)
See also
FLVPlayback.fastForward, FLVPlayback.seek, FLVPlayback.state,
FLVPlayback.stateChange
FLVPlayback.getVideoPlayer()
Availability
Flash Player 8.
Edition
Flash Professional 8.
Usage
my_FLVplybk.getVideoPlayer(index:Number)
Returns
A VideoPlayer object.
Description
Method; gets the video player specified by index. When possible, it is best to access
VideoPlayer methods and properties using FLVPlayback methods and properties. Each
VideoPlayer._name property is its index.
Example
The following example uses two video players to play two FLV files. When the second FLV
file triggers the
ready event, the example calls the getVideoPlayer() method to obtain
video player number 1 and set its
_alpha property to 50. This causes the FLV file
(plane_cuepoints) in that player to be transparent and makes both FLV files visible
simultaneously.
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
*/
my_FLVPlybk.load("http://www.helpexamples.com/flash/video/cuepoints.flv");
var listenerObject:Object = new Object();
listenerObject.ready = function(eventObject:Object) {
if (eventObject.target.contentPath == "http://www.helpexamples.com/
flash/video/cuepoints.flv") {