3 Replies Latest reply on Feb 28, 2007 4:11 PM by kglad

    smarter way to load levels

    JoeyJon Level 1
      Briefly, I have four buttons which open new sections on a website in levels. Each .swf has a preloader on it. So each time I press a button it will open that level with the preloader regardless of whether it has previously been opened.
      So I guess what I'm asking is whether I can put an 'if' statement on the button code to get it to skip the preloader and go to frame 3 if that .swf has previously been loaded.
      My current code for one my buttons is very simple...

      on (release) {
      unloadMovieNum(1);
      unloadMovieNum(3);
      unloadMovieNum(4);
      loadMovieNum("attungacontact.swf", 2);
      }