492 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+3 more
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
  • Has been part of the Envato Community for over 7 years
  • Has referred 500+ members
  • Has sold $125,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+6 more
bobocel says

my_txt.embedFonts = true; :)

492 posts
  • Has been part of the Envato Community for over 7 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+3 more
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
  • Has been part of the Envato Community for over 7 years
  • Has referred 200+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+9 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
  • Has been part of the Envato Community for over 7 years
  • Has referred 500+ members
  • Has sold $125,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+6 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
  • Has been part of the Envato Community for over 7 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+3 more
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
  • Has been part of the Envato Community for over 7 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+3 more
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
  • Has been part of the Envato Community for over 7 years
  • Has referred 500+ members
  • Has sold $125,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+6 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
  • Has been part of the Envato Community for over 7 years
  • Has referred 1+ members
  • Has sold $10,000+ on Envato Market
  • Has collected 1+ items on Envato Market
+3 more
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
  • Has been part of the Envato Community for over 7 years
  • Has referred 200+ members
  • Has sold $10,000+ on Envato Market
  • Has been a beta tester for an Envato feature
+9 more
flashjunkie says

works first time for me with any font :)

even behind a mask too.

Jay

Helpful Information

  • Please read our community guidelines. Self promotion and discussion of piracy is not allowed.
  • Open a support ticket if you would like specific help with your account, deposits or purchases.
  • Item Support by authors is optional and may vary. Please see the Support tab on each item page.

Most of all, enjoy your time here. Thank you for being a valued Envato community member.

Post Reply

Format your entry with some basic HTML. Read the Full Details, or here is a refresher:

<strong></strong> to make things bold
<em></em> to emphasize
<ul><li> or <ol><li> to make lists
<h3> or <h4> to make headings
<pre></pre> for code blocks
<code></code> for a few words of code
<a></a> for links
<img> to paste in an image (it'll need to be hosted somewhere else though)
<blockquote></blockquote> to quote somebody

:grin: :shocked: :cry: Complete List of Smiley Codes

by
by
by
by
by
by