Adobe Dreamweaver Forums



Last 10 THreads :         Dragging components (Last Post : bholli - Replies : 20 - Views : 21 )           »          How do I use a component to display an image? (Last Post : David Stiller - Replies : 5 - Views : 6 )           »          Has CS4 Fixed the _notes Problem? (Last Post : The Real GLSmyth - Replies : 0 - Views : 1 )           »          pasting from Word (Last Post : TSemmes - Replies : 0 - Views : 1 )           »          Browser compatibity (Last Post : DCSPAO - Replies : 0 - Views : 1 )           »          Re: Colour differences on the web (Last Post : Jim_Jordan@adobeforums.com - Replies : 0 - Views : 1 )           »          Importing Word Docs with Images into RH7 (Last Post : Peter Grainge - Replies : 13 - Views : 14 )           »          GUI Query Builder for Users (Last Post : kenji776 - Replies : 7 - Views : 8 )           »          FLV on windows 2003 web server (Last Post : Captiv8r - Replies : 2 - Views : 3 )           »          Changeing the character used for bullets (Last Post : bbiswatching - Replies : 0 - Views : 1 )           »         


Home Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
User Info Statistics
Go Back   Adobe Dreamweaver Forums > Macromedia Software > Cold Fusion > Flash Intergration
 
Tags:



Reply
  #1 (permalink)  
Old 11-28-2008, 06:04 PM
AlexVed
 
Posts: n/a
Diggs:
Default Sending VALUES of CF variables thru FlashVars

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



Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 11-28-2008, 06:15 PM
AlexVed
 
Posts: n/a
Diggs:
Default Re: Sending VALUES of CF variables thru FlashVars

The same happens when I do it this way:

<cfsetting enablecfoutputonly="YES">
<cfset x = 123>
<cfprocessingdirective suppresswhitespace="Yes">
<cfoutput>
Balls=#Tostring(x)#
</cfoutput>
</cfprocessingdirective>


Reply With Quote
  #3 (permalink)  
Old 12-07-2008, 02:26 PM
BKBK
 
Posts: n/a
Diggs:
Default Re: Sending VALUES of CF variables thru FlashVars

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>



Reply With Quote


  #4 (permalink)  
Old 01-05-2009, 05:54 PM
gamal lydian
 
Posts: n/a
Diggs:
Default Re: Sending VALUES of CF variables thru FlashVars

flash adobe sofeware
Reply With Quote
Reply


Thread Tools
Display Modes

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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



© Camley Interactive (camley.info) 2008 - all logos and images are copywrite their respective owners.
Proud member of the Camley Interactive Network
All times are GMT. The time now is 08:11 PM.


Powered by vBulletin® Version 3.6.8
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
Cheap Car Insurance - Compare Motor Insurance
Endsleigh Car Insurance Natwest Car Insurance
More Than Car Insurance Norwich Union Car Insurance
Prudential Car Insurance Zurich Car Insurance
Inactive Reminders By Mished.co.uk