<quote>
_global.styles.TextArea.embedFonts=true;
_global.styles.TextArea.fontFamily="hnm";//hnm is a non system font embeded and linked as so in my library.

then

txt.text="asd<br>asd<br>asd";//txt is a v2 textarea component on the stage named as so.

PROBLEM=embedFonts is causing nothing to display - why does this not act like a global style sheet?
</quote>

This works:

import mx.controls.TextArea;
import mx.styles.CSSStyleDeclaration;
_global.styles.TextArea.embedFonts = true;
_global.styles.TextArea.fontFamily = "hnm";
this.createClassObject(TextArea, "txt", 1);
txt.text = "asd\nasd\nasd";

But it won't work with "html=true", my theory is because Flash adds <font> tag with its face set to the default font (Times New Roman) which is not embeded in your TextArea therefore nothing will be displayed.

Kenneth Kawamoto
http://www.materiaprima.co.uk

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to