Change Label Component Properties


/ Published in: ActionScript 3
Save to your folder(s)

This is the code for changing the color of a label in Flash's components.


Copy this code and paste it in your HTML
  1. var myFormat:TextFormat = new TextFormat();
  2. myFormat.font = "Arial";
  3. myFormat.size = 14;
  4. myFormat.bold = true;
  5. myFormat.color = 0xFF0000; //red
  6.  
  7. checkBox.textField.autoSize = TextFieldAutoSize.LEFT;
  8. checkBox.setStyle("textFormat", myFormat);

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.