Skip to content

Instantly share code, notes, and snippets.

@neilmanuell
Created February 4, 2011 12:02
Show Gist options
  • Save neilmanuell/811035 to your computer and use it in GitHub Desktop.
Save neilmanuell/811035 to your computer and use it in GitHub Desktop.
the bastard child of a Signal and SignalCommadMap
public class MacroCommandSignal extends Signal
{
[Inject]
public var signalCommandMap:ISignalCommandMap;
public function MacroCommandSignal()
{
// allows a payload Object to be injected into each command
super( Object );
initialise()
}
private function initialise():void
{
signalCommandMap.mapSignal( this, FirstCmd );
signalCommandMap.mapSignal( this, SecondCmd );
signalCommandMap.mapSignal( this, ThirdCmd );
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment