Flash and Filemaker, Using ASP - help neede

Hello all:D,

I’m new to this forum and to Actionscript (and ASP).
I was looking all over for an answer to a problem I have with my flash and filemaker DB integration. I hope someone can help me…:

The main problem - My flash file sits on a different server than my DB - therefore it can’t communicate with it.

My workaround (still incomplete-this is where I need help):
Using ASP file (Server-side proxy method) I managed to write the data into a variable.

Here is the Actionscript (simplified) code:

on (release) {
    xmlFile = "http://filemakerserver/fmi/xml/fmresultset.xml?-db=mydb&-lay=mylay"+name_var+"&-find";
    loadVariables ("proxydb.asp", "", "GET");
}

Here is the ASP code:

<%@ LANGUAGE=VBScript%>
<% 
    Response.Buffer=True 
    Dim MyConnection, TheURL
    
    ' Specifying the URL
    TheURL = Request.Querystring("xmlFile")
    
     Set MyConnection = Server.CreateObject("Microsoft.XMLHTTP")
    ' Connecting to the URL
    MyConnection.Open "GET", TheURL, False
        
    ' Sending and getting data
    MyConnection.Send 
    TheData = MyConnection.responseText

    'Set the appropriate content type
    Response.ContentType = MyConnection.getResponseHeader("Content-Type")
    Response.Write "&myXML="&TheData

    Set MyConnection = Nothing
%>

One of the problems is that there is a short delay until the server loads the XML data into ‘myXML’ variable.

Is there a good way to track live if ‘myXML’ data has changed (from ‘undefined’) and when it does, do “something”?

I tried to work with loadVars but wasn’t sure what I’m suppose to…:eek:

Another problem is that flash is not recognizing the income as an XML object…help…

Any comments will be welcome.

Thank you in advance.

Ethan