Posts

Showing posts from July, 2012

Panel Wipe

Source Code: <?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>    <!-- Define a transition for all state changes.--> <s:transitions> <s:Transition id="t1" fromState="*" toState="*" > <s:Sequence targets="{[pnl1,pnl2]}"> <s:Sequence id="sequence1" filter="hide" > <s:Wipe direction="right" duration="1000"/> </s:Sequence> </s:Seque...

Images After Before

Source Code : <?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" creationComplete="init()"> <fx:Declarations> <!-- Place non-visual elements (e.g., services, value objects) here --> </fx:Declarations> <fx:Script> <![CDATA[ [Bindable] var wid:int=0; private function init():void { wid=can1.width; } private function handleMouseMove(event:MouseEvent):void { wid=event.localX; } ]]> </fx:Script> <mx:Canvas x="100" id="can1" width="{img1.width}" height="493" mouseMove="handleMouseMove(event)" verticalScrollPolicy="off" horizontalScrollPolicy="off" > <s:Image id...