jeroendelau / as3-signals
There is no license information available for the latest version (v0.8.0) of this package.
Package info
github.com/jeroendelau/as3-signals
Language:ActionScript
pkg:composer/jeroendelau/as3-signals
v0.8.0
2015-09-24 08:11 UTC
This package is not auto-updated.
Last update: 2026-03-01 01:56:51 UTC
README
Signals are light-weight, strongly-typed AS3 messaging tools.
Wire your application with better APIs and less boilerplate than AS3 Events.
Concept
- A Signal is essentially a mini-dispatcher specific to one event, with its own array of listeners.
- A Signal gives an event a concrete membership in a class.
- Listeners subscribe to real objects, not to string-based channels.
- Event string constants are no longer needed.
- Signals are inspired by C# events and signals/slots in Qt.
Syntax
// with EventDispatcher
button.addEventListener(MouseEvent.CLICK, onClick);
// Signal equivalent; past tense is recommended
button.clicked.add(onClicked);
I am still looking for impressions, critiques and suggestions.
My email is robert at robertpenner.com.
I’m @robpenner on Twitter.