In actionscript use the percentWidth variable. The MXML compiler is just smart enough to know that a width with a percent sign should actually be percentWidth.
So try this: var text:Text = new Text(); text.percentWidth = 100; --- In flexcoders@yahoogroups.com, "Dan Vega" <[EMAIL PROTECTED]> wrote: > > I understand the width as a percentage but in as3 you can't do that because > its looking for a number. > > > If i do > > var text:Text = new Text(); > text.width = 100%; >