Created
June 5, 2012 22:21
-
-
Save skovalyov/2878496 to your computer and use it in GitHub Desktop.
ActionScript singleton implementation example
This file contains 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
package { | |
internal class AuthenticationManagerInstance extends EventDispatcher { | |
public function AuthenticationManagerInstance() { | |
super(); | |
} | |
public function authenticate(username : String, password : String) : void { | |
// Authentication routine. | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment