2 Replies Latest reply on Nov 14, 2006 7:53 AM by jjsand28

    Problem Some "on" effects

    jjsand28
      Hello all,

      I'm having a little issue with incorporating FlashVars along with some MC buttons. I'm passing the page name to the flash movie so the bottom stays up and that seems to work. However, when I rollover the same button it moves and I do not understand why so I was hoping you could help

      On my main timeline i am passing the FlashVars "pagename" and this is the script on the first frame of my document.

      var pagename;
      if (pagename == "profile") {
      profile.gotoAndStop("active");
      } else if (pagename == "commercial") {
      commercial.gotoAndStop("active");
      } else if (pagename == "residential") {
      residential.gotoAndStop("active");
      } else if (pagename == "remodel") {
      remodel.gotoAndStop("active");
      } else if (pagename == "testimonials") {
      testimonials.gotoAndStop("active");
      } else if (pagename == "dclinks") {
      dclinks.gotoAndStop("active");
      } else if (pagename == "contact") {
      contact.gotoAndStop("active");
      }

      Then I have a seried of MC buttons to act as the navigation of the site. The way the buttons work is there is a tab that slides up when you hover over it and it slides back down when the mouse moves away from it. Now as I said earlier. The tab is in the up position when a particular page is displayed and that is how it is supposed to work. But when I rollover the MC then it animates and it is not supposed to. Here is the script for one of the buttons.

      onClipEvent (load) {
      profileHit._alpha = 0;
      this.hitArea = "profileHit";
      }
      on (rollOver) {
      if (pagename == "profile") {
      gotoAndStop("active");
      } else {
      gotoAndPlay("over");
      }
      }
      on (rollOut) {
      if (pagename == "profile") {
      gotoAndStop("active")
      } else {
      gotoAndPlay("out");
      }
      }
      on (release) {
      getURL("companyProfile.php");
      }

      Thanks in advance