Search:

v2.1

Useful:

	http://pixelwelders.com/blog/actionscript-3/2008/five3d-cheat-sheet-the-display-classes/


five3D.display.Scene3D extends Sprite

	render()

	viewDistance:Number - "camera's" distance from scene

	ambientLightVector:Point3D, ambientLightVectorNormalized
	ambientLightIntensity:Number

	* No cameras.


five3D.display.Sprite3D extends Sprite

	visible

	x, y, z

	scaleX, scaleY, scaleZ

	rotationX, rotationY, rotationZ

	mouseX; mouseY; mouseXY

	singleSided:Boolean

	flatShaded:Boolean

	childrenSorted:Boolean

	graphics3D:Graphics3D

	getScene():Scene3D


	* many Sprite properties/methods don't apply and throw errors
	  eg, width, rotation, scale9Grid, drag, etc.

	* Sprite3D creates an instance of Matrix3D and Graphics3D

	* Inherits all the event functionality of a Sprite (= good)


five3D.display.Shape3D extends flash.display.Shape

	Almost same interface as Sprite3D
	Like with Shape vs. Sprite, it's non-interactive and child-less.


five3D.display.Sprite2D extends Sprite

	Similar interface to Sprite3D.
	Can take in bitmaps or whatever. 
	No 'plane perspective' or whatever. 
	No Graphics3D instance, just traditional 'graphics'.
	Z-Rotation only.


five3D.display.Bitmap3D($b:BitmapData) extends flash.display.Shape

	Almost same interface as Sprite3D.
	Useful.


five3D.display.Shape3D extends flash.display.Shape

	Almost same interface as Sprite3D


five3D.display.Graphics3D

	"Emulates" DisplayObject.graphics(). Usage is similar:

		var sign:Sprite3D = new Sprite3D();
		sign.graphics3D.beginFill(0x000000);
		sign.graphics3D.drawRoundRect(-150, -150, 300, 300, 40, 40);
		sign.graphics3D.endFill();
		scene.addChild(sign);

	beginFill, endFill
	clear
	curveTo (quadratic Bezier, 2D)
	curveToSpace (3d)
	drawCircle, drawEllipse, drawRect, drawRoundRect
	lineStyle
	lineTo (2D), lineToSpace (3D)
	moveTo (2D), moveToSpace (3D)

	addMotif(a:array) - concats a set of draw 'commands' to the object


five3D.utils.Drawing

	Utility class to create shapes.

	polygon, star, gradientHorizontalPlain, ...


five3D.display.DynamicText3D(typography:Object) extends Sprite3D

	text:String
	typography:Object
	size:Number
	color:uint
	letterSpacing:Number
Page last modified on June 03, 2008, at 03:59 PM