Flash dynamic text
- Started
- Last post
- 3 Responses
- ganon
i had a text box created with actionscipt, which as getting updated via a setInterval which was working fine...i then applied a TextFormat to it, and now it displays the first item fine, but any updates do not display (it goes blank)...
//format
this.defaultFormat = new TextFormat();
this.defaultFormat.font = "Arial";
//text
this.createTextField("myTimer_tx... 2, 695, 530, 100, 30);
this.myTimer_txt.embedFonts = true;
this.myTimer_txt.text = maxTime;
this.myTimer_txt.setTextFormat(t...
//interval
setInterval(countdown, 1000);
function countdown() {
if (maxtime (lessthan)= 0) {
clearInterval(setStage);
clearInterval (setWrong);
gotoAndStop ("done");
} else {
_global.maxTime--;
//This then goes blank
myTimer_txt.text = maxTime;
}
}
- ganon0
*bamp
- frankbb0
you have to setTextFormat again in the function...
i.e. _root.myTimer_txt.setTextFormat...
- ganon0
thanks dude, youre right...its kinda annoying you have to set it again, oh well....