<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3176454744386885015</id><updated>2011-11-27T15:34:10.024-08:00</updated><title type='text'>Flex with Local XML</title><subtitle type='html'>Use local XML with HTTPSERVICE and convert XML record to ArrayCollection.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://binodsumanflex.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3176454744386885015/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://binodsumanflex.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Binod Suman</name><uri>http://www.blogger.com/profile/08999470051156803457</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_NibzplfucnE/Sgxhb5JlZ9I/AAAAAAAAAE8/0YnjL6TWSeE/S220/BinodSoft.jpg'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>6</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3176454744386885015.post-6869181951155915298</id><published>2009-10-21T06:51:00.000-07:00</published><updated>2009-10-21T06:51:00.328-07:00</updated><title type='text'>JSF Tutorial &amp; SEAM Tutorial</title><content type='html'>Please visit my another blog for JSF and Jboss Seam tutoril&lt;br /&gt;&lt;a href="http://binodjsf.blogspot.com/"&gt;http://binodjsf.blogspot.com/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3176454744386885015-6869181951155915298?l=binodsumanflex.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://binodsumanflex.blogspot.com/feeds/6869181951155915298/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://binodsumanflex.blogspot.com/2009/10/jsf-tutorial-seam-tutorial.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3176454744386885015/posts/default/6869181951155915298'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3176454744386885015/posts/default/6869181951155915298'/><link rel='alternate' type='text/html' href='http://binodsumanflex.blogspot.com/2009/10/jsf-tutorial-seam-tutorial.html' title='JSF Tutorial &amp; SEAM Tutorial'/><author><name>Binod Suman</name><uri>http://www.blogger.com/profile/08999470051156803457</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_NibzplfucnE/Sgxhb5JlZ9I/AAAAAAAAAE8/0YnjL6TWSeE/S220/BinodSoft.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3176454744386885015.post-1094529964114268434</id><published>2008-11-24T10:52:00.000-08:00</published><updated>2009-01-21T06:45:12.968-08:00</updated><title type='text'>How to use Local XML for HTTPSERVICE</title><content type='html'>As we know that &lt;?xml:namespace prefix = mx /&gt;&lt;mx:httpservice&gt;used for remote server application. But in case we have local XML file then how we can fetch recored from XML using &lt;?xml:namespace prefix = ms /&gt;&lt;ms:httpservice&gt;&lt;br /&gt;1. First create new project in Adobe Flex Builder 3.&lt;br /&gt;File -&gt; New -&gt; Flext Project give some name (say Binod_ShareTrading) and click on Finish.&lt;br /&gt;2. Paste you local XML into src folder (say addressbookdata.xml)&lt;br /&gt;&lt;br /&gt;&lt;a href="http://4.bp.blogspot.com/_NibzplfucnE/SS2jjU5_McI/AAAAAAAAAAo/jHeNKSCNuH8/s1600-h/addressbookdata.bmp"&gt;&lt;img id="BLOGGER_PHOTO_ID_5273050566023393730" style="FLOAT: left; MARGIN: 0px 10px 10px 0px; WIDTH: 400px; CURSOR: hand; HEIGHT: 250px" alt="" src="http://4.bp.blogspot.com/_NibzplfucnE/SS2jjU5_McI/AAAAAAAAAAo/jHeNKSCNuH8/s400/addressbookdata.bmp" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;3. Right click on Binod_ShareTrading project and click on properties -&gt; Flex Compiler and come to Additional compiler arguments: and put this info&lt;br /&gt;-locale en_US -use-network=false and click on Apply and OK.&lt;br /&gt;Now it will inform to httpserice that do not look on internet for the given XML file.&lt;br /&gt;&lt;br /&gt;4. Now start your code in Binod_ShareTrading.mxml (May be different in your case)&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;?xml version="1.0" encoding="utf-8"?&amp;gt;&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&amp;lt;mx:Application xmlns:mx="&lt;a href="http://www.adobe.com/2006/mxml"&gt;http://www.adobe.com/2006/mxml&lt;/a&gt;" layout="absolute" creationComplete="init();" color="#1A0B3C" themeColor="#FF7E00" cornerRadius="6"&amp;gt;&lt;br /&gt;&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&amp;lt;mx:XML id="employees" source="addressbookdata.xml" /&amp;gt; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&amp;lt;mx:XMLListCollection id="empXMLList" source="{employees.contact}" /&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;mx:Script&amp;gt; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&amp;lt;![CDATA[ &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;import mx.collections.ArrayCollection; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;import mx.controls.Alert; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;import mx.events.ValidationResultEvent; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;import mx.rpc.xml.SimpleXMLDecoder; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;import mx.collections.ArrayCollection; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;import mx.rpc.events.ResultEvent; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;import mx.effects.easing.*; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;[Bindable] &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;public var allEmp:ArrayCollection; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;public var checked:Boolean=false; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;private function addBlurFilter():void { &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;var bf:BlurFilter = new BlurFilter(0,0,0);&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;var myFilters:Array = new Array(); &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;myFilters.push(bf); &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;Login_lbl.filters = myFilters; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;Pass_lbl.filters = myFilters; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;Button_Login.filters = myFilters;&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;loginPanel.filters = myFilters; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;}&lt;br /&gt;public function checkUserAndPassword(name:String,pass:String):Boolean{ &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;for(var i:int=0;i&amp;lt;allEmp.length;i++){ &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;var un:String = allEmp[i].userName; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;var ps:String = allEmp[i].password; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;if((name==un)&amp;amp;&amp;amp;(pass==ps)){&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;//Alert.show("Name :: "+name+" username in database "+un); &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;//Alert.show("Pass :: "+pass+" in database :: "+ps); checked=true; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;} &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;}&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;return checked;&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;} &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;public function validate():void{&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;if (loginValidator.validate().type == ValidationResultEvent.VALID){ &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;if (passwordValidator.validate().type == ValidationResultEvent.VALID){ &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;myservice.send(); &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;} &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;else{ &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;Alert.show("Password can not be blank");&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;} &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;} &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;else{ &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;Alert.show("Login ID can not be blank"); &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;}&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;} &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;public function myfun(event:ResultEvent):void{&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;allEmp = event.result.contacts.contact; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;var check:Boolean = checkUserAndPassword(Login_tx.text,Pass_Tx.text); &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;// Alert.show("Check value :: "+check); &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;if(check)&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;Alert.show("Welcome Mr. "+Login_tx.text); &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;else Alert.show("CHECK USER NAME OR PASSWORD");&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;} &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;//mylabel2.setStyle("showEffect", rotate); &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;//mylabel2.setStyle("hideEffect", fade); &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;public function showuser():void{ &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;if (mygrid.visible==true){ &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;mygrid.visible=false; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;showAllUser.label="Show All User";&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;} &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;else{&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;mygrid.visible=true; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;showAllUser.label="Hide the user Details";&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;}&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;} &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;private function init():void { &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;fx.play([loginPanel,Login_lbl]); &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;//Alert.show("INIT METHOD IS CALLING");&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;mygrid.setStyle("showEffect", rotate); &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;mygrid.setStyle("hideEffect", fadeOut); &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;} &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&amp;lt;/mx:Script&amp;gt; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&amp;lt;mx:Fade id="fade"/&amp;gt; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&amp;lt;mx:Fade id="fx" alphaFrom="0" alphaTo="1" duration="5000" /&amp;gt; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&amp;lt;mx:Fade id="dLinkFadeIn" alphaTo="1.0" alphaFrom="0" duration="100"/&amp;gt; &amp;lt;mx:Fade id="dLinkFadeOut" alphaTo="0.0" alphaFrom="1.0" duration="100"/&amp;gt; &amp;lt;mx:Fade id="fadeOut" duration="1000" alphaFrom="1.0" alphaTo="0.0"/&amp;gt; &amp;lt;mx:Fade id="fadeIn" duration="1000" alphaFrom="0.0" alphaTo="1.0"/&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;mx:Rotate id="rotate" angleFrom="-180" angleTo="0" easingFunction="Elastic.easeInOut" duration="2000" /&amp;gt; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&amp;lt;mx:HTTPService id="myservice" url="addressbookdata.xml" result="myfun(event)"/&amp;gt; &amp;lt;mx:StringValidator id="loginValidator" source="{Login_tx}" property="text" triggerEvent=""/&amp;gt; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&amp;lt;mx:StringValidator id="passwordValidator" source="{Pass_Tx}" property="text" triggerEvent=""/&amp;gt; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&amp;lt;mx:Canvas id="loginCanva"&amp;gt; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&amp;lt;mx:Panel x="33" y="19" width="416" height="260" color="#57D5FF" layout="absolute" id="loginPanel" alpha="0.1" title="Customer Login" hideEffect="{fadeOut}" showEffect="{fadeIn}" creationComplete="addBlurFilter()" themeColor="#FF0048" fontSize="12" cornerRadius="14" fontWeight="bold"&amp;gt; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&amp;lt;mx:Label x="41" y="36" text="Login ID :" id="Login_lbl" hideEffect="{fadeOut}" showEffect="{fadeIn}" creationComplete="addBlurFilter()"/&amp;gt; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&amp;lt;mx:Label x="41" y="77" text="Password : " id="Pass_lbl" hideEffect="{fadeOut}" showEffect="{fadeIn}" creationComplete="addBlurFilter()" /&amp;gt; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&amp;lt;mx:TextInput x="128" y="34" id="Login_tx"/&amp;gt;&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&amp;lt;mx:TextInput x="128" y="75" id="Pass_Tx"/&amp;gt;&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&amp;lt;mx:Button x="93.95" y="123" label="Login Now" id="Button_Login" click="validate();" hideEffect="{fadeOut}" showEffect="{fadeIn}" creationComplete="addBlurFilter()" width="242.57576" height="31.515152" color="#FF6B57"/&amp;gt; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&amp;lt;/mx:Panel&amp;gt; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&amp;lt;/mx:Canvas&amp;gt; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&amp;lt;mx:DataGrid id="mygrid" x="485" y="119" width="600" dataProvider="{employees.contact}" visible="false"&amp;gt; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&amp;lt;mx:columns&amp;gt; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&amp;lt;mx:DataGridColumn headerText="UserName " dataField="userName"/&amp;gt; &amp;lt;mx:DataGridColumn headerText="Location" dataField="location"/&amp;gt; &amp;lt;mx:DataGridColumn headerText="Email" dataField="email"/&amp;gt; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&amp;lt;/mx:columns&amp;gt; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&amp;lt;/mx:DataGrid&amp;gt; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&amp;lt;mx:Button x="485" y="72" id="showAllUser" label="Show All User" click="showuser();"/&amp;gt; &lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&amp;lt;/mx:Application&amp;gt;&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;br /&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&lt;mx:stringvalidator id="loginValidator" triggerevent="" property="text" source="{Login_tx}"&gt;&lt;br /&gt;&lt;strong&gt;&lt;span style="color:#990000;"&gt;IMP&lt;/span&gt; :&lt;/strong&gt; &lt;span style="color:#990000;"&gt;Here in the above code you can also find the conversation between XML file to ArrayCollection.&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/mx:stringvalidator&gt;&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&lt;mx:stringvalidator id="loginValidator" triggerevent="" property="text" source="{Login_tx}"&gt;&lt;/mx:stringvalidator&gt;&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&lt;mx:stringvalidator id="loginValidator" triggerevent="" property="text" source="{Login_tx}"&gt;&lt;/mx:stringvalidator&gt;&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&lt;mx:stringvalidator id="loginValidator" triggerevent="" property="text" source="{Login_tx}"&gt;&lt;/mx:stringvalidator&gt;&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&lt;mx:stringvalidator id="loginValidator" triggerevent="" property="text" source="{Login_tx}"&gt;&lt;/mx:stringvalidator&gt;&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;mx:httpservice&gt;&lt;ms:httpservice&gt;&lt;mx:stringvalidator id="loginValidator" triggerevent="" property="text" source="{Login_tx}"&gt;&lt;/mx:stringvalidator&gt;&lt;/ms:httpservice&gt;&lt;/mx:httpservice&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3176454744386885015-1094529964114268434?l=binodsumanflex.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://binodsumanflex.blogspot.com/feeds/1094529964114268434/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://binodsumanflex.blogspot.com/2008/11/how-to-use-local-xml-for-httpservice.html#comment-form' title='3 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3176454744386885015/posts/default/1094529964114268434'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3176454744386885015/posts/default/1094529964114268434'/><link rel='alternate' type='text/html' href='http://binodsumanflex.blogspot.com/2008/11/how-to-use-local-xml-for-httpservice.html' title='How to use Local XML for HTTPSERVICE'/><author><name>Binod Suman</name><uri>http://www.blogger.com/profile/08999470051156803457</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_NibzplfucnE/Sgxhb5JlZ9I/AAAAAAAAAE8/0YnjL6TWSeE/S220/BinodSoft.jpg'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://4.bp.blogspot.com/_NibzplfucnE/SS2jjU5_McI/AAAAAAAAAAo/jHeNKSCNuH8/s72-c/addressbookdata.bmp' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3176454744386885015.post-608021180478042152</id><published>2008-11-23T21:04:00.000-08:00</published><updated>2008-11-26T21:05:58.037-08:00</updated><title type='text'>ABOUT HSQLDB AND HOW TO SET UP FOR YOUR PROJECT</title><content type='html'>I have post for this title in my another blog : &lt;a href="http://binodsuman.blogspot.com/"&gt;http://binodsuman.blogspot.com/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3176454744386885015-608021180478042152?l=binodsumanflex.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://binodsumanflex.blogspot.com/feeds/608021180478042152/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://binodsumanflex.blogspot.com/2008/11/about-hsqldb-and-how-to-set-up-for-your.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3176454744386885015/posts/default/608021180478042152'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3176454744386885015/posts/default/608021180478042152'/><link rel='alternate' type='text/html' href='http://binodsumanflex.blogspot.com/2008/11/about-hsqldb-and-how-to-set-up-for-your.html' title='ABOUT HSQLDB AND HOW TO SET UP FOR YOUR PROJECT'/><author><name>Binod Suman</name><uri>http://www.blogger.com/profile/08999470051156803457</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_NibzplfucnE/Sgxhb5JlZ9I/AAAAAAAAAE8/0YnjL6TWSeE/S220/BinodSoft.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3176454744386885015.post-1807147615722994757</id><published>2008-11-23T07:07:00.000-08:00</published><updated>2008-11-29T09:22:07.765-08:00</updated><title type='text'>How to give some effect to your component in FLEX using ACTIONSCRIPT</title><content type='html'>Suppose you have some component in your FLEX application and you want to give effect like during visible=flase it should show fade during visible=true it should rotate.&lt;br /&gt;For example, if you have one datagrid say mygrid&lt;br /&gt;&lt;br /&gt;&lt; id="mygrid" x="485" y="119" width="600" dataprovider="{employees.contact}" visible="false"&gt;&lt;br /&gt;&lt;br /&gt;&amp;lt; mx:columns &amp;gt;&lt;br /&gt;&lt; headertext="UserName " datafield="userName"&gt;&lt;br /&gt;&lt; headertext="Location" datafield="location"&gt;&lt;br /&gt;&lt; headertext="Email" datafield="email"&gt;&lt;br /&gt;&lt; /mx:columns &gt;&lt;br /&gt;&lt; /mx:DataGrid &gt;&lt;br /&gt;&lt;br /&gt;and you want to put the effect then you have write one method&lt;br /&gt;&lt;br /&gt;private function init():void {&lt;br /&gt;mygrid.setStyle("showEffect", rotate);&lt;br /&gt;mygrid.setStyle("hideEffect", fade);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;and obiviously this method should run during application start time, so you have to add this method name with &amp;lt;mx:Application ...... /&amp;gt; like this&lt;br /&gt;&amp;lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" layout="absolute" creationComplete="init();"&amp;gt;&lt;br /&gt;Put these below code outside from &lt; / mx:script &gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;mx:Fade id="fade"/&amp;gt;&lt;br /&gt;&lt;br /&gt;&amp;lt;mx:Fade id="fadeOut" duration="4000" alphaFrom="1.0" alphaTo="0.0"/&amp;gt;&lt;br /&gt;&amp;lt;mx:Rotate id="rotate"&lt;br /&gt;angleFrom="-180"&lt;br /&gt;angleTo="0"&lt;br /&gt;easingFunction="Elastic.easeInOut"&lt;br /&gt;duration="2000" /&amp;gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#cc0000;"&gt;You can also set Face class directly in the function without &amp;lt;mx:Fade id="fade"/&amp;gt; &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;private function init():void {&lt;br /&gt;// Fade effect&lt;br /&gt;fade = new Fade();&lt;br /&gt;// Rotate effect&lt;br /&gt;rotate = new Rotate();&lt;br /&gt;rotate.angleFrom = -180;&lt;br /&gt;rotate.angleTo = 0;&lt;br /&gt;rotate.easingFunction = Elastic.easeInOut;&lt;br /&gt;rotate.duration = 2000;&lt;br /&gt;mygrid.setStyle("showEffect", rotate);&lt;br /&gt;mygrid.setStyle("hideEffect", fade);&lt;br /&gt;}&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;That it !!!!!!!!!!!!!!!!!!!!!!!! :)&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3176454744386885015-1807147615722994757?l=binodsumanflex.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://binodsumanflex.blogspot.com/feeds/1807147615722994757/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://binodsumanflex.blogspot.com/2008/11/how-to-give-some-effect-to-your.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3176454744386885015/posts/default/1807147615722994757'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3176454744386885015/posts/default/1807147615722994757'/><link rel='alternate' type='text/html' href='http://binodsumanflex.blogspot.com/2008/11/how-to-give-some-effect-to-your.html' title='How to give some effect to your component in FLEX using ACTIONSCRIPT'/><author><name>Binod Suman</name><uri>http://www.blogger.com/profile/08999470051156803457</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_NibzplfucnE/Sgxhb5JlZ9I/AAAAAAAAAE8/0YnjL6TWSeE/S220/BinodSoft.jpg'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3176454744386885015.post-8016404066123289359</id><published>2008-11-22T10:42:00.000-08:00</published><updated>2008-11-29T10:45:08.390-08:00</updated><title type='text'>Fed Effect on Label control using ActionScript in FLEX</title><content type='html'>&amp;lt;?xml version="1.0"?&amp;gt;&lt;br /&gt;&amp;lt;mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"&amp;gt;&lt;br /&gt;&amp;lt;mx:Script&amp;gt;&lt;br /&gt;&amp;lt;![CDATA[&lt;br /&gt;import flash.filters.BlurFilter;&lt;br /&gt;private function addFadeToControl():void {&lt;br /&gt;var blurFilter:BlurFilter = new BlurFilter(0,0,0);&lt;br /&gt;var controlFilters:Array = new Array();&lt;br /&gt;controlFilters.push(blurFilter);&lt;br /&gt;hello_lbl.filters = controlFilters;&lt;br /&gt;}&lt;br /&gt;]]&amp;gt;&lt;br /&gt;&amp;lt;/mx:Script&amp;gt;&lt;br /&gt;&amp;lt;mx:Fade id="fadeOut" duration="1000" alphaFrom="1.0" alphaTo="0.0"/&amp;gt;&lt;br /&gt;&amp;lt;mx:Fade id="fadeIn" duration="1000" alphaFrom="0.0" alphaTo="1.0"/&amp;gt;&lt;br /&gt;&amp;lt;mx:Panel title="Fade: Blur Filter" width="95%" height="125" paddingTop="5" paddingLeft="10" paddingRight="10" paddingBottom="5"&amp;gt;&lt;br /&gt;&amp;lt;mx:Label id="hello_lbl" text="Good Morning"&lt;br /&gt;visible="{fed_cb.selected}"&lt;br /&gt;hideEffect="{fadeOut}" showEffect="{fadeIn}"&lt;br /&gt;creationComplete="addFadeToControl()"/&amp;gt;&lt;br /&gt;&amp;lt;mx:CheckBox id="fed_cb" label="visible" selected="true"/&amp;gt;&lt;br /&gt;&amp;lt;/mx:Panel&amp;gt;&lt;br /&gt;&amp;lt;/mx:Application&amp;gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3176454744386885015-8016404066123289359?l=binodsumanflex.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://binodsumanflex.blogspot.com/feeds/8016404066123289359/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://binodsumanflex.blogspot.com/2008/11/fed-effect-on-label-control-using.html#comment-form' title='1 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3176454744386885015/posts/default/8016404066123289359'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3176454744386885015/posts/default/8016404066123289359'/><link rel='alternate' type='text/html' href='http://binodsumanflex.blogspot.com/2008/11/fed-effect-on-label-control-using.html' title='Fed Effect on Label control using ActionScript in FLEX'/><author><name>Binod Suman</name><uri>http://www.blogger.com/profile/08999470051156803457</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_NibzplfucnE/Sgxhb5JlZ9I/AAAAAAAAAE8/0YnjL6TWSeE/S220/BinodSoft.jpg'/></author><thr:total>1</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3176454744386885015.post-1840802650612403438</id><published>2008-11-22T10:41:00.000-08:00</published><updated>2008-12-07T09:15:29.922-08:00</updated><title type='text'>How to show Image on Pop Up Window using Servlet</title><content type='html'>Please visit my another blog for this topic &lt;a href="http://binodservlet.blogspot.com/"&gt;http://binodservlet.blogspot.com/&lt;/a&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3176454744386885015-1840802650612403438?l=binodsumanflex.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://binodsumanflex.blogspot.com/feeds/1840802650612403438/comments/default' title='Post Comments'/><link rel='replies' type='text/html' href='http://binodsumanflex.blogspot.com/2008/11/how-to-show-image-on-pop-up-window.html#comment-form' title='0 Comments'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3176454744386885015/posts/default/1840802650612403438'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3176454744386885015/posts/default/1840802650612403438'/><link rel='alternate' type='text/html' href='http://binodsumanflex.blogspot.com/2008/11/how-to-show-image-on-pop-up-window.html' title='How to show Image on Pop Up Window using Servlet'/><author><name>Binod Suman</name><uri>http://www.blogger.com/profile/08999470051156803457</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://3.bp.blogspot.com/_NibzplfucnE/Sgxhb5JlZ9I/AAAAAAAAAE8/0YnjL6TWSeE/S220/BinodSoft.jpg'/></author><thr:total>0</thr:total></entry></feed>
