Groups | Blog | Home
all groups > coldfusion flash integration > february 2006 >

coldfusion flash integration : CFXML and Flash


PPounder
2/6/2006 12:00:00 AM
Hi folks,

I am trying to connect my database with Flash via Coldfusion 7. Is it possible
for CF to create the XML using CFXML and then pass this over to Flash without
using Flash Remoting.

I know Flash can read in XML without having a file with .xml extension so this
could work using a .cfm extension, but just not sure whether it can read it on
the fly without Remoting.

If not, how can I do this?

Your suggestions are much appreciated.

Regards

Paul Pounder
PPounder
2/7/2006 12:00:00 AM
I'll answer this one myself :D for anyone else interested

I just set up a cfquery outputted this via CFXML wrapped round the relevant
XML tags and loaded this in via XML class in Flash. You must cfoutput the xml
variable on the cfm page, so flash can pick up the xml

As long as you load the .cfm page in the action script as below, the world is
your oyster.

var myXML = new XML();
mfContent.ignoreWhite = true;
myXML.load("http://yourserver.com/yourcfmpage.cfm")
myXML.onLoad = ......etc etc
AddThis Social Bookmark Button