example application
source
Embed your textfield styles in flex-applications css file
Application {Create StyleSheet from style-definition and assign it and your data to the TextArea instance
fontFamily: embeddedFont;
styleSheet: Embed(source="textFieldStyles.css", mimeType="application/octet-stream");
}
private function applicationComplete():void {
textArea.styleSheet =
StyleSheetUtil.forClassDefinition(getStyle("styleSheet"));
textArea.htmlText = data;
}
Hey Joachim...
ReplyDeletethats interesting. Does this work only with flex or also with "normal" flahs as3? Do you have an example for the first part of code in as non-flex code?
Thx. V.
Hi,
ReplyDeletei've made an example for AS3 projects
styling text within TextAreaJoachim