Tell me more ×
Stack Overflow is a question and answer site for professional and enthusiast programmers. It's 100% free, no registration required.

I have instantiated in my .as file:

private var heroLives:int;

heroLives = 3;

then later on in the code I call a function called showHeroLives() which looks like this:

public function showheroLives() {
    heroLivesTxt.text = String(heroLives);
    trace(heroLivesTxt.text);
    trace(heroLives);
}

I just used trace to make sure that heroLivesTxt gets updated with heroLives. heroLivesTxt is a dynamic textfield on stage. If I comment out showHeroLives() so it doesn't try to assign a value, the assigned value (within the stage) of heroLivesTxt shows up. But once I implement showHeroLives() to update the text through code, it disappears, even though it trace shows that I have updated the text. Please Help!

share|improve this question
1  
Is the font embedded ? – prototypical 2 days ago
the made it work! Thanks! – Erika 2 days ago

1 Answer

up vote 1 down vote accepted

You need to embed the font. You can embed it via the properties panel of the TextField.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.