flex using tweenmax library
Posted
by
Nishant
on Stack Overflow
See other posts from Stack Overflow
or by Nishant
Published on 2011-03-05T20:12:51Z
Indexed on
2011/03/09
0:10 UTC
Read the original article
Hit count: 164
Hello,
I am currently using flex transition effects on state change. Is there a way I can use tweenmax library for that?
Update:
In the code below, I have transitions from state one to state two. I would like to replace that code tweenermax library.
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<s:states>
<s:State name="one" />
<s:State name="two" />
</s:states>
<s:transitions>
<s:Transition fromState="one" toState="two">
<s:Parallel targets="{one, two}">
<s:Fade />
</s:Parallel>
</s:Transition>
<s:Transition fromState="two" toState="one">
<s:Parallel targets="{one, two}">
<s:Fade />
</s:Parallel>
</s:Transition>
</s:transitions>
<component:one id="one" />
<component:one id="two" />
</s:Application>
© Stack Overflow or respective owner