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.width = "100%";
>
> 1067: Implicit coercion of a value of type String to an unrelated type
> Number.
>
>  
>

Reply via email to