Folks:
I?m having an issue with a Flash site we?ve developed.
I have a Flash site that uses Flash Remoting Gateway to connect to a couple of
ColdFusion Components (CFC?s). The CFC returns a query object which is
manipulated and displayed within the Flash movie.
The problem is sometimes the Flash movie doesn?t render the data returned from
the Flash Remoting call. It seems that the connection to the gateway is
working, and that the data is being returned, but I can only assume this?
Sometimes it works and sometimes it doesn?t. See the screenshots below for
examples.
Development URL:
http://visulite.com/sandbox/flash/
Screenshot Working:
http://visulite.com/sandbox/visulite_working_properly.gif
Screenshot Not Working:
http://visulite.com/sandbox/visulite_error_no_data.gif
Pertinent Details:
Flash 8 Professional
ColdFusion Version 7,0,1,116466 on Windows 2003 Server
Can anyone help me out with this? If there?s a developer out there who can
assist me, I would be willing to compensate you for your time?
Thanks!
~Christian N. Abad
ChristianAbad - 01 Feb 2006 22:34 GMT
This issue has been resolved - Thanks!
ChristianAbad - 17 Feb 2006 14:43 GMT
The issues were stemming from the presence or lack of the "www." in the URL.
We found that Flash Remoting was particalr about the URL typed in by the user.
(This seems to relate to what we specified for the connection string in the
ActionScript.)
SOLUTION: We used ColdFusion to detect the CGI.SERVER_NAME and redirect if
necessary:
<cfif CGI.SERVER_NAME DOES NOT CONTAIN "www"><cflocation
url="http://www.mydomain.com#CGI.SCRIPT_NAME#" addtoken="No" /></cfif>