2012-01-18 54 views
0

我想弄清楚如何調整子畫布的大小,但我無法弄清楚。在Flex中調整子畫布的大小

我有這樣的周圍父帆布一堆小畫布:

<mx:Canvas width="10" height="10" backgroundColor="#040404" top="0" left="0" id="anchorTL" /> 
    <mx:Canvas width="10" height="10" backgroundColor="#040404" right="0" top="0" id="anchorTR" /> 
    <mx:Canvas width="10" height="10" backgroundColor="#040404" horizontalCenter="0" top="0" id="anchorTM" /> 
    <mx:Canvas width="10" height="10" backgroundColor="#040404" verticalCenter="0" left="0" id="anchorML" /> 
    <mx:Canvas width="10" height="10" backgroundColor="#040404" left="0" bottom="0" id="anchorBL" /> 
    <mx:Canvas width="10" height="10" backgroundColor="#040404" horizontalCenter="0" bottom="0" id="anchorBM" /> 
    <mx:Canvas width="10" height="10" backgroundColor="#040404" bottom="0" right="0" id="anchorBR" /> 
    <mx:Canvas width="10" height="10" backgroundColor="#040404" right="0" verticalCenter="0" id="anchorMR" /> 

每種類型調整大小的(左上,右下等)

我該如何獲得這些在點擊並按住時調整畫布大小?

回答

2

已經有一個組件會爲你做這件事(我也嘗試過編碼它,它不像表面上看起來那麼簡單)。

http://www.objecthandles.com/

^讓和我知道是否適合你,如果你有一個更具體的需求。