Adobe Extending Flash Professional CS5 Manuale Utente Pagina 413

  • Scaricare
  • Aggiungi ai miei manuali
  • Stampa
  • Pagina
    / 565
  • Indice
  • SEGNALIBRI
  • Valutato. / 5. Basato su recensioni clienti
Vedere la pagina 412
391
EXTENDING FLASH PROFESSIONAL
SoundItem object
Last updated 5/2/2011
Description
Property; a Boolean value available only for MP3 and Raw compression types. Setting this value to true converts a
stereo sound to mono;
false leaves it as stereo. For the MP3 compression type, if soundItem.bitRate is less than 20
Kbps, this property is ignored and forced to
true (see soundItem.bitRate).
If you want to specify a value for this property, set soundItem.useImportedMP3Quality to false.
Example
The following example converts an item in the library to mono only if the item has the MP3 or Raw compression type:
fl.getDocumentDOM().library.items[0].convertStereoToMono = true;
See also
soundItem.compressionType
soundItem.exportToFile()
Availability
Flash CS4 Professional.
Usage
soundItem.exportToFile(fileURI)
Parameters
fileURI A string, expressed as a file:/// URI, that specifies the path and name of the exported file.
Returns
A Boolean value of true if the file was exported successfully; false otherwise.
Description
Method; exports the specified item to a QuickTime file on the Macintosh, or to a WAV or QT file on Windows. The
exported QuickTime or QT files contain only audio; video is not exported. Export settings are based on the item being
exported.
Example
Assuming that the first item in the Library is a sound item, the following code exports it as a WAV file:
var soundFileURL = "file:///C|/out.wav";
var libItem = fl.getDocumentDOM().library.items[0];
libItem.exportToFile(soundFileURL);
soundItem.fileLastModifiedDate
Availability
Flash CS4 Professional.
Vedere la pagina 412
1 2 ... 408 409 410 411 412 413 414 415 416 417 418 ... 564 565

Commenti su questo manuale

Nessun commento