actionscript 3 - Transition in Spark Components like BorderContainer, List, etc., -
i developing flex mobile project in adobe air, using flash builder 4.7, able apply transition in views, how can apply transition spark components 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>
i apply transition above bordercontainer, moving bordercontainer location in screen on clicking button. in advance...
here little code show how use tween
manually, without transition
.
<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;" />
you may find, each tween
, code example in reference, such this one.
Comments
Post a Comment