Works perfectly! Thanks so much! 

----- Original Message -----
From: "Evyatar Ben Halevi-Arbib" <[email protected]> 
To: [email protected] 
Sent: Thursday, June 20, 2013 8:29:32 AM 
Subject: Re: how to horizontally align a Group located inside a VGroup? 

Change the horizontalAlign property of the VGroup itself. 

Good luck, 
Evyatar 


On Thu, Jun 20, 2013 at 6:19 PM, <[email protected]> wrote: 

> Hi Experts, 
> 
> I have the following rectangle and lines oriented correctly with each other 
> inside a Spark Group. 
> 
> How would I then horizontally center this group in the VGroup (without 
> changing 
> the alignment of the rect and lines within the Group)? 
> 
> I tried using a horizontalCenter="0" in the Group declaration, but no 
> effect. 
> 
> 
> <s:VGroup width="100%" height="100%" paddingBottom="20" paddingLeft="20" 
> paddingRight="20" paddingTop="20" gap="0"> 
> 
> <s:Group id="dgGroup" width="300"> 
> 
> <s:Rect top="0" width="{this.dgGroup.width}" left="-1" height="50"> 
> <s:stroke> 
> <s:SolidColorStroke color="0xff0000" weight="1"/> 
> </s:stroke> 
> </s:Rect> 
> 
> <s:Line id="l1" left="-1" top="-1" bottom="-1"> 
> <s:stroke> 
> <s:SolidColorStroke color="0xffffff" weight="1" /> 
> </s:stroke> 
> </s:Line> 
> 
> <s:Line id="l2" left="0" top="-1" bottom="0"> 
> <s:stroke> 
> <s:SolidColorStroke color="0x00FF00" weight="1"/> 
> </s:stroke> 
> </s:Line> 
> 
> </s:Group> 
> 
> </s:VGroup> 
> 

Reply via email to