Skip to main content
Participating Frequently
September 20, 2006
Question

cfm called dirrect not from http?

  • September 20, 2006
  • 2 replies
  • 247 views
I am working on a little flash app. this app calls a cfm file which generates an xml formated output that flash can then read and do what it needs to with. I ran into a strange problem. When I try to call the cfm file directly from flash it breaks. for example
dirXML.load(dirRead.cfm');
this calls the cfm file which sits in the same directory on the server as does the flash movie this breaks.
dirXML.load(' http://localhost/dirRead.cfm');
however if I call it through http it works fine.
I am pretty new to coldfusion and this is confusing the heck out of me. I have worked with php and never had this problem.
Is there some setting in the coldfusion admin that will allow the first to work? am I doing something wrong? any help would be great
thanx dave
    This topic has been closed for replies.

    2 replies

    dajj123Author
    Participating Frequently
    September 20, 2006
    that was a typo sorry. It still has the same problem. the strange thing is that it returns cf tags. Its reading the file but it seams that coldfusion is not running when it s called direct only if its called through http://... as you can see
    <?xml version="1.0" encoding="iso-8859-1"?><cfsetting enablecfoutputonly="no"><dirTop><cfparam name="url.sort" default="datelastmodified desc" /></dirTop></cfsetting>
    this is the code it returns not the xml it should.
    Inspiring
    September 20, 2006
    i believe this is not CF, but Flash ...
    hang on... is that a single quote after dirRead.cfm in your first call try? where's the starting quote?