Class cc.ActionEase

Class Summary
Constructor Attributes Constructor Name and Description
 
cc.ActionEase(action)
Base class for Easing actions

Method Summary

Class Detail

cc.ActionEase(action)
Base class for Easing actions
var moveEase = new cc.ActionEase(action);
Parameters:
{cc.ActionInterval} action
since v3.0 Does not recommend the use of the base object.

Field Detail

<static> {cc.ActionEase} cc.ActionEase.create
Please use cc.actionEase instead creates the action of ActionEase
Deprecated:
since v3.0 please use cc.actionEase(action) instead.

Method Detail

  • {cc.ActionEase} clone()
    to copy object with deep copy. returns a clone of action.
    Returns:
    {cc.ActionEase}
  • ctor(action)
    Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
    creates the action of ActionEase.
    Parameters:
    {cc.ActionInterval} action
  • {cc.ActionInterval} getInnerAction()
    Get inner Action.
    Returns:
    {cc.ActionInterval}
  • {Boolean} initWithAction(action)
    initializes the action
    Parameters:
    {cc.ActionInterval} action
    Returns:
    {Boolean}
  • {cc.ActionEase} reverse()
    Create new action to original operation effect opposite.
    For example:
    - The action will be x coordinates of 0 move to 100.
    - The reversed action will be x of 100 move to 0. - Will be rewritten
    Returns:
    {cc.ActionEase}
  • startWithTarget(target)
    called before the action start. It will also set the target.
    Parameters:
    {cc.Node} target
  • stop()
    Stop the action.
  • update(dt)
    Called once per frame. Time is the number of seconds of a frame interval.
    Parameters:
    {Number} dt