I want to fill Label String with text from sometext.txt file in Cocos Creator.
I did this:
@property({type:Node})
cptxt = null;
.
.
.
this.copyrightText = jsb.fileUtils.getStringFromFile('Text/copyright.txt');
this.cptxt.string = this.copyrightText;
I filled cptxt with the label on the Scene.
But it doesn't works. The Label String is not filled.
I run on Android