Have you checked out HTTPService?  That’d probably be easiest.

 

<mx:HTTPService id=”hs” url="">

  <mx:request>

    <username>{username.text}</username>

    <password>{password.text}</password>

  </mx:request>

</mx:HTTPService>

 

<mx:TextInput id=”username” />

<mx:TextInput id=”password” />

 

<mx:Button click=”hs.send()” />

 

HTH,

Matt

 


From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of pixelcowboys
Sent: Thursday, May 19, 2005 2:09 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] HTML form replacement

 

This is probably a basic question for most of you, but I'll ask
anyway. What is the best method for simply replacing an existing HTML login form with a
Flex one?

I'm currently trying getURL on the submit action (but with no luck):

function submitLogin():Void {
   var username:String = "";
   var password:String = "";
   getURL("theURL","_self","POST");      
}

The text input ID's are "username" and "password". Any help/tips appreciated. Thanks!





Yahoo! Groups Links

Reply via email to