Adobe Extending Flash Professional CS5 Manuale Utente Pagina 299

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 565
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 298
277
EXTENDING FLASH PROFESSIONAL
FLfile object
Last updated 5/2/2011
Description
Method; writes the specified string to the specified file (as UTF-8). If the specified file does not exist, it is created.
However, the folder in which you are placing the file must exist before you use this method. To create folders, use
FLfile.createFolder().
Example
The following example attempts to write the string "xxx" to the file mydata.txt and displays an alert message if the write
succeeded. It then attempts to append the string "aaa" to the file and displays a second alert message if the write
succeeded. After executing this script, the file mydata.txt will contain only the text "xxxaaa".
var URI = "file:///c|/temp/mydata.txt";
if (FLfile.write(URI, "xxx")) {
alert("Wrote xxx to " + URI);
}
if (FLfile.write(URI, "aaa", "append")) {
alert("Appended aaa to " + fileURI);
}
See also
FLfile.createFolder(), FLfile.exists()
Vedere la pagina 298
1 2 ... 294 295 296 297 298 299 300 301 302 303 304 ... 564 565

Commenti su questo manuale

Nessun commento