Extending Flash |
|
|
|
| Objects > flash object (fl) > fl.browseForFolderURL() | |||
Flash 8.
fl.browseForFolderURL([description])
description An optional string that specifies the description of the Browse For Folder dialog box. If this parameter is omitted, nothing is shown in the description area.
The URL of the folder, expressed as a file:/// URI; returns null if the user cancels out of the dialog box.
Method; displays a Browse for Folder dialog box and lets the user select a folder.
|
NOTE |
The title of the dialog box is always Browse for Folder. Use the |
The following example lets the user select a folder and then displays a list of files in that folder:
var folderURI = fl.browseForFolderURL("Select a folder.");
var folderContents = FLfile.listFolder(folderURI);
fl.browseForFileURL(), FLfile object
|
|
|
|