Class Index | File Index

Classes


Class cc.TransitionSceneOriented


Extends cc.TransitionScene.

Defined in: CCTransition.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
A cc.Transition that supports orientation like.
Method Summary
Method Attributes Method Name and Description
<static>  
cc.TransitionSceneOriented.create(t, scene, orientation)
creates a base transition with duration and incoming scene
 
initWithDuration(t, scene, orientation)
initialize the transition
Methods borrowed from class cc.TransitionScene:
cleanup, draw, finish, hideOutShowIn, onEnter, onExit
Methods borrowed from class cc.Scene:
ctor, 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
Class Detail
cc.TransitionSceneOriented()
A cc.Transition that supports orientation like.
Possible orientation: LeftOver, RightOver, UpOver, DownOver
useful for when you want to make a transition happen between 2 orientations
Method Detail
<static> {cc.TransitionSceneOriented} cc.TransitionSceneOriented.create(t, scene, orientation)
creates a base transition with duration and incoming scene
// Example
var goHorizontal = cc.TransitionSceneOriented.create(0.5, thisScene, cc.TRANSITION_ORIENTATION_LEFT_OVER)
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} orientation
Returns:
{cc.TransitionSceneOriented}

{Boolean} initWithDuration(t, scene, orientation)
initialize the transition
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} orientation
Returns:
{Boolean}

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Jan 09 2013 07:51:54 GMT-0800 (PST)