Class cc.FadeOut

Class Summary
Constructor Attributes Constructor Name and Description
 
cc.FadeOut(duration)
Fades Out an object that implements the cc.RGBAProtocol protocol.

Method Summary

Class Detail

cc.FadeOut(duration)
Fades Out an object that implements the cc.RGBAProtocol protocol. It modifies the opacity from 255 to 0. The "reverse" of this action is FadeIn
Parameters:
{Number} duration
duration in seconds

Field Detail

<static> {cc.FadeOut} cc.FadeOut.create
Please use cc.fadeOut instead. Fades Out an object that implements the cc.RGBAProtocol protocol. It modifies the opacity from 255 to 0.
Deprecated:
since v3.0 please use cc.fadeOut instead.

Method Detail

  • {cc.FadeOut} clone()
    returns a new clone of the action
    Returns:
    {cc.FadeOut}
  • ctor(duration)
    Constructor function, override it to extend the construction behavior, remember to call "this._super()" in the extended "ctor" function.
    Parameters:
    {Number} duration
    duration in seconds
  • {cc.FadeIn} reverse()
    Returns a reversed action.
    Returns:
    {cc.FadeIn}