Quite possibly could be that you need to set a html text field too.

_label.textField.html = true;
_label.textField.htmlText = "should be red";

JAT

Karl


On Sep 21, 2010, at 4:36 AM, Karl DeSaulniers wrote:

Have you tried setting the text color before the background color?
I think you were assigning your text to _label not _lavel.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);

Best,

Karl

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

Hello,

does anybody please know, why I can only set the background color here?

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

Thank you
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

Karl DeSaulniers
Design Drumm
http://designdrumm.com

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

Reply via email to