Packageorg.papervision3d.core.utils
Classpublic class InteractiveSceneManager
InheritanceInteractiveSceneManager Inheritance flash.events.EventDispatcher



Public Properties
 PropertyDefined by
  container : Sprite
Main container for ISM to create the sub InteractiveSprite containers for the faces and DO3D objects passed in during the render loop
InteractiveSceneManager
  currentDisplayObject3D : DisplayObject3D
InteractiveSceneManager
  currentMaterial : MaterialObject3D
InteractiveSceneManager
  currentMouseDO3D : DisplayObject3D = null
InteractiveSceneManager
  currentMousePos : Point
InteractiveSceneManager
  debug : Boolean = false
InteractiveSceneManager
  enableOverOut : Boolean = true
InteractiveSceneManager
  lastMousePos : Point
InteractiveSceneManager
  mouse3D : Mouse3D
InteractiveSceneManager
  MOUSE_IS_DOWN : Boolean = false
[static] MOUSE_IS_DOWN is a quick static property to check and is maintained by the ISM
InteractiveSceneManager
  renderHitData : RenderHitData
InteractiveSceneManager
  viewport : Viewport3D
InteractiveSceneManager
  _viewportRendered : Boolean = false
InteractiveSceneManager
  virtualMouse : VirtualMouse
VirtualMouse is used with faceLevelMode of ISM or DO3D's.
InteractiveSceneManager
Public Methods
 MethodDefined by
  
InteractiveSceneManager
  
destroy():void
InteractiveSceneManager
  
init():void
InteractiveSceneManager
  
InteractiveSceneManager
  
InteractiveSceneManager
  
InteractiveSceneManager
Protected Methods
 MethodDefined by
  
handleEnterFrame(e:Event):void
This handles the MOUSE_MOVE event on an InteractiveSprite container and replaces handleMouseMove.
InteractiveSceneManager
  
handleMouseClick(e:MouseEvent):void
Handles the MOUSE_CLICK event on an InteractiveSprite container
InteractiveSceneManager
  
handleMouseDoubleClick(e:MouseEvent):void
Handles the MOUSE_CLICK event on an InteractiveSprite container
InteractiveSceneManager
  
Handles the MOUSE_OUT event on an InteractiveSprite container
InteractiveSceneManager
  
Handles the MOUSE_OVER event on an InteractiveSprite container
InteractiveSceneManager
  
handleMousePress(e:MouseEvent):void
Handles the MOUSE_DOWN event on an InteractiveSprite container
InteractiveSceneManager
  
handleMouseRelease(e:MouseEvent):void
Handles the MOUSE_UP event on an InteractiveSprite container
InteractiveSceneManager
  
InteractiveSceneManager
  
InteractiveSceneManager
  
InteractiveSceneManager
Property detail
containerproperty
public var container:Sprite

Main container for ISM to create the sub InteractiveSprite containers for the faces and DO3D objects passed in during the render loop

currentDisplayObject3Dproperty 
public var currentDisplayObject3D:DisplayObject3D
currentMaterialproperty 
public var currentMaterial:MaterialObject3D
currentMouseDO3Dproperty 
public var currentMouseDO3D:DisplayObject3D = null
currentMousePosproperty 
public var currentMousePos:Point
debugproperty 
public var debug:Boolean = false
enableOverOutproperty 
public var enableOverOut:Boolean = true
lastMousePosproperty 
public var lastMousePos:Point
mouse3Dproperty 
public var mouse3D:Mouse3D
MOUSE_IS_DOWNproperty 
public static var MOUSE_IS_DOWN:Boolean = false

MOUSE_IS_DOWN is a quick static property to check and is maintained by the ISM

renderHitDataproperty 
public var renderHitData:RenderHitData
viewportproperty 
public var viewport:Viewport3D
_viewportRenderedproperty 
public var _viewportRendered:Boolean = false
virtualMouseproperty 
public var virtualMouse:VirtualMouse

VirtualMouse is used with faceLevelMode of ISM or DO3D's. Its a virtual mouse that causes the objects in your materials movieclip containers to fire off their mouse events such as click, over, out, release, press etc

Using these events requires you only to do what you normally do - establish listeners with your objects like you normally would, and you'll receive them!

Constructor detail
InteractiveSceneManager()constructor
public function InteractiveSceneManager(viewport:Viewport3D)Parameters
viewport:Viewport3D
Method detail
destroy()method
public function destroy():void
handleEnterFrame()method 
protected function handleEnterFrame(e:Event):void

This handles the MOUSE_MOVE event on an InteractiveSprite container and replaces handleMouseMove. By using ENTER_FRAME and manually checking for mouse movement we should save CPU.

Parameters
e:Event
handleMouseClick()method 
protected function handleMouseClick(e:MouseEvent):void

Handles the MOUSE_CLICK event on an InteractiveSprite container

Parameters
e:MouseEvent
handleMouseDoubleClick()method 
protected function handleMouseDoubleClick(e:MouseEvent):void

Handles the MOUSE_CLICK event on an InteractiveSprite container

Parameters
e:MouseEvent
handleMouseOut()method 
protected function handleMouseOut(DO3D:DisplayObject3D):void

Handles the MOUSE_OUT event on an InteractiveSprite container

Parameters
DO3D:DisplayObject3D
handleMouseOver()method 
protected function handleMouseOver(DO3D:DisplayObject3D):void

Handles the MOUSE_OVER event on an InteractiveSprite container

Parameters
DO3D:DisplayObject3D
handleMousePress()method 
protected function handleMousePress(e:MouseEvent):void

Handles the MOUSE_DOWN event on an InteractiveSprite container

Parameters
e:MouseEvent
handleMouseRelease()method 
protected function handleMouseRelease(e:MouseEvent):void

Handles the MOUSE_UP event on an InteractiveSprite container

Parameters
e:MouseEvent
init()method 
public function init():void
initListeners()method 
public function initListeners():void
initVirtualMouse()method 
protected function initVirtualMouse():void
manageOverOut()method 
protected function manageOverOut():void
resolveRenderHitData()method 
protected function resolveRenderHitData():void
updateAfterRender()method 
public function updateAfterRender():void
updateRenderHitData()method 
public function updateRenderHitData():void