2013-05-10 3 views
0

어도비 에어에서 플래시 빌더 4.7을 사용하여 플렉스 모바일 프로젝트를 개발 중입니다. 뷰에서 전환을 적용 할 수 있습니까? BorderContainer와 같은 Spark 구성 요소에 전환을 적용하려면 어떻게해야합니까? 목록 ...BorderContainer, List 등의 Spark 구성 요소에서 전환

<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 이상에 대한 전환을 적용하고 싶습니다. 미리 감사드립니다 ...

답변

2

여기에 Transition없이 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;" /> 
당신은 찾을 수

, this one 등 각 Tween, 기준의 일부 코드 예제에 대해.

+0

고맙습니다. 괜찮 았어. 귀하의 즉각적인 답변을 주셔서 감사합니다 ... –