passing asp data to flash
Apologies for cross-posting in ASP and Flash forums, but I'm trying to pass some data from ASP, back to a Flash movie.
I'm aware that by calling LoadVariables() in actionscript , I can get an asp file to write out a querystring that flash will then load.
I can't do that, though, because the asp page itself needs to have something passed to it in the querystring; specifically a database record id number. Obviously I can't put this in a LoadVariables() call as it's gonna change each time the page is loaded.
I was under the impression that I could do this:
Load an asp page that gets the database row id out of the querystring, queries the database as usual, then writes out the Flash embedding html tags:
<PARAM NAME=movie VALUE="flashFile.swf?myVar1=<%=databaseField1%>&myVar2=<%=databaseField2%>">
...which flash will then automatically use to popuplate its variables.
But that doesn't appear to be working; the Flash file hangs in loading. It may well just be a syntax error, but could someone just confirm that it's possible to do what I'm trying to do, and if so where I might be doing it wrong?