myButton.percentWidth = 100;

works pretty well.

--- shravan kumar <[EMAIL PROTECTED]> wrote:

> Hi,
>   
>    How to set a button width to 100% while creating
> it in an .as file.
>   
>   Following is the code I have used:-
>   
>    var  myCanvas=createClassObject(Canvas,
> "canvas1", this.getNextHighestDepth());
>    var  myButton=myCanvas.createClassObject(Button,
> "button1",  myCanvas.getNextHighestDepth());
>     myButton.width = "100%";
>    
>  
>   Thanks & Regards
>   Shravan Kumar S
>
>            
> ---------------------------------
> Feel free to call! Free PC-to-PC calls. Low rates on
> PC-to-Phone.  Get Yahoo! Messenger with Voice


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around
http://mail.yahoo.com


--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




Reply via email to