Class cc.TransitionFade
Extends
cc.TransitionScene.
Defined in: CCTransition.js.
Constructor Attributes | Constructor Name and Description |
---|---|
Fade out the outgoing scene and then fade in the incoming scene.
|
Method Attributes | Method Name and Description |
---|---|
<static> |
cc.TransitionFade.create(t, scene, color)
Fade out the outgoing scene and then fade in the incoming scene.
|
ctor()
Constructor
|
|
initWithDuration(t, scene, color)
initializes the transition with a duration and with an RGB color
|
|
onEnter()
custom on enter
|
|
onExit()
custom on exit
|
- Methods borrowed from class cc.TransitionScene:
- cleanup, draw, finish, hideOutShowIn
- Methods borrowed from class cc.Scene:
- init
- Methods borrowed from class cc.Node:
- addChild, convertToNodeSpace, convertToNodeSpaceAR, convertTouchToNodeSpace, convertTouchToNodeSpaceAR, convertToWorldSpace, convertToWorldSpaceAR, description, getActionByTag, getActionManager, getAnchorPoint, getAnchorPointInPoints, getBoundingBox, getBoundingBoxToWorld, getCamera, getChildByTag, getChildren, getChildrenCount, getContentSize, getGLServerState, getGrid, getOrderOfArrival, getParent, getPosition, getPositionX, getPositionY, getRotation, getScale, getScaleX, getScaleY, getScheduler, getShaderProgram, getSkewX, getSkewY, getTag, getUserData, getUserObject, getVertexZ, getZOrder, ignoreAnchorPointForPosition, isIgnoreAnchorPointForPosition, isRunning, isVisible, nodeToParentTransform, nodeToWorldTransform, numberOfRunningActions, onEnterTransitionDidFinish, onExitTransitionDidStart, parentToNodeTransform, pauseSchedulerAndActions, release, removeAllChildren, removeAllChildrenWithCleanup, removeChild, removeChildByTag, removeFromParent, removeFromParentAndCleanup, reorderChild, resumeSchedulerAndActions, retain, runAction, schedule, scheduleOnce, scheduleUpdate, scheduleUpdateWithPriority, setActionManager, setAnchorPoint, setContentSize, setGLServerState, setGrid, setNodeDirty, setOrderOfArrival, setParent, setPosition, setPositionX, setPositionY, setRotation, setScale, setScaleX, setScaleY, setScheduler, setShaderProgram, setSkewX, setSkewY, setTag, setUserData, setUserObject, setVertexZ, setVisible, setZOrder, sortAllChildren, stopAction, stopActionByTag, stopAllActions, transform, transformAncestors, unschedule, unscheduleAllCallbacks, unscheduleUpdate, update, updateTransform, visit, worldToNodeTransform
Method Detail
<static>
{cc.TransitionFade}
cc.TransitionFade.create(t, scene, color)
Fade out the outgoing scene and then fade in the incoming scene.
// Example var myTransition = cc.TransitionFade.create(1.5, nextScene, cc.c3b(255,0,0))//fade to red
- Parameters:
- {Number} t
- time in seconds
- {cc.Scene} scene
- {cc.Color3B} color
- Returns:
- {cc.TransitionFade}
ctor()
Constructor
{Boolean}
initWithDuration(t, scene, color)
initializes the transition with a duration and with an RGB color
- Parameters:
- {Number} t
- time in seconds
- {cc.Scene} scene
- {cc.Color3B} color
- Returns:
- {Boolean}
onEnter()
custom on enter
onExit()
custom on exit