ask a question

var RankScene = TestScene.extend({
runThisTest:function () {

var pLayer = new Rank();
//pLayer.autorelease();
//var pLayer = nextActionManagerAction();
this.addChild(pLayer);
cc.Director.sharedDirector().replaceScene(this);
}
});

I use this for changing scene, and i found that setString for ccLabelTTF can not work when i go to this scene 2nd time, i don’t know why

show us more of your code please?

i have a RANK:[] in the class definition, and i use RANK[j].setString to set the string, but it doesn’t work, but if i use this.getChildByTag(xx).setString (i have set a tag for it), it works.
I don’t know why.