Groups | Blog | Home
all groups > coldfusion flash integration > august 2005 >

coldfusion flash integration : Get ID?



Samall
8/23/2005 6:36:06 AM
Hello,
I have create a simple flashmovie which get data when you set an ID number.
In my outputdata.cfm I have this query:

SELECT *
FROM TABLE
WHERE ID = 2

That is working fine!!

What I want is:
SELECT *
FROM TABLE
WHERE ID = #url.idnumber#

But where must I set the url.idnumber??
endymion96
8/24/2005 6:12:53 PM
You probably need to use the FORM scope. URL scope means it comes in through the querystring of the URL address as a key/value pair.

Samall
8/27/2005 8:11:32 PM
But it is not comming from a form. It is for a ecard application. Users receive
an email with the url and the idcard to get the card (IE.
ecard.cfm?card_id=10). My question is: how do I load the card_id in my flash
application.

Thanks!
PaulH
8/27/2005 8:43:55 PM
JadeBlue
8/29/2005 10:13:56 PM
You can pass any variable to your flash movie via flashvars and they will be
available in the root.
Check this technote
http://www.macromedia.com/cfusion/knowledgebase/index.cfm?id=tn_16417

The other way is to send the variables via query string:
<PARAM NAME=movie VALUE="mymovie.swf?myvar=myvalue">
<EMBED src="mymovie.swf?myvar=myvalue" etc...>
AddThis Social Bookmark Button