/ Published in: ActionScript 3

Create a textfield and add a format
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var textFormat:TextFormat = new TextFormat; textFormat.font = "verdana"; textFormat.color = 0xFFFFFF; textField = new TextField; textField.width = 400; textField.autoSize = TextFieldAutoSize.LEFT; textField.multiline = true; textField.defaultTextFormat = textFormat; textField.htmlText = "My text"; addChild(textField);
Comments
