Adobe Extending Flash Professional CS4 Manuel d'utilisateur Page 146

  • 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 145
124
EXTENDING FLASH CS4 PROFESSIONAL
Document object
fl.getDocumentDOM().optimizeCurves(50, true);
document.path
Availability
Flash MX 2004.
Usage
document.path
Description
Read-only property; a string that represents the path of the document in a platform-specific format. If the document
has never been saved, this property is
undefined.
Example
The following example displays the path of the first document in the documents array in the Output panel. You must
save the document before running this script. In the example, the file is named test.fla and is saved in the My
Documents folder on a Windows computer.
var filePath = flash.documents[0].path;
fl.trace(filePath);
// displays C:\Documents and Settings\<user name>\My Documents\test.fla
See also
document.pathURI
document.pathURI
Availability
Flash CS4 Professional.
Usage
document.pathURI
Description
Read-only property; a string that represents the path of the document, expressed as a file:/// URI. If the document has
never been saved, this property is
undefined.
Example
The following example displays the path of the first document in the documents array as a file:/// URI string in the
Output panel. You must save the document before running this script. In the example, the file is named test.fla and is
saved in the My Documents folder on a Windows computer.
var filePathURI = flash.documents[0].pathURI;
fl.trace(filePathURI);
// displays file:///C|/Documents%20and%20Settings/<userName>/My%20Documents/test.fla
Vue de la page 145
1 2 ... 141 142 143 144 145 146 147 148 149 150 151 ... 559 560

Commentaires sur ces manuels

Pas de commentaire