Hi Laurent,

Thank's for the reply. After a long search in the archiv i found the solution.

You can do the move and resize in parallel (don't remember the correct syntax):

<mx:Parallel id="shrinkToRight" ... >
    <mx:Move xFrom="{target.x}"  xTo="{target.x + (target.width -20)}" 
duration="500" />
   <mx:Resize widthFrom="{target.width}" widthTo="20" duration="500" />
</mx:Parallel>


_rico


--- In [email protected], Laurent Cozic <[EMAIL PROTECTED]> wrote:
>
> 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: [email protected]
> 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