Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Sending VALUES of CF variables thru FlashVars

2 views
Skip to first unread message

AlexVed

unread,
Nov 28, 2008, 12:56:10 PM11/28/08
to
Hey There!

I am testing a simple application where I am trying to send back to flash
(AS3) some variable values from coldfusion. It works just fine when I assign
the value in CF "by hands" i.e.

<cfsetting enablecfoutputonly="YES">
<cfset Return = "&Numbers=456&">
<cfprocessingdirective suppresswhitespace="Yes">
<cfoutput>
#Return #
</cfoutput>
</cfprocessingdirective>

Then flash accepts the value of variable Numbers of 456.

Now I ran into a problem, when I need instead of steady 456 pass the
VALUE of CF variable. I was trying the following way:

<cfsetting enablecfoutputonly="YES">
<cfset x = 123>
<cfset Return = "&Balls=&">
<cfprocessingdirective suppresswhitespace="Yes">
<cfoutput>
#Return#=#x#
</cfoutput>
</cfprocessingdirective>

In this case I receive no value in flash assigned to Balls ;(

Can anyone please let me know that is the proper way to pass VALUES of CF
variables using flashvars?
Or maybe you know where to find a tutorial showing how that was done.

Thank you

AlexVed

unread,
Nov 28, 2008, 1:11:18 PM11/28/08
to
The same happens when I do it this way:

<cfsetting enablecfoutputonly="YES">
<cfset x = 123>

<cfprocessingdirective suppresswhitespace="Yes">
<cfoutput>
Balls=#Tostring(x)#
</cfoutput>
</cfprocessingdirective>


BKBK

unread,
Dec 7, 2008, 9:22:49 AM12/7/08
to
I don't know what you're trying to do. However, since the Numbers example
works, here are the respective versions that are similar to it:

<cfset Return = "&Balls=">
<cfprocessingdirective suppresswhitespace="Yes">
<cfoutput>
#Return##x#&
</cfoutput>
</cfprocessingdirective>

<cfprocessingdirective suppresswhitespace="Yes">
<cfoutput>
&Balls=#Tostring(x)#&
</cfoutput>
</cfprocessingdirective>

gamal lydian

unread,
Jan 5, 2009, 12:46:01 PM1/5/09
to
flash adobe sofeware
0 new messages