Katherine Liang
Katherine Liang

Reputation: 7

timer not shown on my swf

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

Answers (1)

Gio
Gio

Reputation: 1954

As Kaushal De Silva suggested it is definitely a font embedding problem.

Here's how to embed a font:

  1. Select a TextField on your stage

  2. Click on the Embed button in the properties panel

    Embed fonts in flash

  3. Choose the character ranges you need

    enter image description here

  4. Click OK

That's pretty much it.

Upvotes: 2

Related Questions