Right, why doesn't this work??
var myFont = new MyriadPro();
var _displayTextFormat:TextFormat = new TextFormat();
_displayTextFormat.size = 15;
_displayTextFormat.font = myFont.fontName;
var _displayText:TextField = new TextField();
_displayText.defaultTextFormat = _displayTextFormat;
_displayText.embedFonts = true;
_displayText.antiAliasType = AntiAliasType.ADVANCED;
_displayText.border = false;
**_displayText.htmlText = "hello<br />hello";** //_springModel.displayText;
_displayText.width = 170;
_displayText.height = 250;
_displayText.x = 270;
_displayText.y = 80;
_displayText.wordWrap = true;
this.addChild( _displayText );
font works, it's positioned properly, wordwrap works, but it's not recognising the "". W-T-F
Apparently the _displayText.html = true doesn't work anymore... what am I missing?!
i think you might need multiline set in there. Try adding _displayText.multiline=true
Thank you Paul, that was driving me mad. I thought multiline was set to true by default in as3.
STUPID ME.
No idea m8 but glad it's working for you ![]()
Sorry, you must be a member to post to a conversation. Either
log in or
sign up
to get involved.