Fl.as3packagepaths, Fl.browseforfileurl() – Adobe Extending Flash Professional CS4 User Manual
Page 244
222
EXTENDING FLASH CS4 PROFESSIONAL
flash object (fl)
fl.as3PackagePaths
Availability
Flash CS3 Professional.
Usage
fl.as3PackagePaths
Description
Property; a string that corresponds to the global Classpath setting in the ActionScript 3.0 Settings dialog box. Items in
the string are delimited by semi-colons. To view or change ActionScript 2.0 Classpath settings, use
Example
The following example illustrates changing the ActionScript 3.0 Classpath settings.
fl.trace(fl.as3PackagePaths);
// Output (assuming started with default value)
// .;$(AppConfig)/ActionScript 3.0/Classes
fl.as3PackagePaths="buying;selling";
fl.trace(fl.as3PackagePaths);
// Output
// buying; selling
See also
fl.browseForFileURL()
Availability
Flash MX 2004.
Usage
fl.browseForFileURL(browseType [, title [, previewArea]])
Parameters
browseType
A string that specifies the type of file browse operation. Acceptable values are
"open"
,
"select"
or
"save"
. The values
"open"
and
"select"
open the system File Open dialog box. Each value is provided for
compatibility with Dreamweaver. The value
"save"
opens a system File Save dialog box.
title
A string that specifies the title for the File Open or File Save dialog box. If this parameter is omitted, a default
value is used. This parameter is optional.
previewArea
An optional parameter that is ignored by Flash and Fireworks and is present only for compatibility with
Dreamweaver.
Returns
The URL of the file, expressed as a file:/// URI; returns
null
if the user cancels out of the dialog box.