Professional Web Applications Themes

works fine on windows, not on LINUX/UNIX systems - Macromedia Flash Data Integration

Hello, The first scene (start) pulls in an XML file and does a test on it to see whether the data is valid. If it is, it moves to the next scene (ongoing). The problem is that on UNIX systems, for Firefox and Mozilla browsers, it will not move past the "start" scene. It works fine in a variety of browsers on XP. The applet is the "live data applet" seen on the top right of the homepage on this oceanography site: [url]http://www.venus.uvic.ca[/url] Here is the code for the first scene (second scene follows) function myLoad () { /* the ...

  1. #1

    Default works fine on windows, not on LINUX/UNIX systems

    Hello,
    The first scene (start) pulls in an XML file and does a test on it to see
    whether the data is valid. If it is, it moves to the next scene (ongoing). The
    problem is that on UNIX systems, for Firefox and Mozilla browsers, it will not
    move past the "start" scene. It works fine in a variety of browsers on XP.

    The applet is the "live data applet" seen on the top right of the homepage on
    this oceanography site: [url]http://www.venus.uvic.ca[/url]

    Here is the code for the first scene (second scene follows)


    function myLoad () {
    /* the next for loop finds the node named sample_sets and then finds the
    number of samples*/

    if (this.firstChild.childNodes.nodeName == "values") {
    the_values=this.firstChild.childNodes;
    if (the_values.childNodes.childNodes.nodeName=="dt_sp sd"){
    var istempvalid:String;
    istempvalid =
    the_values.childNodes.childNodes.nextSibling.nextS ibling.firstChild.nodeValue;
    if(pInt(istempvalid) == 1) {
    temp_time = the_values.childNodes.childNodes.firstChild;
    temp_corr = the_values.childNodes.childNodes.nextSibling.first Child;
    dp_time = the_values.childNodes.childNodes.firstChild;
    dp_corr = the_values.childNodes.childNodes.nextSibling.first Child;
    gotoAndPlay("ongoing",1);
    } else {
    gotoAndPlay(1);
    }
    }
    if (the_values.childNodes.childNodes.nodeName=="dt_sp sd"){
    var ispressvalid:String;
    ispressvalid =
    the_values.childNodes.childNodes.nextSibling.nextS ibling.firstChild.nodeValue;
    if(pInt(ispressvalid) == 1){
    gotoAndPlay("ongoing",1);
    } else {
    gotoAndPlay("start",1);
    }
    }
    }
    }


    mydataXML = new XML();
    mydataXML.ignoreWhite=true;

    mydataXML.load("http://arc1.neptune.uvic.ca/xml_drop/webfeed.xml?unique="+getTim
    er());
    //mydataXML.load("http://localhost/xml/webfeed.xml?unique="+getTimer());
    mydataXML.onLoad = myLoad;
    mydataXML.toString();



    Second scene ("ongoing")


    function myLoad () {
    /* the next for loop finds the node named sample_sets and then finds the
    number of samples*/

    if (this.firstChild.childNodes.nodeName == "values") {
    the_values=this.firstChild.childNodes;
    if (the_values.childNodes.childNodes.nodeName=="dt_sp sd"){
    var istempvalid:String;
    istempvalid =
    the_values.childNodes.childNodes.nextSibling.nextS ibling.firstChild.nodeValue;

    if(pInt(istempvalid) == 0) {
    gotoAndPlay("ongoing",1);
    } else {
    temp_time = the_values.childNodes.childNodes.firstChild;
    temp_corr = the_values.childNodes.childNodes.nextSibling.first Child;
    }
    }
    if (the_values.childNodes.childNodes.nodeName=="dt_sp sd"){
    var ispressvalid:String;
    ispressvalid =
    the_values.childNodes.childNodes.nextSibling.nextS ibling.firstChild.nodeValue;
    if(pInt(ispressvalid) == 0) {
    gotoAndPlay("ongoing",1);
    } else{
    dp_time = the_values.childNodes.childNodes.firstChild;
    dp_corr = the_values.childNodes.childNodes.nextSibling.first Child;
    }
    }
    }
    }


    mydataXML = new XML();
    mydataXML.ignoreWhite=true;

    mydataXML.load("http://arc1.neptune.uvic.ca/xml_drop/webfeed.xml?unique="+getTim
    er());
    //mydataXML.load("http://localhost/xml/webfeed.xml?unique="+getTimer());
    mydataXML.onLoad = myLoad;
    mydataXML.toString();

    Scene

    sciweb$$$ Guest

  2. #2

    Default Re: works fine on windows, not on LINUX/UNIX systems

    1. The onLoad handler myLoad probably needs the argument
    myLoad(success)
    2. You want to trace success in the onLoad handler.
    [url]http://livedocs.macromedia.com/flash/8/main/00002876.html[/url] Will tell you if
    something was returned.
    3. You want to trace mydataXML in the onLoad handler.
    4. You want to trace status property for xml in the onLoad handler:
    [url]http://livedocs.macromedia.com/flash/8/main/00002880.html[/url]
    5. Since the load method calls the onLoad handler, it is better to make the
    reference to your function before you call load.
    mydataXML.onLoad = myLoad;
    mydataXML.load("http://arc1.neptune.uvic.ca/xml_drop/webfeed.xml?unique="+getTim
    er());

    If you need to see the traces live over the network, I usually create a
    TextArea component in a place out of the way of the UI and put the messages
    I would put in trace into that.


    --
    Lon Hosford
    [url]www.lonhosford.com[/url]
    May many happy bits flow your way!
    "sciweb$$$" <webforumsusermacromedia.com> wrote in message
    news:dul13e$9jn$1forums.macromedia.com...
    Hello,
    The first scene (start) pulls in an XML file and does a test on it to see
    whether the data is valid. If it is, it moves to the next scene (ongoing).
    The
    problem is that on UNIX systems, for Firefox and Mozilla browsers, it will
    not
    move past the "start" scene. It works fine in a variety of browsers on XP.

    The applet is the "live data applet" seen on the top right of the homepage
    on
    this oceanography site: [url]http://www.venus.uvic.ca[/url]

    Here is the code for the first scene (second scene follows)


    function myLoad () {
    /* the next for loop finds the node named sample_sets and then finds the
    number of samples*/

    if (this.firstChild.childNodes.nodeName == "values") {
    the_values=this.firstChild.childNodes;
    if (the_values.childNodes.childNodes.nodeName=="dt_sp sd"){
    var istempvalid:String;
    istempvalid =
    the_values.childNodes.childNodes.nextSibling.nextS ibling.firstChild.nodeValue;
    if(pInt(istempvalid) == 1) {
    temp_time = the_values.childNodes.childNodes.firstChild;
    temp_corr = the_values.childNodes.childNodes.nextSibling.first Child;
    dp_time = the_values.childNodes.childNodes.firstChild;
    dp_corr = the_values.childNodes.childNodes.nextSibling.first Child;
    gotoAndPlay("ongoing",1);
    } else {
    gotoAndPlay(1);
    }
    }
    if (the_values.childNodes.childNodes.nodeName=="dt_sp sd"){
    var ispressvalid:String;
    ispressvalid =
    the_values.childNodes.childNodes.nextSibling.nextS ibling.firstChild.nodeValue;
    if(pInt(ispressvalid) == 1){
    gotoAndPlay("ongoing",1);
    } else {
    gotoAndPlay("start",1);
    }
    }
    }
    }


    mydataXML = new XML();
    mydataXML.ignoreWhite=true;

    mydataXML.load("http://arc1.neptune.uvic.ca/xml_drop/webfeed.xml?unique="+getTim
    er());
    //mydataXML.load("http://localhost/xml/webfeed.xml?unique="+getTimer());
    mydataXML.onLoad = myLoad;
    mydataXML.toString();



    Second scene ("ongoing")


    function myLoad () {
    /* the next for loop finds the node named sample_sets and then finds the
    number of samples*/

    if (this.firstChild.childNodes.nodeName == "values") {
    the_values=this.firstChild.childNodes;
    if (the_values.childNodes.childNodes.nodeName=="dt_sp sd"){
    var istempvalid:String;
    istempvalid =
    the_values.childNodes.childNodes.nextSibling.nextS ibling.firstChild.nodeValue;

    if(pInt(istempvalid) == 0) {
    gotoAndPlay("ongoing",1);
    } else {
    temp_time = the_values.childNodes.childNodes.firstChild;
    temp_corr = the_values.childNodes.childNodes.nextSibling.first Child;
    }
    }
    if (the_values.childNodes.childNodes.nodeName=="dt_sp sd"){
    var ispressvalid:String;
    ispressvalid =
    the_values.childNodes.childNodes.nextSibling.nextS ibling.firstChild.nodeValue;
    if(pInt(ispressvalid) == 0) {
    gotoAndPlay("ongoing",1);
    } else{
    dp_time = the_values.childNodes.childNodes.firstChild;
    dp_corr = the_values.childNodes.childNodes.nextSibling.first Child;
    }
    }
    }
    }


    mydataXML = new XML();
    mydataXML.ignoreWhite=true;

    mydataXML.load("http://arc1.neptune.uvic.ca/xml_drop/webfeed.xml?unique="+getTim
    er());
    //mydataXML.load("http://localhost/xml/webfeed.xml?unique="+getTimer());
    mydataXML.onLoad = myLoad;
    mydataXML.toString();

    Scene


    Motion Maker Guest

  3. #3

    Default Re: works fine on windows, not on LINUX/UNIX systems

    Oddly, after not working for more than a day, my movie seems to be working for
    LINUX/UNIX systems. It has been working consistently for XP-based systems. If
    it fails again for *NIX systems I will follow up. Thanks for your response.

    sciweb$$$ Guest

  4. #4

    Default Re: works fine on windows, not on LINUX/UNIX systems

    Maybe you were loading a cached version that was not the final.

    --
    Lon Hosford
    [url]www.lonhosford.com[/url]
    May many happy bits flow your way!
    "sciweb$$$" <webforumsusermacromedia.com> wrote in message
    news:dun3ib$8qg$1forums.macromedia.com...
    Oddly, after not working for more than a day, my movie seems to be working
    for
    LINUX/UNIX systems. It has been working consistently for XP-based systems.
    If
    it fails again for *NIX systems I will follow up. Thanks for your response.


    Motion Maker Guest

Similar Threads

  1. SingleInstance=1 doesn't works fine
    By _iNsAnE_ in forum Macromedia Director Lingo
    Replies: 5
    Last Post: November 3rd, 07:47 PM
  2. ActiveX Control works fine in VB but not in ASP
    By Miguel Guerreiro in forum ASP
    Replies: 0
    Last Post: August 8th, 08:28 PM
  3. HELP: Linux telnet smtp server fails, Works from MS Windows
    By Gonzo in forum Linux Setup, Configuration & Administration
    Replies: 9
    Last Post: July 25th, 09:15 PM
  4. Unix vs Linux/Windows and Mac
    By S.Heenan in forum Windows XP/2000/ME
    Replies: 2
    Last Post: June 30th, 06:02 AM

Bookmarks

Posting Permissions

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

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139