Frame.soundloopmode; Frame.soundname - MACROMEDIA FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY Manual

Flash javascript dictionary
Hide thumbs Also See for FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY:
Table of Contents

Advertisement

Description
Property; an integer value that specifies the number of times a sound that is attached directly to a
frame (
frame.soundLibraryItem

frame.soundLoopMode

Example
See
frame.soundLoopMode
frame.soundLoopMode
Availability
Flash MX 2004.
Usage
frame.soundLoopMode
Description
Property; a string that specifies whether a sound that is attached directly to a frame
(
frame.soundLibraryItem
values are
"repeat"
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
Example
The following example changes the
song1.mp3 must exist in the library:
fl.getDocumentDOM().getTimeline().layers[0].frames[0].soundName = "song1.mp3";
192
Chapter 3: Objects
) plays. If you want to specify a value for this property, set
to
.
"repeat"
.
) should play a specific number of times or loop indefinitely. Valid
and
. To specify the number of times the sound should play, set a
"loop"
.
), as stored in the library.
soundName
property of the first frame to
;
"song1.mp3"

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the FLASH MX 2004-FLASH JAVASCRIPT DICTIONARY and is the answer not in the manual?

Questions and answers

This manual is also suitable for:

Flash mx 2004 - actionscript

Table of Contents