0 Replies Latest reply on Dec 13, 2006 2:25 PM by sribs

    Coding roll over buttons

    sribs
      Hi. I'm a Flash novice who signed on to develop a website for a client, who fell in love with a dreaded template. So far, all my interactions with the template developer have been a nightmare. So, I hope someone out there can help.

      They are using pretty outdated coding (Flash 4 or 5 typically). The AS is supposed to load a menu with 5 tabs linking to 5 sub pages, and highlight the page you are currently on. On 2 of the pages, the wrong button is highlighted (when you're on page 1, button 4 is highlighted and vice versa). The site is currently housed at www.freewebs.com/shsribs/version 5 if you want to look live.

      Here is the code for page 1. Any suggestions?

      on (rollOver) {
      if (_root.link<>1) {
      this.gotoAndPlay("over");
      _root.l1.gotoAndStop(2);
      }
      }
      on (releaseOutside, rollOut) {
      if (_root.link<>1) {
      this.gotoAndPlay("out");
      _root.l1.gotoAndStop(1);
      }
      }
      on (release) {
      _root.l1.gotoAndStop(2);
      _root.l2.gotoAndStop(1);
      _root.l3.gotoAndStop(1);
      _root.l4.gotoAndStop(1);
      _root.l5.gotoAndStop(1);
      if (_root.link<>1) {
      _root["butt"+_root.link].gotoAndPlay("out");
      _root.link = 1;
      }
      }
      on (release) {
      getURL("index-1.html");
      }

      Thank you so much!!