Main Page | Packages | Class Tree | Index | Help

com.bjc.controls

class PlayerControl

MovieClip
  |
  +--com.bjc.core.BJCComponent
        |
        +--com.bjc.controls.PlayerControl


class PlayerControl
extends BJCComponent

A simple play/pause and rewind button container that can be targeted to and used to control a VideoPlayer component.


Author:
Flashloaded - www.flashloaded.com


Fields inherited from class com.bjc.core.BJCComponent

version

Property Summary

public
target: Object (write)
A reference to a VideoPlayer component that this component will control.

public
target: Object (read)
A reference to a VideoPlayer component that this component will control.

Properties inherited from class com.bjc.core.BJCComponent

disabledAlpha, enabled, focusTime, height, keyEnabled, style, width

Constructor

public
PlayerControl ( Void)


Method Summary

public static
create ( target: MovieClip, id: String, depth: Number, initObj: Object ): PlayerControl
Static method used to create an instance of a PlayerControl on stage at run time.

Methods inherited from class com.bjc.core.BJCComponent

draw, invalidate, move, remove, setSize



Property Documentation

target

public target: Object (write)
A reference to a VideoPlayer component that this component will control.

Example:
myPlayerControl.target = myVideoPlayer;

target

public target: Object (read)
A reference to a VideoPlayer component that this component will control.

Example:
myVar = myPlayerControl.target;


Constructor Documentation

PlayerControl

public function PlayerControl(Void)

Method Documentation

create

public static function create(target: MovieClip,
 id: String,
 depth: Number,
 initObj: Object): PlayerControl
Static method used to create an instance of a PlayerControl on stage at run time.

Parameters:
target
the movie clip to which the player control will be attached.
id
the instance name given to the new player control attached.
depth
the depth at which to attach the new player control.
initObj
(optional) an object containing any properties you want to assign to the component when it is created
Returns:
a reference to the new player control attached.

Example:
import com.bjc.controls.PlayerControl;
var newPlayerControl:PlayerControl = PlayerControl.create(_root, "myPlayerControl", 0);


The documentation was generated from the following file:


Copyright Flashloaded - www.flashloaded.com