Reputation: 7
var myTimer:Timer = new Timer(1000);
myTimer.addEventListener(TimerEvent.TIMER, countdownHandler);
function countdownHandler(event:TimerEvent):void{
countdown1.text = 100-myTimer.currentCount+"seconds Left";
if(myTimer.currentCount==100){gotoAndStop(66)}
}
function start_btn_clicked(e:MouseEvent):void{
gotoAndPlay(getLevelFrame(1));
myTimer.start();
SoundMixer.stopAll();
}
I'm trying to put a countdown timer on my stage but the timer was not shown on the stage. The word that printed is not "seconds Left" but it was "secons eft". I can run on other scene but not this.
Upvotes: 0
Views: 80
Reputation: 1954
As Kaushal De Silva suggested it is definitely a font embedding problem.
Here's how to embed a font:
Select a TextField on your stage
Click on the Embed
button in the properties panel
Choose the character ranges you need
Click OK
That's pretty much it.
Upvotes: 2