Home Tutorials Forums Articles Blogs Movies Library Employment Press Buy templates

Go Back   ActionScript.org Forums > Supporting Technologies > Flash Remoting

Reply
 
Thread Tools Rate Thread Display Modes
Old 02-19-2003, 09:00 PM   #1
baigorri
meathead
 
baigorri's Avatar
 
Join Date: Jul 2001
Location: Toronto
Posts: 169
Default flash remoting returning results to flash

Is it possible to return more than one result from a cfm page into flash?

here's a sample of whats on the cfm page

Code:
<cfif loginQuery.recordcount lt 1>
 <cfset flash.result = error>
<cfelse>
  <cfset flash.result = cf_uname>
  <cfset flash.anotherVar = "something">
</cfif>
here's the function that handles the results in flash

Code:
function flashlogin_Result(message) {
trace(message);
trace(anotherVar);
}
anotherVar is undefined when traced.

How do I bring in "anotherVar" into flash as well?

this is probably really simple, and I will slap myself when I get the answer so don't hesitate to answer

Chris
baigorri is offline   Reply With Quote
Old 02-21-2003, 03:00 AM   #2
soc
Registered User
 
Join Date: Oct 2002
Posts: 13
Default

to tell you the truth, i'm new to Flash remoting and haven't even really looked at coldfusion at all but i think the answer is to return an object that has both values.

I don't know what the code for that in coldfusion would be but i'd imagine that this is the corresponding result code:

function flashlogin_Result(message) {
trace(message.var1);
trace(message.var2);
}
soc is offline   Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:36 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Ad Management plugin by RedTyger
Copyright 2000-2009 ActionScript.org. All Rights Reserved.
Your use of this site is subject to our Privacy Policy and Terms of Use.