Actionscript 3 Spark组件中的转换,如边界容器、列表等。,

Actionscript 3 Spark组件中的转换,如边界容器、列表等。,,actionscript-3,apache-flex,air,adobe,flash-builder4.5,Actionscript 3,Apache Flex,Air,Adobe,Flash Builder4.5,我正在AdobeAIR中开发flex mobile项目,使用flash builder 4.7,我能够在视图中应用转换,如何将转换应用于Spark组件,如BorderContainer、List <s:BorderContainer id="Login" backgroundAlpha="0" borderStyle="inset" visible="true" > <s:Label width="100%" height="100%" color="white" text="

我正在AdobeAIR中开发flex mobile项目,使用flash builder 4.7,我能够在视图中应用转换,如何将转换应用于Spark组件,如BorderContainer、List

<s:BorderContainer id="Login" backgroundAlpha="0" borderStyle="inset" visible="true" >
<s:Label width="100%" height="100%" color="white" text="Logon Details"/>
<s:TextArea prompt="UserName" id="txtuser" />
<s:TextArea prompt="Password" id="txtpwd" />            
<s:CheckBox />
<s:Button id="btnlogin" color="white" fontFamily="Book Antiqua" fontWeight="bold"/>
<s:Button id="btnreset" color="white" fontFamily="Book Antiqua" fontWeight="bold"/>
</s:BorderContainer>

我想为上面的BorderContainer应用转换,比如单击按钮将BorderContainer移动到屏幕中的另一个位置。
提前感谢…

这里有一个小代码,向您展示如何在不进行
转换的情况下手动使用
Tween

<fx:Declarations>
   <mx:Move id="myMove" target="{login}" xTo="200" yTo="500"/>
</fx:Declarations>

<s:Group width="100%" height="100%">
    <s:BorderContainer id="login" />
</s:Group>

<s:Button id="button" click="myMove.play(); button.enabled=false;" />

对于每个
Tween
,您可以在参考中找到一些代码示例,例如