# Flash Remoting - Returning Multiple Values

**URL:** <https://forum.kirupa.com/t/flash-remoting-returning-multiple-values/199983>\
**Category:** flash\
**Created:** [September 7, 2006, 7:16pm UTC](https://forum.kirupa.com/t/flash-remoting-returning-multiple-values/199983 "2006-09-07T19:16:19Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![garebear](https://avatars.discourse-cdn.com/v4/letter/g/b782af/32.png) [@garebear](https://forum.kirupa.com/u/garebear)\
**Post date:** [September 7, 2006, 7:16pm UTC](https://forum.kirupa.com/t/flash-remoting-returning-multiple-values/199983/1 "2006-09-07T19:16:19Z")

</div>

I have been successful at returning one variable to Flash from Coldfusion. I want to be able to return two and have been unsuccessful at this point.

The working code (for one variable) follows:

\<!-- COLDFUSION --\>  
\<cfset FLASH.result = “#qTestName.testName#”\>

//------FLASH  
output.text = "You have successfully passed the " + result;

I have the Macromedia Coldfusion MX7 Web Application Construction Kit right in front of me. It says to switch the code in COLDFUSION to:

\<cfset FLASH.result.testName = “#qTestName.testName#”\>  
\<cfset FLASH.result.primaryKey = “#qPrimaryKey.primaryKey#”\>

and to switch the code in FLASH to:

output.text = "You have successfully passed the " + result.TestName + ", " + result. PrimaryKey;

This isn’t working… I get in my text box "You have successfully passed the undefined, undefined

I am doing exactly what the book says to do and it still isn’t working. Does anyone see what I am doing wrong?

-Gary
