home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World 2009 February / PCWFEB09.iso / Software / Freeware / Adobe Air 1.5 / AdobeAIRInstaller.exe / setup.swf / scripts / _opaquePanelStyle.as < prev    next >
Encoding:
Text File  |  2008-10-29  |  1.0 KB  |  38 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.styles.CSSStyleDeclaration;
  5.    import mx.styles.StyleManager;
  6.    
  7.    public class _opaquePanelStyle
  8.    {
  9.       public function _opaquePanelStyle()
  10.       {
  11.          super();
  12.       }
  13.       
  14.       public static function init(param1:IFlexModuleFactory) : void
  15.       {
  16.          var fbs:IFlexModuleFactory = param1;
  17.          var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".opaquePanel");
  18.          if(!style)
  19.          {
  20.             style = new CSSStyleDeclaration();
  21.             StyleManager.setStyleDeclaration(".opaquePanel",style,false);
  22.          }
  23.          if(style.defaultFactory == null)
  24.          {
  25.             style.defaultFactory = function():void
  26.             {
  27.                this.footerColors = [15198183,13092807];
  28.                this.borderColor = 16777215;
  29.                this.headerColors = [15198183,14277081];
  30.                this.borderAlpha = 1;
  31.                this.backgroundColor = 16777215;
  32.             };
  33.          }
  34.       }
  35.    }
  36. }
  37.  
  38.