Skip to content
72lions edited this page Jul 19, 2011 · 8 revisions

Documentation

Package: STL

Class: CanvasDisplayObject

Public properties

name: String
The name of the object

x: Integer
The x position of the object

y: Integer
The y position of the object

rotation: Float
The rotation of the object in radians

scaleX: Float
The scale of the object on the x axis

scaleY: Float
The scale of the object on the y axis

visible: Boolean
Sets the visibility of the object

alpha: Float
Sets the alpha opacity of the object

parent: CanvasDisplayObject
Sets the parent of the object

extra: Object
An object for saving any kind of values

Public methods

addChild(child:CanvasDisplayObject):void
Adds a CanvasDisplayObject child into another CanvasDisplayObject

removeChild(child:CanvasDisplayObject):void
Removes a CanvasDisplayObject child from another CanvasDisplayObject

getChildren():Array
Returns an array with all the children of a CanvasDisplayObject

update(ctx:CanvasContext):void
Responsible for doing all the rotation, scaling and translation of the object

Clone this wiki locally