Graphic3d (com.robertpenner.display.Graphic3d)

com.robertpenner.display.Graphic3d
class Graphic3d

The Graphic3d class is a template for an object that contains both 3d coordinates and graphics. A Graphic3d object is not itself a MovieClip. It is a code object, which can attach and manipulate a MovieClip by reference.

Availability:

ActionScript 2.0; Flash Player 6

Property summary

Property Description
position:Vector3d

The graphic's 3d location.

scale:Number

The graphic's scale.

Method summary

Method Description
render() : Void

Updates the graphic's visual representation to match its current status.

Graphic3d(x:Number, y:Number, z:Number, timeline:MovieClip, mcID:String, depth:Number)

Usage


var pointA:Graphic3d = new Graphic3d(50, -30, 20, this, "dot", 1);

Parameters

x:Number - The x value of the graphic.

y:Number - The y value of the graphic.

z:Number - The z value of the graphic.

timeline:MovieClip - A reference to the MovieClip that contains this particular Graphic3d object.

mcID:String - The linkage name of the MovieClip symbol in the library to attach as the graphic.

depth:Number - An integer specifying the depth level where the graphic is placed.

Description

Creates an instance of the Graphic3d class.


render() : Void

Usage


var pointA:Graphic3d = new Graphic3d(50, -30, 20, this, "dot", 1);
pointA.position.rotateX(5);
pointA.render();

Parameters

Returns

Nothing.

Description

Updates the graphic's visual representation to match its current status.


position : Vector3d

Usage


var pointA:Graphic3d = new Graphic3d(50, -30, 20, this, "dot", 1);
pointA.position.rotateX(5);

Description

The graphic's 3d location.


scale : Number

Usage


trace (pointA.scale);

Description

The graphic's scale.