0
我想根據另一個組件的x和y座標來創建一個組件,我嘗試使用綁定符號但它似乎不起作用!如何將x和y座標從一個Flex組件複製到另一個
<?xml version="1.0" encoding="utf-8"?>
<s:VGroup xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/halo"
xmlns:vld ="com.lal.validators.*"
xmlns:effect="com.lal.effects.*"
xmlns:components="com.lal.components.*"
width="400" height="100%"
right="0"
horizontalAlign="right"
verticalCenter="0">
......
<s:VGroup
width="125"
height="100%"
horizontalAlign="right"
gap="0" width.normal="153" x.normal="247" width.expanded="199" x.expanded="201">
......
<s:Panel includeIn="expanded" id="buttonsGroup"
mouseOut="changeStateToNormal();"
mouseOver="stopChangeToNormal();"
skinClass="com.lal.skins.TitlelessPanel"
title="hi"
right="0"
width="125" height="700" >
.....
<s:Label text="Jump To Date" paddingTop="20" />
<s:TextInput id="wholeDate" width="100"
mouseOver="stopChangeToNormal();"
click="date1.visible = true"
focusOut="date1.visible = false"/>
...
</s:Panel>
</s:VGroup>
<mx:DateChooser id="date1"
change="useDate(event); this.visible = false; "
visible="false"
mouseOver="stopChangeToNormal();"
y="{wholeDate.y}"
x="{wholeDate.x}" />
</s:VGroup>
感謝lach ...你是對的,我必須做的改變s:VGroup s:SkinnableContainer,它的工作! – Tam 2010-03-17 23:53:32