Skip to content

Instantly share code, notes, and snippets.

@neilmanuell
Created July 14, 2011 11:10
Show Gist options
  • Save neilmanuell/1082271 to your computer and use it in GitHub Desktop.
Save neilmanuell/1082271 to your computer and use it in GitHub Desktop.
Strictly typed Signal
public class MyStrictSignal extends Signal{
public function MyStrictSignal():void{
super( String, int );
}
}
private var _signal:ISignal = new MyStrictSignal();
public function dispatchStrictSignal():void{
_signal.dispatch( "Hello", 5 );
}
@neilmanuell
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment