Hello,

You may put a width (just uncomment your line) or set the multiline
attribute to false in order to see your text. I think otherwise your
TextField stays at width=0 and you don't see anything.

Regards
Cedric

On Fri, Oct 10, 2008 at 3:49 PM, Karim Beyrouti <[EMAIL PROTECTED]> wrote:

> Hi List, I seem to be having issues getting my textfield to autoResize -
> and
> I am sure this is just me being silly.
> This is my code:
>
> <code>
> import flash.text.TextField;
> import flash.text.TextDisplayMode;
> import flash.text.TextFieldAutoSize;
> import flash.text.TextFormatAlign;
> import flash.text.StyleSheet;
> import flash.text.TextFormat;
>
> var txt                 = new TextField()
> addChild( txt );
>
> txt.autoSize    = TextFieldAutoSize.LEFT;
> txt.wordWrap    = true;
> txt.selectable  = true;
> txt.multiline   = true;
> txt.border              = true;
> //txt.width             = 20;
>
> var txtF                = new TextFormat();
> txtF.color              = "0xFF00FF";
> txtF.align              = TextFormatAlign.LEFT;
>
> txt.text                = "MY TEXT";
> txt.setTextFormat(txtF);
>
> </code>
>
> Any thoughts?
>
>
>
> Kind Regards
>
>
>
> Karim
>
> _______________________________________________
> Flashcoders mailing list
> Flashcoders@chattyfig.figleaf.com
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
Flashcoders@chattyfig.figleaf.com
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to