Hi Ravi, Thanks for reply I am using the code....below <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" verticalAlign="middle" > <mx:states> <mx:State name="LoggedIn"> <mx:SetProperty target="{panel1}" name="width" value="788"/> <mx:SetProperty target="{panel1}" name="height" value="565"/> <mx:SetProperty target="{panel1}" name="x" value="36"/> <mx:SetProperty target="{panel1}" name="y" value="27"/> <mx:RemoveChild target="{label1}"/> <mx:RemoveChild target="{label2}"/> <mx:RemoveChild target="{username}"/> <mx:RemoveChild target="{password}"/> <mx:SetProperty target="{panel1}" name="title" value="Welcome User"/> <mx:RemoveChild target="{Submit}"/> <mx:AddChild relativeTo="{panel1}" position="lastChild"> <mx:Button x="156" y="41" label="Logout" click="currentState=''"/> </mx:AddChild> </mx:State> </mx:states> <mx:transitions> <mx:Transition id="toDefault" fromState="*" toState="LoggedIn"> <mx:Resize target="{panel1}"/> </mx:Transition> <mx:Transition id="toDefault2" fromState="LoggedIn" toState="*"> <mx:Resize target="{panel1}"/> </mx:Transition> </mx:transitions>
<mx:HTTPService id="login_user" result="checkLogin(event)" fault="loginFault(event)" method="POST" url=" http://localhost/flex/login.php" useProxy="false"> <mx:request xmlns=""> <username>{username.text}</username> <password>{password.text}</password> </mx:request> </mx:HTTPService> <mx:Script> <![CDATA[ import mx.rpc.events.ResultEvent; import mx.rpc.events.FaultEvent; private function checkLogin(evt:ResultEvent):void { if(evt.result.loginsuccess == "yes") { currentState = "LoggedIn"; } if(evt.result.loginsuccess == "no") { mx.controls.Alert.show("Invalid username/password"); } } private function loginFault(evt:FaultEvent):void { mx.controls.Alert.show("Access denied"); } ]]> </mx:Script> <mx:Panel x="218" y="171" width="408" height="282" layout="absolute" title="Login " id="panel1"> <mx:Label x="63" y="58" text="Username" id="label1"/> <mx:Label x="69" y="100" text="Password" id="label2"/> <mx:TextInput id="username" x="159" y="56"/> <mx:TextInput id="password" x="159" y="98" displayAsPassword="true"/> <mx:Button id="Submit" x="159" y="170" label="Submit" click="login_user.send();"/> </mx:Panel> </mx:Application> Can you give me your code On Wed, Oct 15, 2008 at 1:15 PM, ravi <[EMAIL PROTECTED]> wrote: > > I am using Firefox and this is working fine in the same. > > -Ravi > > On Oct 15, 11:54 am, "dhileepen chakravarthy" <[EMAIL PROTECTED]> > wrote: > > Hi everyone > > anybody knows login screen with php > > > > i found one tutorial in this url.it works fine only with IE. > > > > http://www.adobe.com/cfusion/communityengine/index.cfm?event=showdeta... > > > > anyone help me fix the firefox issue > > > > Regards, > > Dhileepen > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Flex India Community" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [EMAIL PROTECTED] For more options, visit this group at http://groups.google.com/group/flex_india?hl=en -~----------~----~----~----~------~----~------~--~---

