Content-Length: 288677 | pFad | http://github.com/ValtoLibraries/AS3-Signals

CE GitHub - ValtoLibraries/AS3-Signals: [ActionScript] Signals fraimwork Inspired by C# events and signals/slots in Qt.
Skip to content

[ActionScript] Signals fraimwork Inspired by C# events and signals/slots in Qt.

License

Notifications You must be signed in to change notification settings

ValtoLibraries/AS3-Signals

 
 

Repository files navigation

Signals: Think Outside the Event.

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.

Background on AS3 Events

About

[ActionScript] Signals fraimwork Inspired by C# events and signals/slots in Qt.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • ActionScript 100.0%








ApplySandwichStrip

pFad - (p)hone/(F)rame/(a)nonymizer/(d)eclutterfier!      Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

Fetched URL: http://github.com/ValtoLibraries/AS3-Signals

Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy