Class Index | File Index

Classes


Class createjs.Stage


Extends .

Defined in: stage.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
createjs.Stage(canvas)
A class that represents the root node of an object tree.
Field Summary
Field Attributes Field Name and Description
<static>  
createjs.Stage.Event
A bit-mask representing pointer events.
 
<static>  
createjs.Stage.POINTER_MOUSE
The pointer ID representing a mouse event.
<static>  
createjs.Stage.POINTER_NULL
The pointer ID representing there are not any active pointers.
Method Summary
Method Attributes Method Name and Description
 
Clears the target canvas.
 
Starts or stops listening mouse events.
 
enableMouseOver(opt_frequency)
Enables or disables (by passing a frequency of 0) dispatching mouse-over events.
 
enableTouchEvents(enable, preventDefault)
Starts or stops listening touch events.
 
handleEvent(event)
 
handleTick(time)
 
removeAllChildren(opt_destroy)
 
toDataURL(backgroundColor, mimeType)
Returns a data URL that contains a Base64-encoded image of the contents of the stage.
 
Updates this stage.
Class Detail
createjs.Stage(canvas)
A class that represents the root node of an object tree.
Parameters:
{HTMLCanvasElement|string} canvas
Field Detail
<static> createjs.Stage.Event
A bit-mask representing pointer events.

isStage

<static> createjs.Stage.POINTER_MOUSE
The pointer ID representing a mouse event.

<static> createjs.Stage.POINTER_NULL
The pointer ID representing there are not any active pointers.
Method Detail
clear()
Clears the target canvas.

enableDOMEvents(enable)
Starts or stops listening mouse events.
Parameters:
{boolean} enable

enableMouseOver(opt_frequency)
Enables or disables (by passing a frequency of 0) dispatching mouse-over events.
Parameters:
{number=} opt_frequency

enableTouchEvents(enable, preventDefault)
Starts or stops listening touch events.
Parameters:
{boolean} enable
{boolean} preventDefault

handleEvent(event)
Parameters:
event

handleTick(time)
Parameters:
time

removeAllChildren(opt_destroy)
Parameters:
opt_destroy

{string} toDataURL(backgroundColor, mimeType)
Returns a data URL that contains a Base64-encoded image of the contents of the stage. The returned data URL can be specified as the src value of an image element.
Parameters:
{string} backgroundColor
{string} mimeType
Returns:
{string}

update()
Updates this stage. This method is usually used by applications to draw all display objects without running tweens.

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Oct 04 2016 17:11:29 GMT+0900 (JST)