Packageorg.papervision3d.core.components.as3.core
Classpublic class PV3DUIComponent
InheritancePV3DUIComponent Inheritance flash.display.MovieClip
SubclassesPV3DScene3D

PV3DUIComponent is the core class from which the other PV3D Design-time components are built. It takes care of stage resize events and positioning of the component



Public Properties
 PropertyDefined 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
PV3DUIComponent
  sceneHeight : Number = 240
Height of your component on stage
PV3DUIComponent
  sceneWidth : Number = 320
Width of your component on stage
PV3DUIComponent
Public Methods
 MethodDefined by
  
PV3DUIComponent
  
setSize(w:Number, h:Number):void
Pass in width and height to change the size of the component on stage.
PV3DUIComponent
Events
 EventSummaryDefined by
   Dispatched when the component has been initialized.PV3DUIComponent
Public Constants
 ConstantDefined by
  INIT_COMPLETE : String = "initComplete"
[static]
PV3DUIComponent
Property detail
clipContentproperty
public var clipContent:Boolean = false

Whether 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

resizeWithStageproperty 
resizeWithStage:Boolean  [read-write]Implementation
    public function get resizeWithStage():Boolean
    public function set resizeWithStage(value:Boolean):void
sceneHeightproperty 
public var sceneHeight:Number = 240

Height of your component on stage

sceneWidthproperty 
public var sceneWidth:Number = 320

Width of your component on stage

Constructor detail
PV3DUIComponent()constructor
public function PV3DUIComponent()
Method detail
setSize()method
public function setSize(w:Number, h:Number):void

Pass in width and height to change the size of the component on stage. This will not scale your 3D scene, only the component itself

Parameters
w:Number
 
h:Number
Event detail
initCompleteevent 
Event object type: 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

Constant detail
INIT_COMPLETEconstant
public static const INIT_COMPLETE:String = "initComplete"