1 Reply Latest reply on Aug 8, 2008 1:23 PM by Newsgroup_User

    Flash Button component

      I have come across a problem with the Director documentation (there's a shocker eh?) regarding Button component events that may be causing some confusion.

      In the events section for the Button, it lists Button.click as the triggered event. This is in fact incorrect and it is "onRelease" that gets triggered when this button is pressed. Here is a sample snippet to help people on their way...
        • 1. Re: Flash Button component
          Level 7
          Although the documentation is atrocious, and your "workaround" might
          work, it is unnecessary. If the member.eventPassMode = #passNever
          (default) then you can attach a behavior to the sprite that implements
          an "on click" handler and this will fire:
          on click me
          put "mouseUp"