AS2.0 help

Out of context: Reply #5

  • Started
  • Last post
  • 10 Responses
  • jysta0

    ^ might make things a bit clearer neverblink.

    // This is an array, a list of the buttons used.
    var myButtons = [this.myButton_1, this.myButton_2, this.myButton_3, this.myButton_4];

    // Loops on all buttons from the first to the last one
    for (var i=0; i<myButtons.length; i++) {

    // When the mouse rolls over this menu option... go down just a bit.
    // NOTICE: I'm not taking into consideration the problem of having the hit area going down and "moving" the
    // mouse area and out of the button (possible rollover flicking). This is just a simple example afterall.
    myButtons[i].onRollOver = function() {
    this.scaleTo(90, 0.5, "easeoutelastic");
    };
    }

    the NOTICE: bit is what Im trying to solve (with invisible buttons)

View thread