7 Replies Latest reply on Apr 28, 2006 5:32 PM by kglad

    i need some help with my code

    Brhaynes75 Level 1
      i've got my sharedobject actionscript working well and good, using the following actionscript:

      function VisitCheck() {
      var myLocalSO = sharedobject.getLocal("visitRecord");
      if (myLocalSO.data.visited == null) {
      myLocalSO.data.visited = 1;
      // your action for first visit here
      trace("open");
      _root.gotoAndPlay("open");
      } else {
      // your action for second and more visit to skip to diff
      // frame on the timeline or whatever you need
      trace("final");
      _root.gotoAndPlay("final");
      }
      }
      VisitCheck();

      but now, after viewing my intro animation ONCE, visitors can never see it again.

      i tested this on my computer, and even after i reset safari/emptied my cache, it still went to the final frame of the animation. is there some way around this?

      any help is greatly appreciated,
      thanks in advance