Adobe Extending Flash Professional CS4 Manual do Utilizador Página 245

  • Descarregar
  • Adicionar aos meus manuais
  • Imprimir
  • Página
    / 560
  • Índice
  • MARCADORES
  • Avaliado. / 5. Com base em avaliações de clientes
Vista de página 244
223
EXTENDING FLASH CS4 PROFESSIONAL
flash object (fl)
Description
Method; opens a File Open or File Save system dialog box and lets the user specify a file to be opened or saved.
Example
The following example lets the user choose a FLA file to open and then opens the file. (The fl.browseForFileURL()
method can browse for any type of file, but
fl.openDocument() can open only FLA files.)
var fileURL = fl.browseForFileURL("open", "Select file");
var doc = fl.openDocument(fileURL);
See also
fl.browseForFolderURL()
fl.browseForFolderURL()
Availability
Flash 8.
Usage
fl.browseForFolderURL([description])
Parameters
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.
Returns
The URL of the folder, expressed as a file:/// URI; returns null if the user cancels out of the dialog box.
Description
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 description parameter to add more detail in the
description area under the title, such as “Select a folder” or “Select the path that contains the profile you want to import.”
Example
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);
See also
fl.browseForFileURL(), FLfile object
Vista de página 244
1 2 ... 240 241 242 243 244 245 246 247 248 249 250 ... 559 560

Comentários a estes Manuais

Sem comentários