
CHAPTER 4: User-Interface Tools Control objects 126
edittext
(cont’d) enterKeySignalsOnChange: When false (the default), the
control signals an onChange
event when the editable text is
changed and the control loses the keyboard focus (that is,
the user tabs to another control, clicks outside the control, or
types E
NTER). When true, the control only signals an
onChange event when the editable text is changed and the
user types E
NTER; other changes to the keyboard focus do
not signal the event.
borderless: When true , the control is drawn with no
border. Default is false.
multiline: When false (the default), the control accepts a
single line of text. When true, the control accepts multiple
lines, in which case the text wraps within the width of the
control.
scrollable: (For multiline elements only) When true (the
default), the text field has a vertical scrollbar that is enabled
when the element contains more text than fits in the visible
area. When false, no vertical scrollbar appears; if the element
contains more text than fits in the visible area, the arrow
keys can be used to scroll the text up and down.
flashplayer FlashPlayer
A control that contains a Flash Player, which can load and play Flash
movies stored in SWF files.
The ScriptUI FlashPlayer element runs the Flash application within an
Adobe application. The Flash application runs ActionScript, a
different implementation of JavaScript from the ExtendScript
version of JavaScript that Adobe applications run.
A control object of this type contains functions that allow your script
to load SWF files, control movie playback, and communicate with the
ActionScript environment. See “
FlashPlayer control functions” on
page 145.
To add to a window
w:
w.add (“flashplayer” [, bounds, movieToLoad,
{creation_properties}]);
bounds: Optional. The control’s position and size.
movieToLoad: Optional. A path or URL string or File object for
the SWF file to load into the player.
creation_properties: Optional. An object that contains any of
the following properties:
name: A unique name for the control.
Type keyword Class name Description
Comentarios a estos manuales