I am working on a simple test user login, and I am having a butt load of trouble with it. When I test the code, it tells me that element usr is undefined in my argument. You can see the file here. Does anyone know of a tutorial using cf? http://70.97.113.6/flex/
Here is my code. CF-- <cffunction name="qpUserLogin" access="remote" hint="from tbl_smartPanel_users" returnType="string" output="false"> <cfargument name="usr" type="string" required="true" /> <cfargument name="pss" type="string" required="true" /> <!-- Query for pulling userinfo based on what was passed from as --> <cfquery name="qpGetLogin" datasource="#application.dsn#"> select * from tbl_smartPanel_userList where fld_userlogin='#argument.usr#' and fld_userpass='#argument.pss#' </cfquery> <cfif qSecurity.recordcount gt 0> <cfset access="T"> <cfelse> <cfset access="F"> </cfif> <cfreturn access /> </cffunction> AS-- // ActionScript Document function qpUserLogin(usr, pss) { srv.qpUserLogin(usr, pss); } Flex-- <?xml version="1.0" encoding="utf-8"?> <mx:Application xmlns:mx="http://www.macromedia.com/2003/mxml"> <mx:WebService id="srv" wsdl="http://70.97.113.6/test/smartPanel.cfc?wsdl"> </mx:WebService> <mx:Script source="login.as" /> <mx:Form> <mx:FormItem label="Username" required="true"> <mx:TextInput id="usr" /> </mx:FormItem> <mx:FormItem label="Password" required="true"> <mx:TextInput id="pss" /> </mx:FormItem> </mx:Form> <mx:ControlBar horizontalAlign="right"> <mx:Button label="Submit" click="qpUserLogin(usr.text, pss.text);" /> </mx:ControlBar> </mx:Application> ------------------------ Yahoo! Groups Sponsor --------------------~--> Get Bzzzy! (real tools to help you find a job). Welcome to the Sweet Life. http://us.click.yahoo.com/A77XvD/vlQLAA/TtwFAA/nhFolB/TM --------------------------------------------------------------------~-> -- Flexcoders Mailing List FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com Yahoo! Groups Links <*> To visit your group on the web, go to: http://groups.yahoo.com/group/flexcoders/ <*> To unsubscribe from this group, send an email to: [EMAIL PROTECTED] <*> Your use of Yahoo! Groups is subject to: http://docs.yahoo.com/info/terms/