signals-extensions-CommandSignal is an ActionScript 3 extension that integrates Robotlegs and AS3-Signals frameworks to provide a cleaner, strongly typed alternative to traditional Flash Events in application architecture. Robotlegs uses events as the communication mechanism between models, services, and commands, but this project replaces that system with the more robust and object-oriented AS3-Signals. By combining the two, developers can eliminate the ambiguity and string-based event registration common in standard event-driven patterns. The library introduces the SignalCommandMap, a utility that allows developers to map Signals to Commands, enabling commands to trigger automatically when a Signal’s dispatch() method is called. This extension also creates a SignalContext, an enhanced MVCS context that manages Signals alongside the traditional Robotlegs maps.
Features
- Provides a CommandSignal class that extends the base Signals functionality
- Allows binding of signals to command classes for cleaner architecture
- Implements the command pattern for modular, testable logic
- Works seamlessly with existing AS3 Signals framework
- Promotes decoupling between event dispatchers and handlers
- Useful for scaling large Flex/ActionScript apps with organized logic