希望有人可以提供帮助。我有一个 Flex (4.5/Air) 应用程序,它的图形声明如下:
<s:Graphic id="viewRect" width="200" height="200">
<s:Rect id="border" width="200" height="200">
<s:stroke >
<s:SolidColorStroke weight="1" color="#606060" />
</s:stroke>
</s:Rect>
<s:Ellipse id="upperLeftHandle" height="8" width="8" left="-2" top="-2" >
<s:fill>
<s:SolidColor color="#FFFFFF"/>
</s:fill>
</s:Ellipse>
</s:Graphic>
当我以编程方式调整 Graphic 的大小时,它还会缩放边框 (Rect) 和椭圆 (upperLeftHandle)。我需要调整图形对象的大小,但让 Rect 和 Ellipse(以及 Graphic 内的任何其他内容)保持相同的比例。
有人有想法么?