beautypg.com

Document.setstagevanishingpoint(), Document.setstageviewangle() – Adobe Extending Flash Professional CS4 User Manual

Page 176

background image

154

EXTENDING FLASH CS4 PROFESSIONAL

Document object

document.setStageVanishingPoint()

Availability
Flash CS4 Professional.

Usage

document.setStageVanishingPoint(point)

Parameters

point

A point that specifies the x and y coordinates of the location at which to set the vanishing point for viewing 3D

objects.

Returns
Nothing.

Description
Specifies the vanishing point for viewing 3D objects.

Example
The following example sets the Stage vanishing point:

fl.getDocumentDOM().setStageVanishingPoint({x:45, y:45});

document.setStageViewAngle()

Availability
Flash CS4 Professional.

Usage

document.setStageViewAngle(angle)

Parameters

angle

A floating point value between 0.0 and 179.0.

Returns
Nothing.

Description
Specifies the perspective angle for viewing 3D objects.

Example
The following example sets the Stage perspective angle to 70 degrees:

fl.getDocumentDOM().setStageViewAngle(70);