I usually do it by first moving the component and then applying the new width 
and height to it. I don't know if Flex has any built in way to do that.


var newWidth = 200;
var newHeight = 200;

button.x = button.x + button.width - newWidth;
button.y = button.y + button.height - newHeight;
button.width = newWidth;
button.height = newHeight;


--
Laurent Cozic

Flash, Flex and Web Application development
http://pogopixels.com

--- On Thu, 8/14/08, Rico Leuthold <[EMAIL PROTECTED]> wrote:
From: Rico Leuthold <[EMAIL PROTECTED]>
Subject: [flexcoders] Resize from left to right
To: flexcoders@yahoogroups.com
Date: Thursday, August 14, 2008, 8:47 AM










    
            Hi,



I was pretty sure to find the answer in the archive - but nope ...  

couldn't find it.



Is there an easy way to have the resize of a component going from left  

to right ?



Thank's



_rico


      

    
    
        
         
        
        








        


        
        


      

Reply via email to