4 Replies Latest reply on May 20, 2011 11:12 AM by efisher

    AS2 code only works in IE... not other browswers

    efisher

      I have a swf banner that is resident on every page. It loads the first time when the home page is loaded. However, it keeps reloading everytime I change pages. I do not want it to do so. I want it to just continue use of the first swf load.  I used the following code to solve my problem and it works great in IE, but not in Safari, Firefox or Chrome.   Please help me modify or whatever so that the reloading of the swf is stopped in other browsers.

       

      code entered in frame 1 of AS layer

       

      function checkSO() {
      var SO = SharedObject.getLocal("siteSO");
      if (SO.data.visitedAlready != undefined) {
      gotoAndPlay("2");
      }
      else {
      SO.data.visitedAlready = "yes";
      SO.flush();
      }
      }
      checkSO();