I just have a test server setup using IIS to test some flash files. In the main wwwroot directory and put my flash file, the asp file, and the database file. In flash I linked to the asp file (the asp and database files are correct, I got them from a tutorial site) using:
stop();
var pollURL:String = "poll.asp";
//create a loadvars object
var poll:LoadVars = new LoadVars();
function pollLoaded(){
gotoAndStop("Display");
}
poll.onLoad = pollLoaded;
// pick choice of radio buttons and send variable to url
function submitChoice(){
var choice:Number = radioGroup.selectedData;
poll.load(pollURL + "?choice=" + choice);
gotoAndStop("Waiting");
}
//enable the submit button
submit_btn.onRelease = function(){
submitChoice();
}
and I get when i test the file:
Error opening URL "file:///C|/Inetpub/wwwroot/flash%20tutorials/Lesson11/Assets/poll.asp?choice=1"
shouldn’t using “poll.asp” find the asp file in the same location as the flash swf file? Why would it have an error opening it? I checked and script permissions are allowed and I even ran a sample test asp page just to make sure that asp is working and it is. I just don’t get it.
Any help is appreciated
Thanks
Neil