EasyManua.ls Logo

MACROMEDIA FLASH 8-USING FLASH - Page 626

MACROMEDIA FLASH 8-USING FLASH
678 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
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 controls 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 systems 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.configURI + "Commands/
choosefile.xml" );
if (chooseFileDlg.dismiss == "accept") {
var path = chooseFileDlg.choosefileControl;
fl.trace(path);
}

Table of Contents

Related product manuals