Adobe Extending Flash Professional CS5 Uživatelský manuál Strana 277

  • Stažení
  • Přidat do mých příruček
  • Tisk
  • Strana
    / 565
  • Tabulka s obsahem
  • KNIHY
  • Hodnocené. / 5. Na základě hodnocení zákazníků
Zobrazit stránku 276
255
EXTENDING FLASH PROFESSIONAL
flash object (fl)
Last updated 5/2/2011
Usage
fl.saveDocumentAs(document)
Parameters
document A Document object that specifies the document to save. If document is null, the active document is saved.
Returns
A Boolean value: true if the Save As operation completes successfully; false otherwise.
Description
Method; displays the Save As dialog box for the specified document.
Example
The following example prompts the user to save the specified document and then displays an alert message that
indicates whether the document was saved:
alert(fl.saveDocumentAs(fl.documents[1]));
See also
document.save(), document.saveAndCompact(), fl.saveAll(), fl.saveDocument()
fl.scriptURI
Availability
Flash CS3 Professional.
Usage
fl.scriptURI
Description
Read-only property; a string that represents the path of the currently running JSFL script, expressed as a file:/// URI.
If the script was called from
fl.runScript(), this property represents the path of the immediate parent script. That
is, it doesn’t traverse multiple calls to fl.runScript() to find the path of the original calling script.
Example
The following example displays the path of the currently running JSFL script in the Output panel:
fl.trace(fl.scriptURI);
See also
fl.runScript()
Zobrazit stránku 276
1 2 ... 272 273 274 275 276 277 278 279 280 281 282 ... 564 565

Komentáře k této Příručce

Žádné komentáře