Adobe Extending Flash Professional CS4 Manuel d'utilisateur Page 254

  • Télécharger
  • Ajouter à mon manuel
  • Imprimer
  • Page
    / 560
  • Table des matières
  • MARQUE LIVRES
  • Noté. / 5. Basé sur avis des utilisateurs
Vue de la page 253
232
EXTENDING FLASH CS4 PROFESSIONAL
flash object (fl)
fl.fileExists()
Availability
Flash MX 2004.
Usage
fl.fileExists(fileURI)
Parameters
fileURI A string, expressed as a file:/// URI, that contains the path to the file.
Returns
A Boolean value: true if the file exists on disk; false otherwise.
Description
Method; checks whether a file already exists on disk.
Example
The following example displays true or false in the Output panel for each specified file, depending on whether the
file exists.
alert(fl.fileExists("file:///C|/example.fla"));
alert(fl.fileExists("file:///C|/example.jsfl"));
alert(fl.fileExists(""));
fl.findDocumentDOM()
Availability
Flash CS3 Professional.
Usage
fl.findDocumentDOM(id)
Parameters
id An integer that represents a unique identifier for a document.
Returns
A Document object, or null if no document exists with the specified id.
Description
Method; lets you target a specific file by using its unique identifier (instead of its index value, for example). Use this
method in conjunction with
document.id.
Example
The following example illustrates reading a document’s ID and then using it to target that document:
Vue de la page 253
1 2 ... 249 250 251 252 253 254 255 256 257 258 259 ... 559 560

Commentaires sur ces manuels

Pas de commentaire