Cocos2dx - how to write inline function for sequence?

Cocos2dx - how to write inline function for sequence?
0.0 0

#1
this.waiting.runAction(cc.sequence( sprite_action_1, 
        cc.callFunc(function() {            
            this.removeChild(this.waiting);
            this.startGame();
        }, this)));

It does not do the animation. It just removes the waiting layer immediately.

I saw in c++ code, RemoveSelf and node->removeFromParent() to remove that layer after animation. How can i do this in javascript?


#2

Can you show a bit more code?