Ya here i'm posting the code can u check it once.For me it's not working. <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="vertical" fontSize="12" width="100%" height="100%" paddingBottom="5" paddingLeft="5" paddingTop="5" paddingRight="5">
<mx:Script> <![CDATA[ import mx.rpc.events.ResultEvent; import mx.collections.ArrayCollection; import mx.controls.Alert; import flash.net.navigateToURL; private function callFaceBookPage():void { navigateToURL(new URLRequest('http://www.facebook.com '),'_new'); } private function callEdWikiPage():void { navigateToURL(new URLRequest('http://www.wiki.com'),'_new'); } private function callCNNNews():void { navigateToURL(new URLRequest('http://www.cnn.com'),'_new'); } private function callBBCNews():void { navigateToURL(new URLRequest('http://www.bbc.com'),'_new'); } private function callYahooNews():void { navigateToURL(new URLRequest('http://in.news.yahoo.com/'),'_new'); } private function callMSNNews():void { navigateToURL(new URLRequest('http://www.msnbc.msn.com/' ),'_new'); } ]]> </mx:Script> <!--<mx:Style source="assets/styles/ed.css"/>--> <mx:states> <mx:State name="One"> <mx:SetProperty target="{fb}" name="x" value="75%"/> <mx:SetProperty target="{fb}" name="y" value="0"/> <mx:SetProperty target="{fb}" name="width" value="200"/> <mx:SetProperty target="{fb}" name="height" value="210"/> <mx:SetProperty target="{wiki}" name="x" value="0"/> <mx:SetProperty target="{wiki}" name="y" value="0"/> <mx:SetProperty target="{wiki}" name="width" value="100"/> <mx:SetProperty target="{wiki}" name="height" value="100"/> <mx:SetProperty target="{category1}" name="x" value="0"/> <mx:SetProperty target="{category1}" name="y" value="110"/> <mx:SetProperty target="{category1}" name="width" value="100"/> <mx:SetProperty target="{category1}" name="height" value="100"/> </mx:State> <mx:State name="Two"> <mx:SetProperty target="{wiki}" name="x" value="110"/> <mx:SetProperty target="{wiki}" name="y" value="0"/> <mx:SetProperty target="{wiki}" name="width" value="200"/> <mx:SetProperty target="{wiki}" name="height" value="210"/> <mx:SetProperty target="{category1}" name="x" value="0"/> <mx:SetProperty target="{category1}" name="y" value="110"/> <mx:SetProperty target="{category1}" name="width" value="100"/> <mx:SetProperty target="{category1}" name="height" value="100"/> </mx:State> </mx:states> <!-- Define Transition array with one Transition object.--> <mx:transitions> <!-- Define a transition for changing from any state to any state. --> <mx:Transition id="myTransition" fromState="*" toState="*"> <!-- Define a Parallel effect as the top-level effect.--> <mx:Parallel id="t1" targets="{[fb,wiki,category1]}"> <!-- Define a Move and Resize effect.--> <mx:Move duration="400"/> <mx:Resize duration="400"/> </mx:Parallel> </mx:Transition> </mx:transitions> <mx:VBox width="100%" height="100%"> <mx:ApplicationControlBar width="100%" height="5%" textAlign="right"> <mx:Text text="Search:"/> <mx:TextInput id="searchtext" width="300" height="100%" textAlign="left"/> <mx:Image source="assets/images/Search-icon-60x40.png" height="100%" buttonMode="true" useHandCursor="true" mouseChildren="false"/> <mx:Spacer width="45%"/> <mx:Text text="SignIn" width="5%" textDecoration="underline" buttonMode="true" useHandCursor="true" mouseChildren="false"/> <mx:Text text="SignUp" width="5%" textDecoration="underline" buttonMode="true" useHandCursor="true" mouseChildren="false"/> </mx:ApplicationControlBar> <mx:HBox width="100%" height="95%"> <mx:Panel width="15%" height="100%" title="Category" > <mx:DataGrid id="cateGrid" width="100%" height="100%" verticalGridLines="false" textRollOverColor="#996633" borderStyle="outset"> <mx:columns> <mx:DataGridColumn headerText="Category Results" dataField="categoryName"/> </mx:columns> </mx:DataGrid> </mx:Panel> <mx:ViewStack id="myViewstack" width="70%" height="100%"> <mx:Panel id="category1" title="Search Results"> </mx:Panel> </mx:ViewStack> <mx:VBox width="15%" height="100%"> <mx:Panel id="fb" title="FaceBook" width="100%" height="30%" click="currentState='One'"> <mx:Label text="FaceBook" textDecoration="underline" buttonMode="true" useHandCursor="true" mouseChildren="false" click="callFaceBookPage();"/> </mx:Panel> <mx:Panel id="wiki" title="Wiki Page" width="100%" height="30%" click="currentState='Two'"> <mx:Label text="eDeewan Wiki Page" textDecoration="underline" buttonMode="true" useHandCursor="true" mouseChildren="false" click="callEdWikiPage();"/> </mx:Panel> <mx:Panel id="news" title="News" width="100%" height="40%" > <mx:Label text="CNN News" textDecoration="underline" buttonMode="true" useHandCursor="true" mouseChildren="false" click="callCNNNews();"/> <mx:Label text="BBC News" textDecoration="underline" buttonMode="true" useHandCursor="true" mouseChildren="false" click="callBBCNews();"/> <mx:Label text="Yahoo News" textDecoration="underline" buttonMode="true" useHandCursor="true" mouseChildren="false" click="callYahooNews();"/> <mx:Label text="MSN News" textDecoration="underline" buttonMode="true" useHandCursor="true" mouseChildren="false" click="callMSNNews()"/> </mx:Panel> </mx:VBox> </mx:HBox> </mx:VBox> </mx:Application> --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to flex_india@googlegroups.com To unsubscribe from this group, send email to flex_india+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---