mCom + mask = disappearing text
July 13th, 2006
I use the mCom components for Flash 8 development and I came across a problem when combined with masks: the text disappears. Examples and solution:
just a button (no mask)
button with mask. Notice the label has disappeared. It is showing only half of the button because the mask is doing its job, silly!
Here the label is back. It is an issue regarding embedded fonts and this is how it is fixed:
- add a font to your library; Verdana for example
- under Linkage for this new library item click off "Export for Actionscript" and "Export in first frame"
- add these lines of code:
import com.metaliq.controls.UIObject;
UIObject.setStyle("embedFonts", true);
UIObject.setStyle("fontFamily", "Verdana");
Categories: Uncategorized
