# HTML Text and Embed Fonts issue with Masks?

**URL:** <https://forum.kirupa.com/t/html-text-and-embed-fonts-issue-with-masks/17153>\
**Category:** Uncategorized\
**Created:** [April 1, 2003, 9:48pm UTC](https://forum.kirupa.com/t/html-text-and-embed-fonts-issue-with-masks/17153 "2003-04-01T21:48:14Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![lostinbeta](https://avatars.discourse-cdn.com/v4/letter/l/db5fbb/32.png) [@lostinbeta](https://forum.kirupa.com/u/lostinbeta)\
**Post date:** [April 1, 2003, 9:48pm UTC](https://forum.kirupa.com/t/html-text-and-embed-fonts-issue-with-masks/17153/1 "2003-04-01T21:48:14Z")

</div>

Alright, I need help here, Ive been trying all day to figure this damm thing out.

What I have is a dynamic textbox within a movie clip.

The textboxes INSTANCE name is “newsBox” (no quotes) and the movie clips instance name is “newsClip”

newsClip is being masked by a rectangle shape. Now as everyone knows (or will soon find out), you need to embed the font outline for a dynamic textbox to work when being masked. That is all well and good… BUT… and it is a big but… When you want to render the text as html and read it as htmlText it doesn’t work!!!

Am I to assume that you can’t use HTML formatted text in a masked clip with a textbox? If so this really friggin sucks because it defeats the whole purpose of what I was trying to do!! 😱

Is this a bug in Flash? Is there a reason they did this? Is there a way around it?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 1, 2003, 9:55pm UTC](https://forum.kirupa.com/t/html-text-and-embed-fonts-issue-with-masks/17153/2 "2003-04-01T21:55:22Z")

</div>

Ok, I set up an example .fla file of what I am talking about…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 1, 2003, 10:06pm UTC](https://forum.kirupa.com/t/html-text-and-embed-fonts-issue-with-masks/17153/3 "2003-04-01T22:06:32Z")

</div>

lost - I do this same thing on unflux, but the only difference is I  
don’t have my text box as it’s own mc. It works just fine this way.

I’m not sure why it wouldn’t work your way though…seems odd.

I’m gonna take a look…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 1, 2003, 10:11pm UTC](https://forum.kirupa.com/t/html-text-and-embed-fonts-issue-with-masks/17153/4 "2003-04-01T22:11:54Z")

</div>

Apparently you’re right, that sux!  
Report to MM!!

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 1, 2003, 10:17pm UTC](https://forum.kirupa.com/t/html-text-and-embed-fonts-issue-with-masks/17153/5 "2003-04-01T22:17:11Z")

</div>

i realize that you want to do this via AS, but if you type directly  
into the text box, it works.

Still playing with it…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 1, 2003, 10:17pm UTC](https://forum.kirupa.com/t/html-text-and-embed-fonts-issue-with-masks/17153/6 "2003-04-01T22:17:40Z")

</div>

I have to do it with AS because I load the text via loadVars.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 1, 2003, 10:27pm UTC](https://forum.kirupa.com/t/html-text-and-embed-fonts-issue-with-masks/17153/7 "2003-04-01T22:27:05Z")

</div>

ok, i got the text to at least show up under the mask, but it’s  
not displaying it as html. It behaves like just text. weird…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 1, 2003, 10:29pm UTC](https://forum.kirupa.com/t/html-text-and-embed-fonts-issue-with-masks/17153/8 "2003-04-01T22:29:52Z")

</div>

Hmm, so you just added a 1 to the instance name? I wonder why that worked.

Interesting.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 1, 2003, 10:32pm UTC](https://forum.kirupa.com/t/html-text-and-embed-fonts-issue-with-masks/17153/9 "2003-04-01T22:32:01Z")

</div>

i added a 1 to give it a diff name and also changed the properties  
of the textbox itself to be multi-line rather than a single. Not sure  
why that worked, but also, if you toggle the html property on the  
text box, it makes the text appear or not. Oddly enough, turning  
it OFF in the instance properties, shows you the text.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 1, 2003, 10:36pm UTC](https://forum.kirupa.com/t/html-text-and-embed-fonts-issue-with-masks/17153/10 "2003-04-01T22:36:46Z")

</div>

Well the instance name technically shouldn’t matter, since the clip is located inside another clip Flash doesn’t get confused as to which one you are talking about, thats why if you use regular .text instead of .htmlText it works prefectly fine and you can set both textboxes to whatever you want.

So I really have no clue how changing the instance name got it to work even partially.

And I reset it back to single line and it still worked, and then it tried multi-line no-wrap and it still worked as well. So that setting doesn’t matter.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 1, 2003, 10:42pm UTC](https://forum.kirupa.com/t/html-text-and-embed-fonts-issue-with-masks/17153/11 "2003-04-01T22:42:20Z")

</div>

i took the masked box out of the mc and put it on the main stage  
just like the other one, and it still isn’t registering as html.

this is definitely a brain-teaser…

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 1, 2003, 10:44pm UTC](https://forum.kirupa.com/t/html-text-and-embed-fonts-issue-with-masks/17153/12 "2003-04-01T22:44:16Z")

</div>

Yeah I did the same thing, if you choose NOT to embed the font outlines it works great.

The htmlText option apparently doesn’t work with embedded fonts :-\

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 1, 2003, 10:46pm UTC](https://forum.kirupa.com/t/html-text-and-embed-fonts-issue-with-masks/17153/13 "2003-04-01T22:46:48Z")

</div>

then it looks like you may need to keep the masked text box out  
of it’s own mc. Like I said, this is how I have it on my site, and it  
works. probably why I never ran into this problem either.

You really should report it to MM tho, at least to see if you get an  
answer. maybe we’re just missing something on it.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 1, 2003, 10:52pm UTC](https://forum.kirupa.com/t/html-text-and-embed-fonts-issue-with-masks/17153/14 "2003-04-01T22:52:58Z")

</div>

I can’t not have it in the MC, what I am doing with it requires it to be in an MC.

I guess I will report it then.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 1, 2003, 10:55pm UTC](https://forum.kirupa.com/t/html-text-and-embed-fonts-issue-with-masks/17153/15 "2003-04-01T22:55:43Z")

</div>

yeah, sorry man. I tried… :-\

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 1, 2003, 11:01pm UTC](https://forum.kirupa.com/t/html-text-and-embed-fonts-issue-with-masks/17153/16 "2003-04-01T23:01:16Z")

</div>

It’s ok. I tried all day as well and I greatly appreciate you at least trying, thats what matters 🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 1, 2003, 11:10pm UTC](https://forum.kirupa.com/t/html-text-and-embed-fonts-issue-with-masks/17153/17 "2003-04-01T23:10:59Z")

</div>

np. 🙂

if you can, and I’m sure you will, let us know what the outcome is.  
If and when that ever is.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 2, 2003, 5:34am UTC](https://forum.kirupa.com/t/html-text-and-embed-fonts-issue-with-masks/17153/18 "2003-04-02T05:34:41Z")

</div>

Ok, this situation just got a bit weirded :crazy:

Alright I removed all HTML formatting from my file and it all worked fine… BUT then I added an A HREF tag to my first lines of text. And everything STILL worked PERFECTLY fine… and get this… THE A HREF WORKED AS WELL!!!

So since the A HREF tag worked I was happy and tried to switch it to a bold or italic or other font formatting tag… it was a no go.

Weird eh?

I found something on it at Flashcoders… apparently htmlText is buggy left and right…

[http://chattyfig.figleaf.com/flashcoders-wiki/index.php?betabugs](http://chattyfig.figleaf.com/flashcoders-wiki/index.php?betabugs)

Scroll down to

> TextField.htmlText setter deletes whitespace. Formatting Text using html & whitespace problems

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 2, 2003, 3:58pm UTC](https://forum.kirupa.com/t/html-text-and-embed-fonts-issue-with-masks/17153/19 "2003-04-02T15:58:07Z")

</div>

interesting and weird all at the same time.

So, did you fix it? Happy with the work-around? any progress  
other than what you posted above?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [April 2, 2003, 5:20pm UTC](https://forum.kirupa.com/t/html-text-and-embed-fonts-issue-with-masks/17153/20 "2003-04-02T17:20:17Z")

</div>

Nope, I didn’t fix it.

No progress other than what I posted above.

And no reply from Macromedia yet.

I did create a workaround to what I wanted to do so that my text can be displays sans HTML font formatting but still be distinguishably set up (I am actually very proud of my workaround, it involves XML updating… much better than my original idea). It took me almost 4 hours to write it (mainly took so long because I kept confusing myself as to which clips should do what), but I got something I am happy with.

I still want to know the solution to this though 😠
