Packageaway3dlite.templates
Classpublic class Template
InheritanceTemplate Inheritance flash.display.Sprite
SubclassesBasicTemplate, FastTemplate

Base template class.

Public Properties
 PropertyDefined by
  camera : Camera3D
The camera object used in the template.
Template
  debug : Boolean
Defines if the template is run in debug mode.
Template
  scene : Scene3D
The scene object used in the template.
Template
  title : String
Defines the text appearing in the template title.
Template
  view : View3D
The view object used in the template.
Template
Public Methods
 MethodDefined by
  
Creates a new Template object.
Template
  
start():void
Starts the view rendering.
Template
  
stop():void
Stops the view rendering.
Template
Protected Methods
 MethodDefined by
  
onDebug():void
Fired if debug is set to true.
Template
  
onInit():void
Fired on instantiation of the template.
Template
  
onPostRender():void
Fired at the end of a render loop.
Template
  
onPreRender():void
Fired at the beginning of a render loop.
Template
Property detail
cameraproperty
public var camera:Camera3D

The camera object used in the template.

debugproperty 
debug:Boolean  [read-write]

Defines if the template is run in debug mode.

Implementation
    public function get debug():Boolean
    public function set debug(value:Boolean):void
sceneproperty 
public var scene:Scene3D

The scene object used in the template.

titleproperty 
title:String  [read-write]

Defines the text appearing in the template title.

Implementation
    public function get title():String
    public function set title(value:String):void
viewproperty 
public var view:View3D

The view object used in the template.

Constructor detail
Template()constructor
public function Template() Init Parameters
Method detail
onDebug()method
protected function onDebug():void

Fired if debug is set to true.

See also

onInit()method 
protected function onInit():void

Fired on instantiation of the template.

onPostRender()method 
protected function onPostRender():void

Fired at the end of a render loop.

onPreRender()method 
protected function onPreRender():void

Fired at the beginning of a render loop.

start()method 
public function start():void

Starts the view rendering.

stop()method 
public function stop():void

Stops the view rendering.

Wiki link
Click to go to the wiki page for 'away3dlite.templates.Template'

Code examples

Comments