home *** CD-ROM | disk | FTP | other *** search
/ Canadian Forces: A World of Opportunities / CanadianForces-AWorldOfOpportunities-WinMac.bin / 04_WhatOptions_FR.swf / scripts / __Packages / mx / styles / CSSStyleDeclaration.as next >
Text File  |  2006-07-20  |  1KB  |  51 lines

  1. class mx.styles.CSSStyleDeclaration
  2. {
  3.    static var classConstructed = mx.styles.CSSStyleDeclaration.classConstruct();
  4.    static var CSSTextStylesDependency = mx.styles.CSSTextStyles;
  5.    function CSSStyleDeclaration()
  6.    {
  7.    }
  8.    function __getTextFormat(tf, bAll)
  9.    {
  10.       var _loc5_ = false;
  11.       if(this._tf != undefined)
  12.       {
  13.          var _loc2_ = undefined;
  14.          for(_loc2_ in mx.styles.StyleManager.TextFormatStyleProps)
  15.          {
  16.             if(bAll || mx.styles.StyleManager.TextFormatStyleProps[_loc2_])
  17.             {
  18.                if(tf[_loc2_] == undefined)
  19.                {
  20.                   var _loc3_ = this._tf[_loc2_];
  21.                   if(_loc3_ != undefined)
  22.                   {
  23.                      tf[_loc2_] = _loc3_;
  24.                   }
  25.                   else
  26.                   {
  27.                      _loc5_ = true;
  28.                   }
  29.                }
  30.             }
  31.          }
  32.       }
  33.       else
  34.       {
  35.          _loc5_ = true;
  36.       }
  37.       return _loc5_;
  38.    }
  39.    function getStyle(styleProp)
  40.    {
  41.       var _loc2_ = this[styleProp];
  42.       var _loc3_ = mx.styles.StyleManager.getColorName(_loc2_);
  43.       return _loc3_ != undefined ? _loc3_ : _loc2_;
  44.    }
  45.    static function classConstruct()
  46.    {
  47.       mx.styles.CSSTextStyles.addTextStyles(mx.styles.CSSStyleDeclaration.prototype,true);
  48.       return true;
  49.    }
  50. }
  51.