Skip to content

Latest commit

 

History

History
58 lines (34 loc) · 630 Bytes

File metadata and controls

58 lines (34 loc) · 630 Bytes

Camera.setZoom()

Availability

Adobe Animate 2019

Usage

setZoom(frameIndex, zoomVal)

Parameters

frameIndex

Type

number

Description

integer

zoomVal

Type

number

Description

integer

Returns

Nothing.

Type

void

Description

Zooms camera to absolute value given by input parameter in percentage.

Example

The following example zooms camera to absolute value given by input parameter in percentage.

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