home *** CD-ROM | disk | FTP | other *** search
/ Ice Age Fan CD 1 / CD1_Scrat.iso / flash / data / game.swf / scripts / com / google / analytics / debug / _Style.as next >
Encoding:
Text File  |  2012-07-04  |  2.6 KB  |  74 lines

  1. package com.google.analytics.debug
  2. {
  3.    import flash.net.URLLoader;
  4.    import flash.text.StyleSheet;
  5.    
  6.    public class _Style
  7.    {
  8.       public var failureColor:uint;
  9.       
  10.       public var borderColor:uint;
  11.       
  12.       public var backgroundColor:uint;
  13.       
  14.       private var _sheet:StyleSheet;
  15.       
  16.       public var roundedCorner:uint;
  17.       
  18.       public var warningColor:uint;
  19.       
  20.       public var infoColor:uint;
  21.       
  22.       public var alertColor:uint;
  23.       
  24.       public var successColor:uint;
  25.       
  26.       private var _loader:URLLoader;
  27.       
  28.       private var _defaultSheet:String;
  29.       
  30.       public function _Style()
  31.       {
  32.          super();
  33.          _sheet = new StyleSheet();
  34.          _loader = new URLLoader();
  35.          _init();
  36.       }
  37.       
  38.       private function _parseSheet(param1:String) : void
  39.       {
  40.          _sheet.parseCSS(param1);
  41.       }
  42.       
  43.       public function get sheet() : StyleSheet
  44.       {
  45.          return _sheet;
  46.       }
  47.       
  48.       private function _init() : void
  49.       {
  50.          _defaultSheet = "";
  51.          _defaultSheet += "a{text-decoration: underline;}\n";
  52.          _defaultSheet += ".uiLabel{color: #000000;font-family: Arial;font-size: 12;margin-left: 2;margin-right: 2;}\n";
  53.          _defaultSheet += ".uiWarning{color: #ffffff;font-family: Arial;font-size: 14;font-weight: bold;margin-left: 6;margin-right: 6;}\n";
  54.          _defaultSheet += ".uiAlert{color: #ffffff;font-family: Arial;font-size: 14;font-weight: bold;margin-left: 6;margin-right: 6;}\n";
  55.          _defaultSheet += ".uiInfo{color: #000000;font-family: Arial;font-size: 14;font-weight: bold;margin-left: 6;margin-right: 6;}\n";
  56.          _defaultSheet += ".uiSuccess{color: #ffffff;font-family: Arial;font-size: 12;font-weight: bold;margin-left: 6;margin-right: 6;}\n";
  57.          _defaultSheet += ".uiFailure{color: #ffffff;font-family: Arial;font-size: 12;font-weight: bold;margin-left: 6;margin-right: 6;}\n";
  58.          _defaultSheet += ".uiAlertAction{color: #ffffff;text-align: center;font-family: Arial;font-size: 12;font-weight: bold;margin-left: 6;margin-right: 6;}\n";
  59.          _defaultSheet += ".uiAlertTitle{color: #ffffff;font-family: Arial;font-size: 16;font-weight: bold;margin-left: 6;margin-right: 6;}\n";
  60.          _defaultSheet += "\n";
  61.          roundedCorner = 6;
  62.          backgroundColor = 13421772;
  63.          borderColor = 5592405;
  64.          infoColor = 16777113;
  65.          alertColor = 16763904;
  66.          warningColor = 13369344;
  67.          successColor = 65280;
  68.          failureColor = 16711680;
  69.          _parseSheet(_defaultSheet);
  70.       }
  71.    }
  72. }
  73.  
  74.