need CCdirector::sharedDirector explanation..

hello guys…
i got the problem in transition…
i can’t get the current running scene in CCdirector::sharedDirector()->getRunningScene();

when i debug, i realize that at transition code at cocos2dx also need current scene, right?
but i got a null current scene…

any help are appreciated.

sorry for the poor english…

I had same issue on android (while iOS version works OK). Fortunately, code already had own singleton class that also tracked current scene. Using it instead of CCDirector::sharedDirector()->getRunningScene() solved problem.

it’s solved…

i just add
CCDirector::sharedDirector()->runWithScene(CCScene::node());
CCDirector::sharedDirector()->drawScene();

after get transitionscene…
I call “CCDirector::sharedDirector()->Init()” again… // for use CCDirector::sharedDirector()->runWithScene();

thx for help sergey…