beautypg.com

Frame.name, Frame.selectmotionpath() – Adobe Extending Flash Professional CS5 User Manual

Page 317

background image

295

EXTENDING FLASH PROFESSIONAL

Frame object

Last updated 5/2/2011

Usage

frame.motionTweenSync

Description
Property; a Boolean value that if set to

true

, synchronizes the animation of the tweened object with the main timeline.

Example
The following example specifies that tweened object should be synchronized with the timeline:

fl.getDocumentDOM().getTimeline().layers[0].frames[0].motionTweenSync = true;

frame.name

Availability
Flash MX 2004.

Usage

frame.name

Description
Property; a string that specifies the name of the frame.

Example
The following example sets the name of the first frame, top layer to

"First Frame"

and then stores the

name

value in

the

frameLabel

variable:

fl.getDocumentDOM().getTimeline().layers[0].frames[0].name = 'First Frame';

var frameLabel = fl.getDocumentDOM().getTimeline().layers[0].frames[0].name;

frame.selectMotionPath()

Availability
Flash Professional CS5.

Usage

Frame.selectMotionPath()

Description
Method; a Boolean value. Selects (true) or deselects (false) the motion path of the current motion object.

Example
The example selects or deselects the motion path of the current motion object.

This manual is related to the following products: