1 Reply Latest reply on Nov 28, 2006 8:20 PM by Newsgroup_User

    Drop-down menu

    MertoCerveau Level 1
      Hi,

      I'm a beginner in actionScript...and I need some clues on one of my project..

      I want to make a drop-down menu that will rewind when the mouse is no longer over it...Not just go back to the first frame but really rewind the animation of the menu dropping-down..

      It working pretty well but my problem is with the menu buttons; they are in a movieClip and it looks like they are completly inactives...

      Here is how my FLA is builded:

      The movie clip containing the drop-down menu is on the first frame on Scene 1....Ther is script on this movieClip:

      on (rollOver) {
      this.onEnterFrame = function () {
      delete this.onEnterFrame ;
      this.play(1);
      }
      }


      on (rollOut) {
      this.onEnterFrame = function () {
      var position = this._currentframe - 1 ;
      if (position == 0 ) {
      delete this.onEnterFrame ;
      } else {
      this.gotoAndStop (position) ;
      }
      }
      }


      inside this movieClip there is 4 buttons...the main one (with all the other ones below it) and 3 buttons/menu with motion tween..
      When I export the movie, the Over state of those buttons doesn't show....probably because of the movieClip??

      anyway..on the first frame of this movieClip there is also code for the 3 buttons/menu:

      btn1.onPress = function () {
      getURL(" http://www.google.com", "_self");
      };

      btn2.onPress = function () {
      getURL(" http://www.hotmail.com/", "_self");
      };

      btn3.onPress = function () {
      getURL(" http://www.adobe.com", "_self");
      };

      If anyone as a solution for this or another way to create what I need it would be very helpful...

      thanks!

      (can we post a FLA on this forum??)