flex using tweenmax library
- by Nishant
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>