Skip to content

Instantly share code, notes, and snippets.

@abeldebeer
abeldebeer / IGuardedSignalCommandMap & GuardedSignalCommandMap
Created December 16, 2010 16:09
AS3Signals implementation of @stray_and_ruby's GuardedCommandMap (first, untested version)
package org.robotlegs.core
{
import org.osflash.signals.ISignal;
/**
* @author Abel de Beer
*/
public interface IGuardedSignalCommandMap
{
function mapGuardedSignal(signal:ISignal, commandClass:Class, guards:*, oneShot:Boolean = false):void;
package
{
import org.robotlegs.base.ViewInterfaceMediatorMap;
import org.robotlegs.core.IMediatorMap;
import org.robotlegs.mvcs.SignalContext;
import flash.display.DisplayObjectContainer;
public class MyContext extends SignalContext
{