-
BObject
-
Action
-
FiniteTimeAction
-
ActionInterval
- BezierBy
-
ActionInterval
-
FiniteTimeAction
-
Action
Class: BezierBy
- Module
- cocos.actions
- Defined In
- libs/cocos2d/actions/ActionInterval.js
- Subclasses
- BezierTo
- Extends
- ActionInterval
Public Properties
| Property | Defined By | |
|---|---|---|
| Expand config | config : * | BezierBy |
| Expand duration |
duration : Float
Number of seconds to run the Action for
|
FiniteTimeAction |
| Expand elapsed |
elapsed : Float
Number of seconds that have elapsed
|
ActionInterval |
| Expand id |
id : Integer
<read-only>
Unique ID for this object
|
BObject |
| Expand isDone | isDone : * <read-only> | Action |
| Expand tag |
tag : *
Unique tag to identify the action
|
Action |
| Expand target |
target : cocos.nodes.Node
The Node the action is being performed on
|
Action |
Public Methods
| Method | Defined By | |
|---|---|---|
| Expand BezierBy |
new
BezierBy ()
:
cocos.actions.BezierBy
<constructor>
Named Arguments
Returns
|
BezierBy |
| Expand bezierat |
bezierat (a:*,b:*,c:*,d:*,t:*)
:
void
<static>
Bezier cubic formula
((1 - t) + t)3 = 1
Arguments
Returns
|
BezierBy |
| 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 copy |
copy ()
:
void
Returns
|
BezierBy |
| 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 get_isDone |
get_isDone ()
:
void
Returns
|
ActionInterval |
| Expand reverse |
reverse ()
:
void
Returns
|
BezierBy |
| 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 startWithTarget |
startWithTarget (target:*)
:
void
Arguments
Returns
|
BezierBy |
| Expand step |
step (dt:*)
:
void
Arguments
Returns
|
ActionInterval |
| Expand stop |
stop ()
:
void
Called after the action has finished. It will set the 'target' to nil.
Important: You should never call cocos.actions.Action#stop manually.
Instead, use cocos.nodes.Node#stopAction(action)
Returns
|
Action |
| 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 |
| Expand update |
update (t:*)
:
void
Arguments
Returns
|
BezierBy |
Private Members
This class has no private members.