User Guide

550 FLVPlayback Component (Flash Professional Only)
APIs that control volume, positioning, dimensions, visibility, and UI controls are always
global, and their behavior is not affected by setting
activeVideoPlayerIndex. Specifically,
setting the
activeVideoPlayerIndex property does not affect the following properties
and methods.
APIs that control dimensions do interact with the
visibleVideoPlayerIndex property,
however. For more information, see “FLVPlayback.visibleVideoPlayerIndex” on page 688.
The remaining APIs target a specific video player based on the setting of
activeVideoPlayerIndex.
When listening for events, you get all events for all video players. To distinguish which video
player the event is for, use the event’s
vp property, a number corresponding to the number set
in
activeVideoPlayerIndex and visibleVideoPlayerIndex. All events have this property
except for
resize and volume, which are not specific to a video player but are global for the
FLVPlayback instance.
For example, to load a second FLV file in the background, set
activeVideoPlayerIndex to 1
and call the
load() method. When you are ready to show this FLV file and hide the first one,
set
visibleVideoPlayerIndex to 1.
Example
The following example creates two video players to play two FLV files consecutively in a single
FLV file instance. It sets the
activeVideoPlayerIndex property to switch between the video
players and their respective FLV files.
Properties and Methods Not Affected by activeVideoPlayerIndex
backButton playPauseButton skin width
bufferingBar scaleX stopButton x
bufferingBarHidesAndDisablesOthers transform y
forwardButton scaleY visible setSize()
height seekBar volume setScale()
muteButton seekBarInterval volumeBar
pauseButton seekBarScrubTolerance volumeBarInterval
playButton seekToPrevOffset volumeBarScrubTolera
nce
NOTE
The visibleVideoPlayerIndex property, not the activeVideoPlayerIndex property,
determines which video player the skin controls.