Skip to content

Latest commit

 

History

History
35 lines (20 loc) · 518 Bytes

File metadata and controls

35 lines (20 loc) · 518 Bytes

getZoom()

Availability

Adobe Animate 2019.

Usage

camera.getZoom(frameIndex)

Parameters

frameIndex:int

Return

double

Description

Return the current zoom value of camera. Default is 100%.

Example

The following example :

var timeline = an.getDocumentDOM().getTimeline();
timeline.camera.cameraEnabled = true;
var zoomval = timeline.camera.getZoom(0);

See also

getZDepth(), getRotation()