HomeAbout

SimpleButton

Flash has a built-in SimpleButon class…this one dispatches an ‘onReleaseOutside’ event that is available in AS2 but not AS3.

http://flashobscura.neudot.com/?p=17

ButtonEventHandler

from the docs:

The ButtonEventHandler class allows for timeline-based instances (MovieClips) to receive button events and allows for those events to bubble up to parent clips. This is contrary to normal button event behavior (Buttons and MovieClips) which starts at the parent clip, or the first parent clip with any kind of button event assigned to it, and prevents any child clips from receiving any button events at all. A list of all supported events are as follows:

  • onPress
  • onRelease
  • onReleaseOutside
  • onRollOver
  • onRollOut
  • onDragOver
  • onDragOut
  • onMouseWithin

http://www.senocular.com/flash/actionscript.php?file=ActionScript_2.0/com/senocular/events/ButtonEventHandler.as
Part of senocular’s Actionscript library.

ButtonEvent

from the docs:

The ButtonEvent class defines event objects used by ButtonEventHandler. ButtonEvent instances contain properties regarding movie clips handled by ButtonEventHandler and manages the events they receive. These instances are created by ButtonEventHandler and returned from a call to ButtonEventHandler.initialize. It is also the object provided to event handlers and provides information regarding the event and the state of the movie clip receiving it. Other objects can be set to listen to events handled by ButtonEvent instances using addEventListener.

http://www.senocular.com/flash/actionscript.php?file=ActionScript_2.0/com/senocular/events/ButtonEvent.as

Part of senocular’s Actionscript library.