Re: [flexcoders] How do I set width to 100% in actionscript?

2008-03-25 Thread Dennis Falling
Someone's probably beaten me to this but, use percentWidth instead. On Tue, Mar 25, 2008 at 1:43 PM, luvfotography < [EMAIL PROTECTED]> wrote: > How do I set the width to 100% using actionscript?? > It only allows a number - not a string!?! > > var newcanvas:Canvas = new Canvas(); > > newcanvas

Re: [flexcoders] How do I set width to 100% in actionscript?

2008-03-25 Thread Clint Tredway
you have to use percentWidth On Tue, Mar 25, 2008 at 1:43 PM, luvfotography < [EMAIL PROTECTED]> wrote: > How do I set the width to 100% using actionscript?? > It only allows a number - not a string!?! > > var newcanvas:Canvas = new Canvas(); > > newcanvas.width = "100%"; > > 1067: Implicit coe

[flexcoders] How do I set width to 100% in actionscript?

2008-03-25 Thread luvfotography
How do I set the width to 100% using actionscript?? It only allows a number - not a string!?! var newcanvas:Canvas = new Canvas(); newcanvas.width = "100%"; 1067: Implicit coercion of a value of type String to an unrelate