0 Replies Latest reply on Aug 7, 2008 6:51 AM by supergrabbit

    Tabbed content

    supergrabbit Level 1
      I found a tabbed content folder on the web (.fla and .swf files), I really love to use it on my website.
      But when I click on the tabs, it does not take me to a web page.
      what would I insert in the code to enable this feature ? (I attached the code using "Attach Code" )
      Please help !
      Amanda Nguyen


      Attach Code

      Stage.showMenu = false;
      stop();
      //
      //
      button1.button_text = "HOME";
      button2.button_text = "PRODUCTS";
      button3.button_text = "SERVICES";
      button4.button_text = "CONTACT";
      //
      // do a loop over the buttons and set the rollover/rollout/click effects
      for (i=1; i<=4; i++) {
      this["button"+i].button_number = i;
      this["button"+i].onRollOver = this["button"+i].onDragOver=function () {
      if (active_button != this.button_number) {
      this.gotoAndStop(2);
      this.my_text_field.textColor = "0x000000";
      }
      };
      this["button"+i].onRollOut = this["button"+i].onDragOut=function () {
      if (active_button != this.button_number) {
      this.gotoAndStop(1);
      this.my_text_field.textColor = "0xCCCCCC";
      }
      };
      this["button"+i].onPress = function() {
      activate_button(this.button_number);
      };
      }
      function activate_button(the_button_number) {
      // go to another page in main file
      gotoAndStop(the_button_number);
      // reset all buttons to default state
      for (i=1; i<=4; i++) {
      this["button"+i].gotoAndStop(1);
      this["button"+i].my_text_field.textColor = "0xCCCCCC";
      }
      // set the given (clicked) button to "active" state
      this["button"+the_button_number].gotoAndStop(3);
      this["button"+the_button_number].my_text_field.textColor = "0x000000";
      active_button = the_button_number;
      }
      // activate button/page 1 by default
      activate_button(1);