I am trying to get a Flash form to send variables to a Cold Fusion template (.cfm page) to do the backend stuff (sending emails based on variable info, etc)
It seems Cold Fusion tips and topics are very scarce, so if anyone has any helpful information that would be great.
when submitting to the CF template (which would have the CFMAIL tag) from the Flahs movie, do you need to name the variables in the CF template as #URL.VariableName#? I guess the main question was how do the variables get passed to the page - as a string on the end of the URL, or FORM. or something?
You don't need to refer to them as #URL.Variable# - Just make sure you have them between <cfoutput></cfoutput> tags.
For example, i use the following template to get variables into flash using the load variables command:
<cfquery name="get_results" datasource="smartsettest" dbtype="ODBC" username="xxx" password="xxxx">
SELECT
*
FROM question_archive
WHERE question LIKE '#question#'
</cfquery>
And i could use the following template to handle variables coming from flash (with either the get URL command or load variables - as long as make sure that they are sent)
just to clarify though your first example of getting values from a query which then Flash reads with a Load Variables action...What you're basically doing is outputing the values into the template for Flash to read - it comes aloing looking for certain variable names and as long as you've got them between <cfoutput> tages, then all is sweet.
You got the final values in your example set out like a string : &v1=#v1#&v2=#v2#&v3=#v3#&a1=#a1#&a2=#a2#&a3=#a3#&q uestion=#URLEncodedFormat(question)#&. Is this the way Flash separates the values from each other? Or could you just have (for example):
Be very careful with the line breaks - Flash doesn't like whitespace. That's why they are all in on one line, with no breaks.
Also, another little trick is to include the "&" at the beginning and end. This seems to tell flash that variables are being loaded, and the one at the end says that the variables are done.
Also, you'll want to build in some kind of check in flash to make sure all the variables are loaded. I normally put a "loaded=yes" at the end of my string. Then, in flash, i have a couple of frames that check for that variable - if it's there, you can continue with the animation.
great,
I am seriously need to start working with cold fusion cos my bos says he wants to go data base. I have no Idea at all how to deal with this issue. I read somewhere that you can only connect the two with generator.
Where do I start? and how quick can start building data base driven flash site.?
I think I can safely say that I am an itermediat flash user. I still havent finished with actionscripts. I havent touched coldfusion or any backend stuff at all.