Skip to content

Latest commit

 

History

History
58 lines (34 loc) · 676 Bytes

File metadata and controls

58 lines (34 loc) · 676 Bytes

Camera.setRotation()

Availability

Adobe Animate 2019

Usage

setRotation(frameIndex, angleDegree)

Parameters

frameIndex

Type

number

Description

Frame Number in timeline.

angleDegree

Type

number

Description

(integer) The angleDegree for rotation.

Returns

nothing

Type

void

Description

Rotate camera by absolute angle given as input parameters.

Example

The following example rotates camera by absolute angle given as input parameters.

var timeline = an.getDocumentDOM().getTimeline();
timeline.camera.setRotation(37, -100);