title: How to reference rectangle/geometry objects in flex 4?
body: <p>I'm doing an geometry object tranformations for a project. I need to have same rectangle across 4 parts in a screen. So when i change one rectangle others will be transformed like scaling or something. </p>
  
  <p>So i was able to do this with image, just giving "source" attribute. How to do with geometry objects? </p>
  
  <pre><code>    &lt;s:Group id="rectangle" left="10" top="10"&gt;
          &lt;s:Rect height="100" width="100"&gt;                              
              &lt;s:stroke&gt;
                  &lt;s:SolidColorStroke color="0x000000" weight="1"/&gt;
              &lt;/s:stroke&gt;
              &lt;s:fill&gt;
                  &lt;s:RadialGradient&gt;
                      &lt;s:GradientEntry color="0x11111" ratio="0" alpha=".5"/&gt;
                  &lt;/s:RadialGradient&gt;
              &lt;/s:fill&gt;
          &lt;/s:Rect&gt;
      &lt;/s:Group&gt;
  
  &lt;mx:Image scaleContent="true" left="400" top="5" 
                    source="{rect}"  autoLoad="true"/&gt;
  </code></pre>
  
  <p>Here i'm having a problem referencing above rectangle.</p>
  
  <pre><code>&lt;mx:Image scaleContent="true" left="400" top="5" 
                    source="{rect}"  autoLoad="true"/&gt;    
  </code></pre>