FLVPlayback.visible

Availability

Flash Player 8.

Edition

Flash Professional 8.

Usage

my_FLVPlybk.visible

Description

Property; a Boolean value that, if true, makes the FLVPlayback component visible. If false, it makes the component invisible. The default value is true.

Example

The following example sets the visible property to false to make the FLVPlayback instance invisible when the FLV file finishes playing.

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.complete = function(eventObject:Object):Void {
    my_FLVPlybk.visible = false;
};
my_FLVPlybk.addEventListener("complete", listenerObject);
my_FLVPlybk.contentPath = "http://www.helpexamples.com/flash/video/water.flv";

See also

FLVPlayback.activeVideoPlayerIndex, FLVPlayback.closeVideoPlayer(), FLVPlayback.visibleVideoPlayerIndex


Flash CS3