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 / _macMaxButtonStyle.as < prev    next >
Encoding:
Text File  |  2008-10-29  |  1.6 KB  |  45 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.styles.CSSStyleDeclaration;
  5.    import mx.styles.StyleManager;
  6.    
  7.    public class _macMaxButtonStyle
  8.    {
  9.       private static var _embed_css_mac_max_up_png_2036161187:Class = _macMaxButtonStyle__embed_css_mac_max_up_png_2036161187;
  10.       
  11.       private static var _embed_css_mac_max_down_png_1137533955:Class = _macMaxButtonStyle__embed_css_mac_max_down_png_1137533955;
  12.       
  13.       private static var _embed_css_mac_max_over_png_1463683075:Class = _macMaxButtonStyle__embed_css_mac_max_over_png_1463683075;
  14.       
  15.       private static var _embed_css_mac_max_dis_png_2101394561:Class = _macMaxButtonStyle__embed_css_mac_max_dis_png_2101394561;
  16.       
  17.       public function _macMaxButtonStyle()
  18.       {
  19.          super();
  20.       }
  21.       
  22.       public static function init(param1:IFlexModuleFactory) : void
  23.       {
  24.          var fbs:IFlexModuleFactory = param1;
  25.          var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration(".macMaxButton");
  26.          if(!style)
  27.          {
  28.             style = new CSSStyleDeclaration();
  29.             StyleManager.setStyleDeclaration(".macMaxButton",style,false);
  30.          }
  31.          if(style.defaultFactory == null)
  32.          {
  33.             style.defaultFactory = function():void
  34.             {
  35.                this.upSkin = _embed_css_mac_max_up_png_2036161187;
  36.                this.overSkin = _embed_css_mac_max_over_png_1463683075;
  37.                this.downSkin = _embed_css_mac_max_down_png_1137533955;
  38.                this.disabledSkin = _embed_css_mac_max_dis_png_2101394561;
  39.             };
  40.          }
  41.       }
  42.    }
  43. }
  44.  
  45.