Created
July 14, 2011 11:10
-
-
Save neilmanuell/1082271 to your computer and use it in GitHub Desktop.
Strictly typed Signal
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public class MyStrictSignal extends Signal{ | |
public function MyStrictSignal():void{ | |
super( String, int ); | |
} | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
private var _signal:ISignal = new MyStrictSignal(); | |
public function dispatchStrictSignal():void{ | |
_signal.dispatch( "Hello", 5 ); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
see http://revisual.co.uk/?p=1103 for context