impaler/As3-Bloom — pull request #2 by impaler (2012-02-19 07:37:02+00:00)
Title: 2.x dev button signals

Use a global mouseUp to limit the number of singals/eventlisteners
Signals used in button make a very simple api for developers;
eg;

var btn:Button = new Button(this, "Test");
btn.onDown.addOnce(function(e:MouseEvent) {trace("onDown")});
btn.onOver.addOnce(function(e:MouseEvent) {trace("onOver")});
btn.onOut.addOnce(function(e:MouseEvent) {trace("onOut")});
btn.onStageUp.addOnce(function(e:MouseEvent) {trace("onStageUp")});

-this depends on previous 2.x dev bloom and destroyfunc pull request