Class ccs.ActionNode
- Defined in: CCActionNode.js
- Extends ccs.Class
Constructor Attributes | Constructor Name and Description |
---|---|
Base class for ccs.ActionNode
|
Method Summary
Class Detail
ccs.ActionNode()
Base class for ccs.ActionNode
Method Detail
-
addFrame(frame)Pushs back a ActionFrame to ActionNode.
- Parameters:
- {ccs.ActionFrame} frame
-
clearAllFrame()Remove all ActionFrames from ActionNode.
-
deleteFrame(frame)Remove a ActionFrame from ActionNode.
- Parameters:
- {ccs.ActionFrame} frame
-
easingToFrame(duration, delayTime, destFrame)Easing to frame
- Parameters:
- {number} duration
- {number} delayTime
- {ccs.ActionFrame} destFrame
-
{cc.Node} getActionNode()get actionNode
- Returns:
- {cc.Node}
-
{number} getActionTag()Gets tag for ActionNode
- Returns:
- {number}
-
{number} getFirstFrameIndex()Gets index of first ActionFrame.
- Returns:
- {number}
-
{number} getLastFrameIndex()Gets index of last ActionFrame.
- Returns:
- {number}
-
{*} getObject()Gets node which will run a action.
- Returns:
- {*}
-
{number} getUnitTime()Gets the time interval of frame.
- Returns:
- {number}
-
initWithDictionary(dic, root)Init properties with a json dictionary
- Parameters:
- {Object} dic
- {Object} root
-
insertFrame(index, frame)Insets a ActionFrame to ActionNode.
- Parameters:
- {number} index
- {ccs.ActionFrame} frame
-
playAction(loop, fun)Play the action.
- Parameters:
- {Boolean} loop
- {cc.CallFunc} fun
-
{null} refreshActionProperty()Refresh property of action
- Returns:
- {null}
-
runAction()Run action.
-
setActionTag(tag)Sets tag for ActionNode
- Parameters:
- tag
-
setObject(node)Sets node which will run a action.
- Parameters:
- {Object} node
-
setUnitTime(time)Sets the time interval of frame.
- Parameters:
- {number} time
-
stopAction()Stop action.
-
{boolean} updateActionToTimeLine(time)Updates action states to some time.
- Parameters:
- time
- Returns:
- {boolean}