Hi,
i’m doing a simple test, a loop to change a textfield text. But, I don’t know if it’s normal but I’ve to always re-declare the textformat after I change the text inside the textfield?
I’m pretty sure I don’t have to do this, can someone help me?
Frame #1
//Define Textfield Style
var bv08:TextFormat = new TextFormat('Bavaria', 8, 0xFFFFFF, null, null, null, null, null, 'right');
this.createTextField('num', this.getNextHighestDepth(), -3, -3, 25, 13);
this.num.text = 1;
this.num.embedFonts = true;
this.num.setTextFormat(bv08);
this.l = 0;
Frame #2
if (this.l < 100) {
this.l++;
this.num.text = this.l;
this.num.setTextFormat(bv08);
} else {
this.l = 0;
this.num.text = this.l;
this.num.setTextFormat(bv08);
}
Frame #3
this.gotoAndPlay(2);