Skip to content

Instantly share code, notes, and snippets.

@skovalyov
Created June 5, 2012 22:21
Show Gist options
  • Save skovalyov/2878496 to your computer and use it in GitHub Desktop.
Save skovalyov/2878496 to your computer and use it in GitHub Desktop.
ActionScript singleton implementation example
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