User Guide
Media.activePlayControl 851
Media.activePlayControl
Applies to
MediaController.
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
myMedia.activePlayControl
Description
Property; a string value that specifies the state the MediaController component should be in
when it is loaded at runtime. A value of
"play" indicates a play state; a value of "pause"
indicates a paused state. Set this property and the
autoPlay property such that both indicate
the same state. The default value is
"play".
The button image displayed in the MediaController component is the opposite of the current
play/pause state. For example, in the play state, the MediaController displays a pause button,
because that is what would result from the user clicking the button and toggling the state.
Because it indicates the state that the controller is in when it is loaded, the
activePlayControl property must be set before the controller is created, either through the
Property inspector or the Component inspector, if the component is on the Stage. If the
component is being created by ActionScript code, this property must be set in the
initObj
parameter. Changing the value of this property after the component has been created has no
effect. The value can be changed only by the user clicking the Play/Pause button.
Example
The following example indicates that the control is paused when first loaded:
myMedia.activePlayControl = "pause";
Media.scrubbing MediaController,
MediaPlayback
Generated when the playhead is dragged.
Media.volume MediaController,
MediaPlayback
Broadcast when the user adjusts the
volume.
Event Components Description