Class cc.TransitionFade
- Defined in: CCTransition.js
- Extends cc.TransitionScene
Constructor Attributes | Constructor Name and Description |
---|---|
cc.TransitionFade(t, scene, o)
Fade out the outgoing scene and then fade in the incoming scene.
|
Method Summary
Class Detail
cc.TransitionFade(t, scene, o)
Fade out the outgoing scene and then fade in the incoming scene.
var trans = new cc.TransitionFade(time,scene,color)
- Parameters:
- {Number} t
- time in seconds
- {cc.Scene} scene
- {cc.TRANSITION_ORIENTATION_LEFT_OVER|cc.TRANSITION_ORIENTATION_RIGHT_OVER|cc.TRANSITION_ORIENTATION_UP_OVER|cc.TRANSITION_ORIENTATION_DOWN_OVER} o
Method Detail
-
Fade out the outgoing scene and then fade in the incoming scene.
- Deprecated:
- since v3.0,please use new cc.TransitionFade(time,scene,color) instead.
- Returns:
- {cc.TransitionFade}
-
ctor(t, scene, o)Constructor of TransitionFade
- Parameters:
- {Number} t
- time in seconds
- {cc.Scene} scene
- {cc.TRANSITION_ORIENTATION_LEFT_OVER|cc.TRANSITION_ORIENTATION_RIGHT_OVER|cc.TRANSITION_ORIENTATION_UP_OVER|cc.TRANSITION_ORIENTATION_DOWN_OVER} o
-
{Boolean} initWithDuration(t, scene, color)initializes the transition with a duration and with an RGB color
- Returns:
- {Boolean}
-
onEnter()custom on enter
-
onExit()custom on exit