Try

_label.textField.label = 'should be red';

Best,

Karl


On Sep 21, 2010, at 4:47 AM, Alexander Farber wrote:

Thanks, but -

On Tue, Sep 21, 2010 at 11:36 AM, Karl DeSaulniers <[email protected]> wrote:
Have you tried setting the text color before the background color?
I think you were assigning your text to _label not _label.textField.
Is this what you wanted?

Try

   var _label:Label = new Label();
   _label.textField.textColor = 0xFF0000;
   _label.textField.background = true;
   _label.textField.backgroundColor = 0x00FF00;
   _label.textField.text = 'should be red';
   addChild(_label);

this is not working either.

Yes, I've tried several things (changing order of setting text/color)
and I'm aware of the TextFormat workaround, but still would like to get
textColor working since I only need to change the color in my app.

Regards
Alex

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Karl DeSaulniers
Design Drumm
http://designdrumm.com

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to