greyimg

AS3 Event System: Signals – an Alternative for Event Manager

Posted by admin in September 12th, 2009
Published in Action Script 3.0, Resources

Robert Penner has develop new approach for AS3 events, inspired by C# events and signals/slots in Qt. This project call Signals. This can be an alternative solutions to manage your Events.

Here are the Concept and Philosophy sections for a start:

The 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.
Philosophy

 

  • Composition and interfaces are favored over inheritance.
  • Events in interfaces are a good thing.
  • Event types are classes, not strings.
  • Event classes should focus on the data they contain, not on who sends them.
  • Event classes should not contain string constants that various other classes use.
  • Test-Driven Development (TDD) is essential and fun.
  • So far, not a single static keyword in the source.
  • No singletons.

Further more details you can visit  at Google Code project: http://code.google.com/p/as3-signals/


No user Responded In This Post

Follow-up this post comment rss or leave a trackback

Leave A Reply Below

Currently browsing AS3 Event System: Signals – an Alternative for Event Manager

 Username (*required)

 Email Address (*private)

 Website (*optional)


Add to Technorati Favorites

What I am doing

UserOnline

 

September 2009
M T W T F S S
« Nov   Dec »
 123456
78910111213
14151617181920
21222324252627
282930  

Archives

Tags

Meta

Co-worker

Community

Personal

Profesional

Resources

Wordpress