That is defined BEFORE you create the text format, you should call the text format after you create it.
Also… that sets the text format for loadStatus_txt.myTextField but in your script you use loadStatus_txt.text , shouldn’t it be loadStatus_txt.myTextField.text??
[edit]No wait, it should be loadStatus_txt.setTextFormat(myTextFormat) sorry[/edit]
Well, it’s really simple, I have an rectangular MC on the _root level named loadStatus_mc, and then inside that there is another MC that would fill that rectangle by percentage loaded named progressBar_mc. let me know if this helps.
This is driving me nuts man. I really don’t know whats up.
I finally realized that embedFonts is not a TextFormat property, but a TextField property, so we were declaring that wrong.
And I realized that we don’t need setTextFormat in the onEnterFrame because we can can use setNewTextFormat (this is what is used if you will be updating the text in a textfield).
So I changed these, but the text only shows if I set embedFonts to false. It won’t work if I set it to true.
So I decided to do a little search on what we may be doing wrong and I found this tutorial…
They show you how to use embedFonts and I used it exactly as they said and it STILL won’t work. I did use the code from the tutorial and it worked perfectly fine for that. But the thing is with that, if you embed the font outline your font becomes blurry. I tested this in a textbox on the stage as well to make sure positioning was fine, and it still went blurry.
Well blurry or not the font worked using the script in the tutorial, but not using the your script, which wasn’t any different.
I tried, but I can’t seem to figure this thing out, sorry.