Posted By

SmpleJohn on 12/09/10


Tagged

label as3 component


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

tombarc


Change Label Component Properties


 / Published in: ActionScript 3
 

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

  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  

You need to login to post a comment.