Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package
- {
- [Bindable]
- public class PropertyEditorSingleton
- {
- private static var _instance:PropertyEditorSingleton = null;
- public var menuTextColor:uint = 0;
- public var bgColor:uint = 3355443;
- public var titleColor:uint = 6710886;
- private var _colorLogoAlpha:Number = 0;
- public function PropertyEditorSingleton(enforcer:SingletonEnforcer)
- {
- if(enforcer == null)
- throw new Error("PropertyEditorSingleton is a singleton class, use getInstance() instead");
- }
- public static function getInstance():PropertyEditorSingleton
- {
- if(_instance == null){
- _instance = new PropertyEditorSingleton(new SingletonEnforcer);
- }
- return _instance;
- }
- }
- }
- internal class SingletonEnforcer {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement