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

  • 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 321
300
EXTENDING FLASH PROFESSIONAL
Frame object
Last updated 5/2/2011
Description
Property; a string that specifies whether a sound that is attached directly to a frame (frame.soundLibraryItem)
should play a specific number of times or loop indefinitely. Acceptable values are "repeat" and "loop". To specify
the number of times the sound should play, set a value for
frame.soundLoop.
Example
The following example specifies that a sound should play two times:
fl.getDocumentDOM().getTimeline().layers[0].frames[0].soundLoopMode = "repeat";
fl.getDocumentDOM().getTimeline().layers[0].frames[0].soundLoop = 2;
frame.soundName
Availability
Flash MX 2004.
Usage
frame.soundName
Description
Property; a string that specifies the name of a sound that is attached directly to a frame (frame.soundLibraryItem),
as stored in the library.
Example
The following example changes the soundName property of the first frame to "song1.mp3"; song1.mp3 must exist in
the library:
fl.getDocumentDOM().getTimeline().layers[0].frames[0].soundName = "song1.mp3";
frame.soundSync
Availability
Flash MX 2004.
Usage
frame.soundSync
Description
Property; a string that specifies the sync behavior of a sound that is attached directly to a frame
(
frame.soundLibraryItem). Acceptable values are "event", "stop", "start", and "stream".
Example
The following example specifies that a sound should stream:
fl.getDocumentDOM().getTimeline().layers[0].frames[0].soundSync = 'stream';
Zobrazit stránku 321
1 2 ... 317 318 319 320 321 322 323 324 325 326 327 ... 564 565

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

Žádné komentáře