Re: [Flashcoders] TextFieldAutoSize [AS3]

2008-04-01 Thread EECOLOR
Indeed, if you set the width of a TextField and autoSize to LEFT, it will automatically resize only the height. Greetz Erik On 4/1/08, Andrew Murphy <[EMAIL PROTECTED]> wrote: > > You can also do it like this: > > var tf:TextField = new TextField(); > with(tf){ > autoSize = TextFieldAut

RE: [Flashcoders] TextFieldAutoSize [AS3]

2008-04-01 Thread Andrew Murphy
You can also do it like this: var tf:TextField = new TextField(); with(tf){ autoSize = TextFieldAutoSize.LEFT; wordWrap = true; // width wordWrap set to true it autosizes // the height to fit the text w = 300; text = "Blahblahblah yac

Re: [Flashcoders] TextFieldAutoSize [AS3]

2008-04-01 Thread Stuart (FunkDaWeb)
Worked like a charm many thanks! :o) SM ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Re: [Flashcoders] TextFieldAutoSize [AS3]

2008-04-01 Thread Cedric Muller
very sketchy idea: var txtHeight:Number = txtField.textHeight + 4;// (see Flash docs for further information on how text is laidout in a TextField object) txtField.height = txtHeight; hth, Cedric Hi All Is there any way to autosize the height of a textfield only? I want to manually set t