622
XML to UI
<button>
Availability
Flash MX 2004.
Usage
<button
id=”
myID
”
label=”
myLabel
”
tabindex=”
myIdx
”
accesskey=”
myChar
”/>
Attributes
id
String; represents a unique identification string that is used by the extensibility features
to identify the control and access the value it returns.
label
String; text that appears on the button.
tabindex
Number; an integer used to set the control’s position in the tab order (available
only on Windows).
accesskey
String; a character to be used for the keyboard shortcut for this control
(available only on Windows).
oncommand
A JavaScript command that executes when the button is clicked.
Child tags
None.
Parent tag
<dialog>
,
<hbox>
,
<row>
,
<vbox>
Description
Control tag; creates a button control.
Example
The following example uses the JavaScript API to create a new command that appears in
Commands menu. Create two files, as described in this section, and place them in your
Commands folder in your user-level configuration folder. For more information, see
“Configuration folders installed with Flash” in
Getting Started with Flash
.
Содержание FLASH 8-FLASH
Страница 1: ...Using Flash ...
Страница 12: ...12 Contents ...
Страница 110: ...110 Using Symbols Instances and Library Assets ...
Страница 128: ...128 Working with Color Strokes and Fills ...
Страница 156: ...156 Drawing ...
Страница 190: ...190 Working with Text ...
Страница 224: ...224 Working with Graphic Objects ...
Страница 270: ...270 Creating Motion ...
Страница 310: ...310 Working with Video ...
Страница 362: ...362 Working with Screens Flash Professional Only ...
Страница 386: ...386 Creating Multilanguage Text ...
Страница 454: ...454 Data Integration Flash Professional Only ...
Страница 500: ...500 Publishing ...
Страница 534: ...534 Creating Accessible Content ...