2 Replies Latest reply on Jun 4, 2008 5:32 PM by kglad

    actionscript call button onRelease()

    tobycraftse

      actionscript call button onRelease()
      I defined some button using flash timeline like follows:
      http://www.oniva.com/upload/1356/bu3.jpg


      I have a actionscript function that will call that button's onRelease() function
      ===================
      var buttons:Array = new Array("Button 99", "but2", "but3", "but4");
      function fireButton() {
      this[buttons[selected_button_index]].onRelease();
      }
      ===================

      but after fireButton() function is called, the button is not clicked for some reason, any thing wrong the code?