http://www.b ">

only one load vars not working

  • Hi All,

    I'm going crazy right now because I have a line of code thats not working in one place in my flash, that's working everywhere else in the flash:

    this is what i'm using to load a variable from a cookie:

    ActionScript Code:

    _root.loadVariables("http://www.bagbuilder.net/getsession.php?var="+Math.floor(Math.random()*1000000">http://www.bagbuilder.net/getsession.php?var="+Math.floor(Math.random()*1000000), "GET");






    this is the output of the file "getsession.php"

    sessionid=12345

    i'm trying to call this variable using:


    ActionScript Code:


    var sessionid = _root.sessionid;







    I'm using this code everywhere on the site for different variables i'm pulling in. This is the only time it won't work. I'm really stumped. Anyone have any ideas? I've tried loadVariablesNum and LoadVars. Nothin...


    Thanks,
    Mat


  • I don't know what happened with the above code, but here is the AS


    _root.loadVariables("http://www.bagbuilder.net/getsession.php","GET");



    var sessionid = _root.sessionid;