If you use a canvas, you can just toggle the visible property. The
dimensions won't bother the layout, because you must set it explicitly.

Tracy

-----Original Message-----
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of Rajesh Jayabalan
Sent: Monday, September 26, 2005 2:15 PM
To: [email protected]
Subject: [flexcoders] Re: How to make textarea visible and unvisible

If you set is as visible false, the components will still take up
space on the screen. Put both of them in a single container (canvas,
vbox.. ) give the container an id and in you initialize method set the
container visible false, width and height to 0. and on your button
click change the visible propertu and width and height to what you need.

Regards
Rajesh J

--- In [email protected], <[EMAIL PROTECTED]> wrote:
> Or just set visible property to "false" if you are lazy to create them
> dynamically ;) 
> 
> 
>  
> 
> -----Original Message-----
> From: [email protected] [mailto:[EMAIL PROTECTED]
On
> Behalf Of Mink, Joseph
> Sent: Monday, September 26, 2005 4:24 PM
> To: [email protected]
> Subject: RE: [flexcoders] How to make textarea visible and unvisible
> 
> Create the TextArea and "Submit" button dynamically in AS with the
> createChild(...) method when the user clicks the "Show Text Area"
button.
> 
> ________________________________
> 
> From: [email protected] [mailto:[EMAIL PROTECTED]
On
> Behalf Of sandip_patil01
> Sent: Monday, September 26, 2005 8:19 AM
> To: [email protected]
> Subject: [flexcoders] How to make textarea visible and unvisible
> 
> 
> Hi All,
> 
> I have a mxml page containing text area and submit button.
> Also button with  label "Show Text Area "
> 
> When I request this mxml page text area & that submit button should
not be
> displayed .
> Only when I click on the button "Show Text Area " text area & submit
button
> should be displayed.
> Can anybody tell how to do this.
> 
> Thx in advance
> Sandip Patil
> 
> 
> 
> 
> 
> 
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com 
> 
> 
> 
> ________________________________
> 
> YAHOO! GROUPS LINKS 
> 
> 
>       
> *      Visit your group "flexcoders
> <http://groups.yahoo.com/group/flexcoders> " on the web.
>         
> *      To unsubscribe from this group, send an email to:
>        [EMAIL PROTECTED]
> <mailto:[EMAIL PROTECTED]> 
>         
> *      Your use of Yahoo! Groups is subject to the Yahoo! Terms of
Service
> <http://docs.yahoo.com/info/terms/> . 
> 
> 
> ________________________________





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



 






------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/nhFolB/TM
--------------------------------------------------------------------~-> 

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

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/flexcoders/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to