Skip to main content
November 9, 2006
Question

please, take a minut

  • November 9, 2006
  • 1 reply
  • 385 views
Hi,

I'm sending vars as querystring to asp, which then with SELECT sentence grabs the right data from DB and creates xml. This XML is then loaded into new swf, which is loaded into MC from the first swf. The problem is that it's working if I don't send vars to asp, but only tell the new loaded swf to load data from asp file (in that case I don't use QS in Select sentence). As soon as I change it and send the vars as QS to asp, the new loaded swf doesn't receives any data. I did try with trace to find if and in what form is send from flash and it gave me this result: programID=1&scene=program so I assume this part is working. It looks to me as the swf is loaded to soon. I don't know. Does anyone know a good tutorial on flash sending vars (not XML) to asp, which creates XML and the flash reads the xml? THX for any help
This topic has been closed for replies.

1 reply

November 9, 2006
Now I'm getting the else part of the script:

my_xml.onLoad = function(success){
if (success){
var program = my_xml.firstChild;
program_content.text = program.firstChild.nodeValue;
trace(this);
} else {
program_content.text = ("not working");
}
}

So it means the onLoad function doesn't perform. Well, it's not a success.How come it's a success if asp creates a xml with fixed QS in a select sentence? What am I doing wrong?
November 9, 2006
is there any difference for flash if i use in asp:

response.ContentType = "text/xml"
sqlProgram ="SELECT subid, title, content, category FROM subparty WHERE subid = 1;"
set rsProgram=oConn.Execute(sqlProgram)
response.write("<?xml version=""1.0"" encoding=""utf-8""?>")
response.write("<content>")
response.write("<![CDATA[ """ & rsProgram("content") & """" & " ]]>")
response.write("</content>")

rsProgram.Close
Set rsProgram= Nothing

or if I use

scene = Request("scene")

if scene = "program" then
programID = Request("programID")

response.ContentType = "text/xml"
sqlProgram ="SELECT subid, title, content, category FROM subparty WHERE subid = " & programID & ";"
set rsProgram=oConn.Execute(sqlProgram)
response.write("<?xml version=""1.0"" encoding=""utf-8""?>")
response.write("<content>")
response.write("<![CDATA[ """ & rsProgram("content") & """" & " ]]>")
response.write("</content>")

rsProgram.Close
Set rsProgram= Nothing
end if

If I use the first script, the xml in flash is working. If I use the second one, I get the unseccess result.