Class: DirectorFixedSpeed
- Module
- cocos
- Defined In
- Director.js
- Extends
- Director
Public Properties
| Property | Defined By | |
|---|---|---|
| Expand frameRate |
frameRate : Integer
<static>
Frames per second to draw.
|
DirectorFixedSpeed |
| Expand id |
id : Integer
<read-only>
Unique ID for this object
|
BObject |
Public Methods
| Method | Defined By | |
|---|---|---|
| Expand DirectorFixedSpeed |
new
DirectorFixedSpeed ()
:
cocos.DirectorFixedSpeed
<constructor>
Returns
|
DirectorFixedSpeed |
| Expand animate |
animate ()
:
void
Returns
|
Director |
| Expand attachInView |
attachInView (view:HTMLElement)
:
void
Append to a HTML element. It will create a canvas tag
Arguments
Returns
|
Director |
| Expand bindTo |
bindTo (key:String,target:BOject,[targetKey:String],[noNotify:Boolean])
:
void
Bind the value of a property on this object to that of another object so
they always have the same value. Setting the value on either object will update
the other too.
Arguments
Returns
|
BObject |
| Expand changed |
changed (key:*)
:
void
Arguments
Returns
|
BObject |
| Expand convertEventToCanvas |
convertEventToCanvas (evt:*)
:
void
Arguments
Returns
|
Director |
| Expand get |
get (key:String)
:
*
Get a property from the object. Always use this instead of trying to
access the property directly. This will ensure all bindings, setters and
getters work correctly.
Arguments
Returns
|
BObject |
| Expand popScene |
popScene ()
:
void
Pops out a scene from the queue. This scene will replace the running
one. The running scene will be deleted. If there are no more scenes in
the stack the execution is terminated. ONLY call it if there is a
running scene.
Returns
|
Director |
| Expand pushScene |
pushScene (scene:cocos.Scene)
:
void
Suspends the execution of the running scene, pushing it on the stack of
suspended scenes. The new scene will be executed. Try to avoid big
stacks of pushed scenes to reduce memory allocation. ONLY call it if
there is a running scene.
Arguments
Returns
|
Director |
| Expand replaceScene |
replaceScene (scene:cocos.Scene)
:
void
Replaces the running scene with a new one. The running scene is
terminated. ONLY call it if there is a running scene.
Arguments
Returns
|
Director |
| Expand runPreloadScene |
runPreloadScene ()
:
void
Returns
|
Director |
| Expand runWithScene |
runWithScene (scene:cocos.Scene)
:
void
Enters the Director's main loop with the given Scene. Call it to run
only your FIRST scene. Don't call it if there is already a running
scene.
Arguments
Returns
|
Director |
| Expand set |
set (key:String,value:*)
:
void
Set a property on the object. Always use this instead of trying to
access the property directly. This will ensure all bindings, setters and
getters work correctly.
Arguments
Returns
|
BObject |
| Expand setValues |
setValues (kvp:Object)
:
void
Set multiple propertys in one go
Arguments
Returns
|
BObject |
| Expand showFPS |
showFPS ()
:
void
Returns
|
Director |
| Expand startAnimation |
startAnimation ()
:
void
<static>
The main loop is triggered again. Call this function only if
cocos.Directory#stopAnimation was called earlier.
Returns
|
DirectorFixedSpeed |
| Expand stopAnimation |
stopAnimation ()
:
void
Stops the animation. Nothing will be drawn. The main loop won't be
triggered anymore. If you want to pause your animation call
cocos.Directory#pause instead.
Returns
|
Director |
| Expand unbind |
unbind (key:String)
:
void
Remove binding from a property which set setup using BObject#bindTo.
Arguments
Returns
|
BObject |
| Expand unbindAll |
unbindAll ()
:
void
Remove all bindings on this object
Returns
|
BObject |
Private Members
This class has no private members.