0 Replies Latest reply on Sep 8, 2007 12:29 PM by MikeSel^

    Need help changing a templates button, code seems to make no sense!

    MikeSel^
      Hello All.

      I am having some problems developing a flash website for a friend who's on a tight budget.
      We downloaded a template and managed to 'rework' it to our needs. However we need to make a button point to a different movie clip! As easy as this may sound it really isn't!

      The template is split into a toolbar like effect, with the main body of the movie being 'dynamic' it seems to load the other movie pages in the middle of the template..

      I have my new movie clip, I just need to make the button load that particular movie clip inside the center of the template..

      This is the code from one of the buttons:

      on (rollOver)
      {
      if (_root.b != 3)
      {
      gotoAndPlay(2);
      } // end if
      }
      on (releaseOutside, rollOut)
      {
      if (_root.b != 3)
      {
      gotoAndPlay(9);
      } // end if
      }
      on (release)
      {play();
      _root.play();
      _root.pa = 108;
      _root.cont.pod3.pagesgal.play();
      if (_root.b != 3 && _root.m != 1)
      {
      _root["b" + _root.b].gotoAndPlay("s2");
      _root.cont.gotoAndPlay("s1");
      _root.cont.cont.gotoAndPlay("diss");
      _root.b = 3;
      } // end if
      }

      I copied this code from another button, so now the two buttons load the same 'page\movie clip'.. Now I need to modify the code to load my particular movie clip..

      You can download the .FLA file from here

      The button I am trying to change is the 'about essdale' button.

      As you can see it simply loads the 'home' page.

      The movie clip I have made is called 'About Essdale' so I need it to load this where the other clips are loaded!

      Thanks