The parallel Effect plays multiple child effects at the same time.
The parallel Effect plays multiple child effects at the same time.The parallel Effect plays multiple child effects at the same time. The tag of parallel Effect is <mx:Parallel>. In this example you can see how we can use parallel Effect in application.
|
<?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">target=" {roseindia}"duration=" 500"> <s:Resize id="resizeHide"widthTo=" 0"heightTo=" 0"/> <s:Fade id="fadeHide"alphaFrom=" 1.0"alphaTo=" 0.0"/> </s:Sequence> <!-- Parallel Effect -->target=" {roseindia}"duration=" 500">alphaFrom=" 0.0"alphaTo=" 1.0"/>widthTo=" 247"heightTo=" 85"/><![CDATA[ public function imageShow():void{roseindia.visible == true;} if(hide.selected == true){roseindia.visible == false;} } ]]> </fx:Script> <s:Panel title="MX Parallel Effect Example"width=" 439" height="282"chromeColor=" #555555" color="#CCCCCC"> <mx:ApplicationControlBar width="437" horizontalAlign="center">label=" Show"color=" #000000"selected=" true"click="fadeResizeShow.end(); fadeResizeShow.play();" />id=" hide"label=" Hide"color=" #000000" click="fadeResizeHide.end();fadeResizeHide.play();" /> </mx:ApplicationControlBar>source=" @Embed(source='file:/C:/work/bikrant/image/roseindia.gif')"x=" 99" y="90"/>&</s:Application> |

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