562
ActionScript classes
Parameters
typelist
:Array
[optional] - An array of file types used to filter the files displayed in the
dialog box. If you omit this parameter, all files are displayed. If you include this parameter, the
array must contain one or more elements enclosed in curly braces { }. You can use one of two
formats for the array:
■
A list of file type descriptions followed by their Windows file extensions only.
Each element in the array must contain a string that describes the file type and a
semicolon-delimited list of Windows file extensions, with a wildcard character (*)
preceding each extension. The syntax for each element is as follows:
[{description: "
string describing the first set of file types
",
extension: "
semicolon-delimited list of file extensions
"}]
Example:
[{description: "Images", extension: "*.jpg;*.gif;*.png"}, {description:
"Flash Movies", extension: "*.swf"}, {description: "Documents",
extension: "*.doc;*.pdf"}]
■
A list of file type descriptions followed by their Windows file extensions and their
Macintosh file types.
Each element in the array must contain a string that describes the file type; a semicolon-
delimited list of Windows file extensions, with a wildcard character (*) preceding each
extension; and a semicolon-delimited list of Macintosh file types, with a wildcard
character (*) preceding each type. The syntax for each element is as follows:
[{description: "
string describing the first set of file types
",
extension: "
semicolon-delimited list of Windows file extensions
",
macType: "
semicolon-delimited list of Macintosh file types"
}]
Example:
[{description: "Image files", extension: "*.jpg;*.gif;*.png", macType:
"JPEG;jp2_;GIFF"}, {description: "Flash Movies", extension: "*.swf",
macType: "SWFL"}]
The two formats are not interchangeable in a single
browse()
call. You must use one or the
other.
The list of extensions is used to filter the files in Windows, depending on the file selected by
the user. It is not actually displayed in the dialog box. To display the file types for users, you
must list the file types in the description string as well as in the extension list. The description
string is displayed in the dialog box in Windows. (It is not used on the Macintosh.) On the
Macintosh, if you supply a list of Macintosh file types, that list is used to filter the files. If you
don't supply a list of Macintosh file types, the list of Windows extensions is used.
Содержание FLASH 8-ACTIONSCRIPT 2.0 LANGUAGE
Страница 1: ...ActionScript 2 0 Language Reference ...
Страница 1352: ...1352 ActionScript classes ...