We can use filter with transition.
We can use filter with transition.We can use filter with transition. You will use some
value of filter for perform effect during change state which are
following:
1. add
2. hide
3. move
4. remove
5. resize
6. show
The syntax are following:
<s:Sequence id="firstSequence" filter="hide">
In this example you can see how we can use filter with transition.
|
<?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">title=" Login Form"chromeColor=" #000000"color=" #CCCCCC"backgroundColor=" #333333"width=" 329"height=" 235"x=" 8" y="8"x.Register=" 8"y.Register=" 245"click="currentState= ''"visible=" true"visible.ForgotPassword=" false"> <mx:Form x="34" y="0"> <mx:FormHeading label="Login Form"/>color=" #000000"/>text=" password"color=" #000000"/> </mx:FormItem>label=" Login" />label=" Reset" /> </mx:FormItem>title=" Forgot Password"chromeColor=" #FFFFCC"color=" #996600"backgroundColor=" #CCCC99"width=" 329"height=" 235"x=" 8" y="245"x.ForgotPassword=" 8" y.ForgotPassword="8"click="currentState= 'ForgotPassword'"visible=" true"visible.Register=" false"> <mx:Form x="18" y="20">color=" #000000"/> </mx:FormItem> <mx:FormItem label="Phone No.:">color=" #000000"/> </mx:FormItem>label=" Get Password" />label=" Reset" /> </mx:FormItem>title=" Registration Form"chromeColor=" #7578ef"color=" #FFFFFF"backgroundColor=" #003366"width=" 329" height="235"x.ForgotPassword=" 8" y.ForgotPassword="245"x.Register=" 8" y.Register="8"click="currentState= 'Register'"visible=" false"visible.ForgotPassword=" true"visible.Register=" true"> <mx:Form x="13" y="0">color=" #000000"/> </mx:FormItem> <mx:FormItem label="Password:">text=" password"color=" #000000"/>text=" password"color=" #000000"/> </mx:FormItem>color=" #000000"/>label=" Register" /> <s:Button id="reset2"label=" Reset" /></s:Application> |

To view this page ensure that Adobe Flash Player version 10.0.0 or greater is installed.