
626
XML to UI
size
Number; an integer that sets the width of the input field using the average character
width.
tabindex
Number; an integer used to set the control’s position in the tab order (available
only on Windows).
type
String; can be either
"open"
or
"save"
.
value
String; default text that appears in the text input area.
width
Number; sets the width of the text input area measured in pixels.
Child tags
None.
Parent tag
<dialog>
,
<hbox>
,
<row>
,
<vbox>
Description
Control tag; creates a file chooser control (this is not part of the XUL standard). This control
provides users with access to the operating system’s file selection dialog box.
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
.
First, create a file named choosefile.jsfl and place it in your Commands folder. Place the
following code into the file and save the file:
// Create an XML to UI dialog box using the XML definition
// in the choosefile.xml file
var chooseFileDlg = fl.getDocumentDOM().xmlPanel( fl.con "Commands/
choosefile.xml" );
if (chooseFileDlg.dismiss == "accept") {
var path = chooseFileDlg.choosefileControl;
fl.trace(path);
}
Summary of Contents for FLASH 8-FLASH
Page 1: ...Using Flash ...
Page 12: ...12 Contents ...
Page 110: ...110 Using Symbols Instances and Library Assets ...
Page 128: ...128 Working with Color Strokes and Fills ...
Page 156: ...156 Drawing ...
Page 190: ...190 Working with Text ...
Page 224: ...224 Working with Graphic Objects ...
Page 270: ...270 Creating Motion ...
Page 310: ...310 Working with Video ...
Page 362: ...362 Working with Screens Flash Professional Only ...
Page 386: ...386 Creating Multilanguage Text ...
Page 454: ...454 Data Integration Flash Professional Only ...
Page 500: ...500 Publishing ...
Page 534: ...534 Creating Accessible Content ...