Skip to main content
Participant
June 28, 2009
Question

grab variables from coldfusion page with actionscript 3.0

  • June 28, 2009
  • 1 reply
  • 1206 views

how do I access variables on a cfm page with actionscript 3.0. For example. I have a flash page that loads a cfm page. This cfm page queries data from a server like this

<cfoutput query="getThis">

&first_name#currentrow#=#firstName#&last_name#currentrow#=#lastName#

</cfoutput>

How would I grab the first name variable. I am an intermediate flash developer but first name Coldfusion user, any help would be greatly appreciated, thanks

This topic has been closed for replies.

1 reply

ilssac
Inspiring
June 30, 2009

ColdFusion runs on the server.

Flash runs on the client.

These systems do not share the same memory chips.

You need to do something to move data from the server to the client.  You have a lot of choices.

1) You can have ColdFusion dynamically build the flash object tag, encoding data into it.

2) You can have Flash make a http request from the server and get a response.

3) You can have Flash make a 'Flash Remoting' call and get data of an AMF socket layer.  The basis of Flash|Flex|ColdFusion integration.