Skip to content

Instantly share code, notes, and snippets.

@jonnyreeves
jonnyreeves / assertAfterSignal.as
Created September 22, 2011 16:05
AS3Signals FlexUnit 4 Async Assertion Helper
package uk.co.jonnyreeves.flexunit
{
import flash.events.EventDispatcher;
import mx.events.MetadataEvent;
import org.flexunit.async.Async;
import org.osflash.signals.ISignal;
public function assertAfterSignal(testCase : Object, signal : ISignal, handler : Function, timeout : int = 500) : void
@jonnyreeves
jonnyreeves / puremvc-SignalNotifierMap.as
Created May 11, 2011 14:17
PureMVC SignalNotifierMap
package uk.co.jonnyreeves.puremvc.util
{
import flash.utils.Dictionary;
import org.osflash.signals.ISignal;
import org.puremvc.as3.multicore.interfaces.INotifier;
/**
* Convenience class which allows you to create bindings between as3-signals and PureMVC notifications - when the
* Signal gets dispatched, the mapped Notification is created with the Signal's payload supplied as the