Advertisement
Guest User

Untitled

a guest
Jun 26th, 2017
53
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. package
  2. {
  3.     [Bindable]
  4.     public class PropertyEditorSingleton
  5.     {
  6.         private static var _instance:PropertyEditorSingleton = null;
  7.        
  8.  
  9.         public var menuTextColor:uint = 0;
  10.         public var bgColor:uint = 3355443;
  11.         public var titleColor:uint = 6710886;
  12.         public var menuColor1:uint = 6710886;
  13.         public var menuColor2:uint = 6710886 ;
  14.         public var menuColor3:uint = 6710886 ;
  15.         public var menuColor4:uint = 6710886 ;
  16.         public var bodyBgColor:uint = 10066329 ;
  17.         public var mainBgColor:uint = 13421772 ;
  18.        
  19.         public var bottomTextColor:uint = 16777215 ;
  20.         public var upperTextColor:uint = 16777215 ;
  21.         private var _colorLogoAlpha:Number = 0;
  22.        
  23.        
  24.        
  25.         public function PropertyEditorSingleton(enforcer:SingletonEnforcer)
  26.         {
  27.             if(enforcer == null)
  28.                 throw new Error("PropertyEditorSingleton is a singleton class, use getInstance() instead");
  29.         }
  30.    
  31.  
  32.         public static function getInstance():PropertyEditorSingleton
  33.         {
  34.             if(_instance == null){
  35.                 _instance = new PropertyEditorSingleton(new SingletonEnforcer);            
  36.             }
  37.             return _instance;
  38.         }
  39.        
  40.     }
  41. }
  42.  
  43. internal class SingletonEnforcer {}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement