all groups > flash actionscript > november 2006 >
You're in the

flash actionscript

group:

embedfonts & alpha


Re: embedfonts & alpha basker3dartist
11/27/2006 6:36:05 PM
flash actionscript:
Look this file, you get the solution:

embedfonts & alpha eRez
11/27/2006 6:52:54 PM
hi,
yes i know this issue has been discussed many time before, and i've read
many threads and post, but still found no solution.
basically, this is my code (which is found inside a function):

var _txt = txt_mc.createTextField("text",10,X,Y,W,STAGE_H);
_txt.html = true;
_txt.selectable = false;
_txt.multiline = true;
_txt.styleSheet = cssFormat;
_txt.htmlText = "<p class='"+Format+"'>"+Text+"</p>";
_txt.autoSize = "right";
_txt.wordWrap = true;

when 'Format' & 'Text' are parameters passed into the function containing
this code, and 'cssFormat' is styleSheet object, into which an external css
file was loaded.

at this point, when all works fine i want to set the alpha of the text (or
actually the MC containing it) to 0 (so later i can fade it in).
after adding -
txt_mc._alpha = 0;
not surprisingly, the text isn't affected by this change (only the other
graphic element in the MC), so i add -
txt_mc.text.embedFonts = true;
which causes the the text not to appear at all...

just for tesing, i added -
System.useCodepage=true;
but it made no change.

any solution?
thanks in advance,
eRez

Re: embedfonts & alpha eRez
11/28/2006 12:00:00 AM
thanks for your help, but in your case the text field wasn't created
dynamically, niether the embeding of the fonts, and you didn't use
'htmlText' nor external css (or any other stylesheet for this matter).

as i'm trying to create a dynamic as possible movie, all the data is
imported from external resources, and all the graphic elements are created
(or at least placed on the stage) by code.

any other productive solutions?


[quoted text, click to view]

Re: embedfonts & alpha Marghoob Sulemaan
11/28/2006 12:00:00 AM
did you embed that fonts to your library.? i know you are senior than me. but sometime we forget something.
you need to embed that font into library which has been used in your CSS.
AddThis Social Bookmark Button