AFComponents.com

FLV Player (AS 3.0) Basic Skins V. 2.1 API Docs



Properties

Name Type Description
autoBuffer Boolean Indicates whether the player should start buffering right when the .swf loads (true), or wait for the user to play the video (false).

Example

myPlayer.autoBuffer = false;
previewClip String Path to an external image to be used as a preview.

Example

myPlayer.previewClip = "image.jpg";
See FLVPlayback Void For all other properties, see Adobe Flash(tm) FLVPlayback Class.

Methods

Name Return Type Description
showSkin( void ) Void If the player's skin is hidden, shows the player's skin with the standard fade transition.

Example

myPlayer.showSkin();
hideSkin( void ) Void If the player's skin is showing, hides the player's skin with the standard fade transition.

Example

myPlayer.hideSkin();
setDisplaySize( width:Number,
height:Number,
x:Number,
y:Number
)
Void Shrinks or expands the video display window to width, height with position x, y from FLV Player position with a tween.

Example

myPlayer.setDisplaySize(160, 120, 10, 10);
See FLVPlayback( void ) Void For all other methods, see Adobe Flash(tm) FLVPlayback Class.

Events

Name Return Value Description
PLACEHOLDER_LOAD_START type
target
Triggered when previewClip starts loading.

Example

import fl.video.FLVPLaybackEvent;

function onPlayerEvent(event:FLVPLaybackEvent) {
    trace(event.type);
    trace(event.target);
}
myPlayer.addEventListener(FLVPLaybackEvent.PLACEHOLDER_LOAD_START, onPlayerEvent);
PLACEHOLDER_LOAD_PROGRESS type
target
bytesLoaded
bytesTotal
Triggered during previewClip loading to monitor progress.

Example

import fl.video.FLVPLaybackEvent;

function onPlayerEvent(event:FLVPLaybackEvent) {
    trace(event.type);
    trace(event.target);
    trace(event.bytesLoaded + " of " + event.bytesTotal);
}
myPlayer.addEventListener(FLVPLaybackEvent.PLACEHOLDER_LOAD_PROGRESS, onPlayerEvent);
PLACEHOLDER_LOAD_COMPLETE type
target
Triggered when previewClip is finished loading.

Example

import fl.video.FLVPLaybackEvent;

function onPlayerEvent(event:FLVPLaybackEvent) {
    trace(event.type);
    trace(event.target);
}
myPlayer.addEventListener(FLVPLaybackEvent.PLACEHOLDER_LOAD_COMPLETE, onPlayerEvent);
SKIN_SHOW type
target
Triggered when the FLV Player's skin is shown.

Example

import fl.video.FLVPLaybackEvent;

function onPlayerEvent(event:FLVPLaybackEvent) {
    trace(event.type);
    trace(event.target);
}
myPlayer.addEventListener(FLVPLaybackEvent.SKIN_SHOW, onPlayerEvent);
SKIN_HIDE type
target
Triggered when the FLV Player's skin is hidden.

Example

import fl.video.FLVPLaybackEvent;

function onPlayerEvent(event:FLVPLaybackEvent) {
    trace(event.type);
    trace(event.target);
}
myPlayer.addEventListener(FLVPLaybackEvent.SKIN_HIDE, onPlayerEvent);
DISPLAY_SIZE_START type
target
Triggered when the display starts resizing after a call to the setDisplaySize() method.

Example

import fl.video.FLVPLaybackEvent;

function onPlayerEvent(event:FLVPLaybackEvent) {
    trace(event.type);
    trace(event.target);
}
myPlayer.addEventListener(FLVPLaybackEvent.DISPLAY_SIZE_START, onPlayerEvent);
DISPLAY_SIZE_PROGRESS type
target
percentResized
Triggered during display resize to monitor progress.

Example

import fl.video.FLVPLaybackEvent;

function onPlayerEvent(event:FLVPLaybackEvent) {
    trace(event.type);
    trace(event.target);
    trace(event.percentResized + "% completed.");
}
myPlayer.addEventListener(FLVPLaybackEvent.SKIN_HIDE, onPlayerEvent);
DISPLAY_SIZE_COMPLETE type
target
Triggered when display resize is complete.

Example

import fl.video.FLVPLaybackEvent;

function onPlayerEvent(event:FLVPLaybackEvent) {
    trace(event.type);
    trace(event.target);
}
myPlayer.addEventListener(FLVPLaybackEvent.DISPLAY_SIZE_COMPLETE, onPlayerEvent);
See FLVPlayback For all other events, see Adobe Flash(tm) FLVPlayback Class.



© 2005-2007 advanced flash components