Beginner questions are fine here.  We just hope you will do a bit of
reading/investigating first, before you post.

 

You need to use the "percentHeight" property to set the height to a
percent.

Container_A.percentHeight="100";

 

Same with percentWidth

 

Tracy

________________________________

From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of missgiggygirl
Sent: Monday, January 15, 2007 3:12 PM
To: [email protected]
Subject: [flexcoders] Easy question related to data types

 

Hi,
first of all, I am just learning Flex and this is an easy question, so
this Group may not be the place to post it. If there is a better
forum for people learning to post, kindly redirect me. Thanks.

Ok, I need to programmitically change the size of a canvas from 100%
to 60 pixels when a button is clicked, and vice versa. This code
works when I minimize, but the "100%" throws errors:
case 'A':

stateA==0 ? stateA=1 : stateA=0; 
if(stateA==0)
{
Container_A.height="100%";
buttonSizerA.label = "<";
} 
else 
{
Container_A.height=60;
buttonSizerA.label = ">";
} 
break;

How can I programmitcally set the container to "100%"?

Thanks,
-- Ann, the Original Giggle Girl

 

Reply via email to