0
votes

I have two dynamic classic TextFields in a MovieClip, one with Arial Regular embedded and the other with Arial Bold, but the second TextField is not showing the bold text. It shows regular text. Here is how I am doing it:

a busy cat http://cubixshade.com/textz/sample.jpg

I change the text of two fields using

mc.txt1.text="changed text90";

mc.txt2.text="changed text90";

Both are shown in Arial Regular style.

3
have you embedded the arial bold font as well?Nathan Smith
yes, i have embedded both the font.Muhammad Irfan

3 Answers

0
votes

When you are working with embeded fonts you need to know: that when TextField hits the stage flash automaticaly dismisses all of the Font type properties on it to the basic one. in this case you have Arial Regular.

Embeding fonts means that you will be able to use them in the html based TextFields.

Make sure that when you are "embeding font" it is beeing exported for AS3. in other case the font will be available only if you had it attached to any textfield that is on stage.

in this case you should propertly embed font and change you code a bit:

txt1.text="changed text90";
txt2.htmlText="<b>changed text90</b>";

enter image description here

0
votes

i noticed when working with fonts in flash that some font won't diplay correctelly even when i embedded them just try another font and everything gonna be alright

0
votes

I found that depending on the font, the bold version isn't a different font-face. To get bold you only need to use tags around your html text that uses your regular font