MACROMEDIA FLASH 8-USING FLASH Use Manual page 626

Using flash
Table of Contents

Advertisement

Number; an integer that sets the width of the input field using the average character
size
width.
Number; an integer used to set the control's position in the tab order (available
tabindex
only on Windows).
String; can be either
type
String; default text that appears in the text input area.
value
Number; sets the width of the text input area measured in pixels.
width
Child tags
None.
Parent tag
<dialog>, <hbox>,
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.configURI + "Commands/
choosefile.xml" );
if (chooseFileDlg.dismiss == "accept") {
var path = chooseFileDlg.choosefileControl;
fl.trace(path);
}
626
XML to UI
or
"open"
"save"
,
<row>
<vbox>
.

Advertisement

Table of Contents
loading

This manual is also suitable for:

Flash 8

Table of Contents