dcsimg
A Flash Developer Resource Site

Results 1 to 2 of 2

Thread: Error opening url

  1. #1
    Junior Member
    Join Date
    Oct 2005
    Location
    Cupertino
    Posts
    4

    Error opening url

    I'm doing a tutorial from Flash MX 2004 actionscript where you input a choice then when it is submitted an asp file matches the choice with something from a db and returns some instructions based on the choice.

    Problem is I keep getting an 'Error opening url' message and the asp file never gets started. I'm using IIS, the asp file is in the correct directory and I can open it through the server by itself.

    I'm using the following code to call it from the flash file

    function submitChoice() {
    var choice:Number = radioGroup.selectedData;
    poll.load(pollURL + "?choice=" + choice);
    gotoAndStop("Waiting");
    }

    If the code is just like above, I get the error message. If I remove the choice attributes and use just poll.load(pollURL); I don't get an error but it doesn't seem to open the file either.

    I don't know where else to check at this point. Any suggestions?

    Thanks!

  2. #2
    Moderator whispers's Avatar
    Join Date
    Mar 2001
    Location
    CFA2h (respect the HEX)
    Posts
    12,755
    can you try to trim it down..and do a loadVariables();? and then trouble it shoot from there? just to see if you are targeting correctly..

    permissions all OK?

    also try adding _root to some of your paths where you might be "missing" grabbing data from variables.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center