Ask a Question related to Coldfusion Flash Integration, Design and Development.
-
lvbao #1
CF pass variables to Flash
Hello:
Basically I want Coldfusion to pass the server date to Flash. But I get
'#theDt#' instead of the value of 'theDt' please see the code below:
Thank you in advance.
************************************************
theDate.cfm
<cfsetting enableCFoutputOnly="Yes">
<cfset theDt = dateFormat(now(), 'mm-dd-yyyy')>
<cfoutput>
&serverDate=#theDt#
</cfoutput>
************************************************** ***************
var my_lv:LoadVars = new LoadVars();
my_lv.onLoad = function(success:Boolean) {
if(success) {
theDate.text = my_lv.serverDate;
//theDate.text = this['serverDate'];
//theDate.text = this.serverDate;
} else {
var localDate:Date = new Date();
theDate.text =
(localDate.getMonth()+1)+"/"+localDate.getDate()+"/"+localDate.getFullYear();
}
}
my_lv.load("C:\\CFusionMX7\\wwwroot\\OC\\theDate.c fm");
************************************************** *************
lvbao Guest
-
How to pass variables from JavaScript to Flex
Dear Flex comunity, Is there anyone who knows why isn't this code working? --FLEX 3-- <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"... -
Interesting Pass Variables to Flash
What I am attempting to do in a whole is to create swf files that will be drawn from several premaid swf's, alls I want to do is change the data... -
pass variables when execute a Dir movie
Hello, I'd like to know if it's possible to initialize a Director movie from othe application (for example C++Builder) passing it already some... -
Can one pass variables through a selector?
In article <clund-50F2A4.12443709092003@amstwist00.chello.com>, C Lund wrote: Yes - either use an NSInvocation to perform the call, or call... -
IS it better to use session variables or pass a URL variable
Yes, I am sure the answer starts with - It depends... Well, I am trying to get a person's name from one page to the next. The name will obviously... -
BKBK #2
Re: CF pass variables to Flash
I think it doesn't work because the flash variable serverDate is not known to Coldfusion and the Coldfusion variable serverDate is not known to Flash.
BKBK Guest
-
Sojovi #3
Re: CF pass variables to Flash
my_lv.load("C:\\CFusionMX7\\wwwroot\\OC\\theDate.c fm");
You are not "executing" a CF page, just reading the content.
The route should be something like (if you are testing in your machine) :
my_lv.load("http://127.0.0.1//OC//theDate.cfm"); or the URL corresponding (and
the webserver must be configured to execute CF pages)
Regards
Sojovi Guest
-
BKBK #4
Re: CF pass variables to Flash
Solved it? If not, think of [url]http://livedocs.macromedia.com/coldfusion/7/htmldocs/00000654.htm[/url]
BKBK Guest
-
lvbao #5
Re: CF pass variables to Flash
Yep, it works. Thank you Sojovi, BKBK for your answer.
lvbao Guest



Reply With Quote

