7 Replies Latest reply on Dec 3, 2009 5:05 PM by kglad

    Need help with links in Flash 8

    cwrightcsm322

      I have 2 button links with the following code in Flash 8. One opens page 7 successfully and the other is supposed to open page 8 but does not.

      Page 8 was created by duplicating page 7 in the library, renaming it page 8, changing the text, and changing the code to call page 8 as shown below.

      I am new to Flash and I don't know what I am doing wrong. Am I supposed to change anything else when duplicating a page????

       

      on (release) {
          if (_root.link<>7) {
              _parent["item"+_root.link].gotoAndPlay("s2");
              _root.link = 7;
              _root.pg = 7;
              _root.pages.pages11.gotoAndStop(7);
              _root.pages.pages22.gotoAndStop(7);
              _root.pages.play();
              }
      }

       

       

      on (release) {
          if (_root.link<>8) {
              _parent["item"+_root.link].gotoAndPlay("s2");
              _root.link = 8;
              _root.pg = 8;
              _root.pages.pages11.gotoAndStop(8);
              _root.pages.pages22.gotoAndStop(8);
              _root.pages.play();
              }
      }