I'm having some difficulties returning my variables from my CFC to Flex. I did a simple CFM to test the CFC, and the CFC works fine. Here's the CFM:
------------------------------------------------------------------
<cfinvoke
    component="Giving.components.cfgenerated.managers.Auth"
    method="login" 
    returnVariable="Auth" >
    <cfinvokeargument name="email" value=" [EMAIL PROTECTED]" />
    <cfinvokeargument name="password" value="cadaspi" />
</cfinvoke>

<cfoutput>
  userValid = #Auth.userValid# <br>
  userRole = #Auth.userRole#
</cfoutput>
------------------------------------------------------------------

Now in Flex I'm trying to reference the same variables in my login_result function by referencing them as

event.result.userValid  and
event.result.userRole

respectively, yet for some reason each of those is returning to me a NULL value. In the CFM it returns the correct value, not a null. I must be referencing these variables wrong, but haven't been able to find in the docs how I need to reference them.

Anyone have an idea how this needs to be done?
__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to