Frame.soundlibraryitem, Frame.soundloop, Plays – Adobe Extending Flash Professional CS4 User Manual
Page 308: Frame
286
EXTENDING FLASH CS4 PROFESSIONAL
Frame object
Description
Property; a string that specifies effects for a sound that is attached directly to a frame (
).
Acceptable values are
"none"
,
"left channel"
,
"right channel"
,
"fade left to right"
,
"fade right to
left"
,
"fade in"
,
"fade out"
, and
"custom"
.
Example
The following example specifies that the sound attached to the first frame should fade in:
fl.getDocumentDOM().getTimeline().layers[0].frames[0].soundEffect = "fade in";
frame.soundLibraryItem
Availability
Flash MX 2004.
Usage
frame.soundLibraryItem
Description
Property; a library item (see
) used to create a sound. The sound is attached directly to the frame.
Example
The following example assigns the first item in the library to the
soundLibraryItem
property of the first frame:
// The first item in the library must be a sound object.
fl.getDocumentDOM().getTimeline().layers[0].frames[0].soundLibraryItem
=fl.getDocumentDOM().library.items[0];
frame.soundLoop
Availability
Flash MX 2004.
Usage
frame.soundLoop
Description
Property; an integer value that specifies the number of times a sound that is attached directly to a frame
(
) plays. If you want to specify a value for this property, set
to
"repeat"
.
Example
See
.