A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: sendAndLoad

  1. #1
    Junior Member
    Join Date
    Jun 2001
    Posts
    3
    Im trying to use sendAndLoad in flash 5. It works fine on my PC, but when I testet it on an other machine it doesnt load the XML... Why ???

    Both pc's have flash 5 installed (5.0.42.0) and IE 5.5

    Here is my flash code:
    ------------------------------------------------------------
    onClipEvent (enterFrame) {
    if (typeof (bMenuLoaded) == "undefined") {
    oSendXML=new xml();
    oSendXML.appendchild(oSendXML.createElement("test" ));
    oLoadXML = new XML();
    oSendXML.sendAndLoad("test.asp", oLoadXML);
    bMenuLoaded = false;
    }
    if (oLoadXML.loaded && bMenuLoaded != true) {
    bMenuLoaded = true;
    delete oSendXML;
    _root.gotoAndPlay(2);
    }
    }
    ------------------------------------------------------------

    On the not working test pc, the second "if" is never enteret, as if the oLoadXML never gets loaded but why?

    Please help.....

  2. #2
    Senior Member
    Join Date
    Feb 2001
    Location
    Provo, Utah
    Posts
    1,112

    Ok...

    How are your computers interacting with this test.asp?? Where is the file located? I'm thinking you migth have security issues....

    Is the FLA located on both of the computers you're testing on?

  3. #3
    Junior Member
    Join Date
    Jun 2001
    Posts
    3
    Both the flash and the test.asp is located on a development server, which the both have acces to.

  4. #4
    Senior Member
    Join Date
    Feb 2001
    Location
    Provo, Utah
    Posts
    1,112

    Ok...

    Where in the process is the second PC actually dying? Can you tell if the second PC is even activating the test.asp?

    Your two test computers aren't in different domains are they?? You don't have domain security issues - do you?

    Have you waited...and waited.... and waited.... for a response from the onLoad handler?? - or just said go and thought it didn't work?

    I'm assuming that your test.asp is some kind of mirror?? It recieves something, and sends it back?? - or does it access a different XML file, and yuo've got problems there?

  5. #5
    Junior Member
    Join Date
    Jun 2001
    Posts
    3
    The second pc sends the xml to test.asp but it doesnt recieve any xml.

    Both computers are on the same domain.

    I have tried waiting for a long time but nothing happens.

    The test.asp is responsibel for both recieving and sending xml-strings.

  6. #6
    Senior Member
    Join Date
    Feb 2001
    Location
    Provo, Utah
    Posts
    1,112

    Well then...

    You've got me.. if the code runs on one PC, and not on another - but the two PC's are doing everything EXACTLY the same... AND have the exact same setup... then I don't know what to tell ya pal...

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