| Package | org.papervision3d.components.as3.core |
| Class | public class PV3DUIComponent |
| Inheritance | PV3DUIComponent flash.display.MovieClip |
| Subclasses | PV3DScene3D |
| Property | Defined by | ||
|---|---|---|---|
| clipContent : Boolean = false
Whether or not you want the scene to have a mask applied to the area of the component.
| PV3DUIComponent | ||
| resizeWithStage : Boolean
A Boolean flag that allows the component to resize to bottom/right of the stage if set to true.
| PV3DUIComponent | ||
| sceneHeight : Number = 240
Height of your component on stage
| PV3DUIComponent | ||
| sceneWidth : Number = 320
Width of your component on stage
| PV3DUIComponent | ||
| Method | Defined by | ||
|---|---|---|---|
| PV3DUIComponent | |||
|
setSize(w:Number, h:Number):void
Pass in width and height to change the size of the component on stage.
| PV3DUIComponent | ||
| Event | Summary | Defined by | ||
|---|---|---|---|---|
| Dispatched when the component has been initialized. | PV3DUIComponent | |||
| Constant | Defined by | ||
|---|---|---|---|
| INIT_COMPLETE : String = "initComplete" [static]
| PV3DUIComponent | ||
| clipContent | property |
public var clipContent:Boolean = falseWhether or not you want the scene to have a mask applied to the area of the component. If false, you will see the 3D scene extend beyond the bounding area of the component
| resizeWithStage | property |
resizeWithStage:Boolean [read-write]A Boolean flag that allows the component to resize to bottom/right of the stage if set to true. Remember to set your x/y coordinates as the component will only resize from where you've positioned it on stage.
Implementation public function get resizeWithStage():Boolean
public function set resizeWithStage(value:Boolean):void
| sceneHeight | property |
public var sceneHeight:Number = 240Height of your component on stage
| sceneWidth | property |
public var sceneWidth:Number = 320Width of your component on stage
| PV3DUIComponent | () | constructor |
public function PV3DUIComponent()
| setSize | () | method |
public function setSize(w:Number, h:Number):voidPass in width and height to change the size of the component on stage. This will not scale your 3D scene, only the component itself
Parametersw:Number |
|
h:Number |
| initComplete | event |
flash.events.Event
Dispatched when the component has been initialized. This does not include when the scene3d is created or a subsequent collada file is completed
| INIT_COMPLETE | constant |
public static const INIT_COMPLETE:String = "initComplete"