ScriptUIExtendScript only
Object

FlashPlayer

A control that contains a Flash Player, which can load and play Flash movies stored in SWF files.

Properties

NameType AccessDescription
Boolean read/write True if this element is active.
String read/write The alignment style for this element. If defined, this value overrides the alignChildren setting for the parent container.
Bounds read/write The boundaries of the element, in parent-relative coordinates.
Boolean read/write True if this element is enabled.
String read/write The help text that is displayed when the mouse hovers over the element.
Number 0– read/write The number of pixels to indent the element during automatic layout.
Point read/write The upper left corner of this element relative to its parent.
Dimension read/write The maximum height and width to which the element can be resized.
Dimension read/write The minimum height and width to which the element can be resized.
readonly The parent element.
Dimension read/write The preferred size, used by layout managers to determine the best size for each element.
Object read/write An object that contains one or more creation properties of the container (properties used only when the element is created).
Dimension read/write The current dimensions of this element.
String readonly The element type, "flashplayer".
Boolean read/write True if this element is shown, false if it is hidden.
Window readonly The window that this element belongs to.
Bounds readonly The bounds of this element relative to the top-level parent window.

Methods

Boolean

Registers an event handler for a particular type of event occuring in this element.

eventName String The name of the event.
handler Function The function that handles the event.
capturePhase Boolean When true, the handler is called only in the capturing phase of the event propagation.
void

A function definition for a callback from the Flash ActionScript environment.

Event

Simulates the occurrence of an event in this target.

void

Hides this element.

→ Varies

Invokes an ActionScript function defined in the Flash application.

name String The name of a Flash ActionScript function that has been registered with the ExternalInterface object by the currently loaded SWF file.
argument? Varies An argument to pass through to the function.
void

Loads a movie into the Flash Player, and begins playing it.

file File The File object for the SWF file to load.
void

Sends a notification message, simulating the specified user interaction event.

eventName? String The name of the control event handler to call.
void

Restarts a movie that has been stopped.

rewind Boolean When true, restarts the movie from the beginning; otherwise, starts playing from the point where it was stopped.
Boolean

Unregisters an event handler for a particular type of event occuring in this element.

eventName String The name of the event.
handler Function The function that handles the event.
capturePhase Boolean Whether to call the handler only in the capturing phase of the event propagation.
void

Shows this element.

void

Halts playback of the current movie.