492 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • India
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
avenue28 says

Suppose i have a dynamic text box named my_txt on the stage in frame 1.

Take a look at this code…

my_txt.html = true;
my_txt.htmlText = "<b>FlashDen</b>";

Normally it works. But suppose I embed some or all glyphs from the embed dialog in the text box properties section, the text doesn’t show up. It works if I have normal html text i.e.,

my_txt.htmlText = "FlashDen";

Did anybody come across anything like this before. Please help!!!

3402 posts
  • Bought between 10 and 49 items
  • Elite Author
  • Envato Studio (Microlancer) Beta Tester
  • Exclusive Author
  • Has been a member for 7-8 years
  • Referred between 500 and 999 users
  • Sold between 100 000 and 250 000 dollars
+1 more
bobocel says

my_txt.embedFonts = true; :)

492 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • India
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
avenue28 says

thanx bobo for the tip…but it doesn’t work… :( I’m doing just as I described in my question.

Now i used the statement u gave instead of embedding the font manually from the properties section. Doesn’t work..any other suggestions???

3868 posts
  • Author had a Free File of the Month
  • Beta Tester
  • Bought between 100 and 499 items
  • Contributed a Blog Post
  • Contributed a Tutorial to a Tuts+ Site
  • Exclusive Author
  • Has been a member for 7-8 years
+4 more
flashjunkie says

check you have the instance name i suppose, i know its obvious but you may have forgotten to do it…

Jay

3402 posts
  • Bought between 10 and 49 items
  • Elite Author
  • Envato Studio (Microlancer) Beta Tester
  • Exclusive Author
  • Has been a member for 7-8 years
  • Referred between 500 and 999 users
  • Sold between 100 000 and 250 000 dollars
+1 more
bobocel says

Go to library, click the new font, select your font, give it a name. Than search for that font in the dropdown when you set the new font in the textfield. Make sure it has a * on the right of the name, and that you set the code I wrote above as well. It should work if the names of the instances are right.

492 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • India
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
avenue28 says
check you have the instance name i suppose, i know its obvious but you may have forgotten to do it… Jay

hmmm…as u said…that is pretty obvious…i do have the instance name setup… :)

492 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • India
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
avenue28 says
Go to library, click the new font, select your font, give it a name. Than search for that font in the dropdown when you set the new font in the textfield. Make sure it has a * on the right of the name, and that you set the code I wrote above as well. It should work if the names of the instances are right.

hmmm…what u say here does work bobo…i actually do that… but what if i want only some letters to appear in the text box… say only numerals…then I don’t want to increase my file size by embedding the whole font…just a thought!!!... please tell me what u think about it… :)

3402 posts
  • Bought between 10 and 49 items
  • Elite Author
  • Envato Studio (Microlancer) Beta Tester
  • Exclusive Author
  • Has been a member for 7-8 years
  • Referred between 500 and 999 users
  • Sold between 100 000 and 250 000 dollars
+1 more
bobocel says

Check that you have html set to true. From what I see in your sample, you try to make it bold using HTML .

492 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 6-7 years
  • India
  • Referred between 1 and 9 users
  • Sold between 10 000 and 50 000 dollars
avenue28 says
Check that you have html set to true. From what I see in your sample, you try to make it bold using HTML .

you can see that in the post. i first set the html to true and then i assigned it the text. :)

Even if i do it manually, instead of code, it doesn’t work… one case where is does work is if set the bold property of the text box manually from the property inspector to true. But then, i can’t have something like:

my_txt.htmlText = "<b>12345</b>";
my_txt.htmlText += "12345";

hope you get my point… did u try it out by yourself??? Does it work for you???

3868 posts
  • Author had a Free File of the Month
  • Beta Tester
  • Bought between 100 and 499 items
  • Contributed a Blog Post
  • Contributed a Tutorial to a Tuts+ Site
  • Exclusive Author
  • Has been a member for 7-8 years
+4 more
flashjunkie says

works first time for me with any font :)

even behind a mask too.

Jay

by
by
by
by
by
by