User Guide
Media components (Flash Professional only) 513
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.
Since it indicates the state that the controller will be 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 will be paused when first loaded:
myMedia.activePlayControl = "pause";
See also
Media.autoPlay
Media.addCuePoint()
Applies to
MediaDisplay, MediaPlayback
Availability
Flash Player 7.
Edition
Flash MX Professional 2004.
Usage
myMedia.addCuePoint(cuePointName, cuePointTime)
Parameters
cuePointName
A string that names the cue point.
cuePointTime A number, in seconds, that indicates when a cuePoint event is broadcast.
Returns
Nothing.