1 Reply Latest reply on Dec 11, 2007 9:47 AM by Bob Pierce

    script for the button

    ndippy
      Hi everyone.
      i hav the given script like this for thebutton

      on(press)
      {
      var count:Number; //_global count=5;
      if(count==0)
      {
      count=count+1;
      gotoAndStop(5);
      unloadMovieNum(2);
      unloadMovieNum(4);
      unloadMovieNum(6);
      unloadMovieNum(8);
      unloadMovieNum(10);
      unloadMovieNum(12);
      unloadMovieNum(14);
      unloadMovieNum(16);
      unloadMovieNum(18);
      unloadMovieNum(20);
      unloadMovieNum(22);
      unloadMovieNum(24);
      unloadMovieNum(26);
      unloadMovieNum(28);
      unloadMovieNum(30);
      unloadMovieNum(32);
      unloadMovieNum(34);
      unloadMovieNum(36);
      unloadMovieNum(38);
      unloadMovieNum(40);
      loadMovieNum("fig21.swf",2);
      loadMovieNum("fig22.swf",4);
      loadMovieNum("fig23.swf",6);
      loadMovieNum("fig24.swf",8);
      loadMovieNum("fig25.swf",10);
      loadMovieNum("fig26.swf",12);
      loadMovieNum("fig27.swf",14);
      loadMovieNum("fig28.swf",16);
      loadMovieNum("fig29.swf",18);
      loadMovieNum("fig30.swf",20);
      loadMovieNum("fig31.swf",22);
      loadMovieNum("fig32.swf",24);
      loadMovieNum("fig33.swf",26);
      loadMovieNum("fig34.swf",28);
      loadMovieNum("fig35.swf",30);
      loadMovieNum("fig36.swf",32);
      loadMovieNum("fig37.swf",34);
      loadMovieNum("fig38.swf",36);
      loadMovieNum("fig39.swf",38);
      loadMovieNum("fig40.swf",40);

      }
      else{

      gotoAndStop(5);
      unloadMovieNum(2);
      unloadMovieNum(4);
      unloadMovieNum(6);
      unloadMovieNum(8);
      unloadMovieNum(10);
      unloadMovieNum(12);
      unloadMovieNum(14);
      unloadMovieNum(16);
      unloadMovieNum(18);
      unloadMovieNum(20);
      unloadMovieNum(22);
      unloadMovieNum(24);
      unloadMovieNum(26);
      unloadMovieNum(28);
      unloadMovieNum(30);
      unloadMovieNum(32);
      unloadMovieNum(34);
      unloadMovieNum(36);
      unloadMovieNum(38);
      unloadMovieNum(40);
      loadMovieNum("fig41.swf",2);
      loadMovieNum("fig42.swf",4);
      loadMovieNum("fig43.swf",6);
      loadMovieNum("fig44.swf",8);
      loadMovieNum("fig45.swf",10);
      loadMovieNum("fig46.swf",12);
      loadMovieNum("fig47.swf",14);
      loadMovieNum("fig48.swf",16);
      loadMovieNum("fig49.swf",18);
      loadMovieNum("fig50.swf",20);
      loadMovieNum("fig51.swf",22);
      loadMovieNum("fig52.swf",24);
      loadMovieNum("fig53.swf",26);
      loadMovieNum("fig54.swf",28);
      loadMovieNum("fig55.swf",30);
      loadMovieNum("fig56.swf",32);
      loadMovieNum("fig57.swf",34);
      loadMovieNum("fig58.swf",36);
      loadMovieNum("fig59.swf",38);
      loadMovieNum("fig60.swf",40);

      }

      }

      when i given this , i was displayed with fig41 to fig 60.
      and the fig21 to fig 40 are not diplaying.
      my idea is to display 21 to 40 movies for the firsttime when i clicked on the button.
      if i clicked on the same button for the second time it should be diplayed with 41 to 60 movies.
      but i can get that with the help of the above script.
      can anyone please modify it. i need it urgently
      thank you.