beautypg.com

Frame.actionscript, Frame.duration – Adobe Extending Flash Professional CS4 User Manual

Page 301

background image

279

EXTENDING FLASH CS4 PROFESSIONAL

Frame object

frame.actionScript

Availability
Flash MX 2004.

Usage

frame.actionScript

Description
Property; a string that represents ActionScript code. To insert a new line character, use

"\n"

.

Example
The following example assigns

stop()

to first frame top layer action:

fl.getDocumentDOM().getTimeline().layers[0].frames[0].actionScript = 'stop();';

frame.duration

Availability
Flash MX 2004.

Usage

frame.duration

frame.soundEffect

A string that specifies effects for a sound that is attached directly to a frame
(

frame.soundLibraryItem

).

frame.soundLibraryItem

A library item (see

SoundItem object

) used to create a sound.

frame.soundLoop

An integer value that specifies the number of times a sound that is attached
directly to a frame (

frame.soundLibraryItem

) plays.

frame.soundLoopMode

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.

frame.soundName

A string that specifies the name of a sound that is attached directly to a frame
(

frame.soundLibraryItem

), as stored in the library.

frame.soundSync

A string that specifies the sync behavior of a sound that is attached directly to a
frame (

frame.soundLibraryItem

).

frame.startFrame

Read-only; the index of the first frame in a sequence.

frame.tweenEasing

An integer that specifies the amount of easing that should be applied to the
tweened object.

frame.tweenType

A string that specifies the type of tween.

frame.useSingleEaseCurve

A Boolean value that specifies whether a single custom ease curve is used for
easing information for all properties.

Property

Description