/ Published in: ActionScript 3
This is the code for changing the color of a label in Flash's components.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
var myFormat:TextFormat = new TextFormat(); myFormat.font = "Arial"; myFormat.size = 14; myFormat.bold = true; myFormat.color = 0xFF0000; //red checkBox.textField.autoSize = TextFieldAutoSize.LEFT; checkBox.setStyle("textFormat", myFormat);