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 / _ToolTipStyle.as < prev    next >
Encoding:
Text File  |  2008-10-29  |  1.3 KB  |  46 lines

  1. package
  2. {
  3.    import mx.core.IFlexModuleFactory;
  4.    import mx.skins.halo.ToolTipBorder;
  5.    import mx.styles.CSSStyleDeclaration;
  6.    import mx.styles.StyleManager;
  7.    
  8.    public class _ToolTipStyle
  9.    {
  10.       public function _ToolTipStyle()
  11.       {
  12.          super();
  13.       }
  14.       
  15.       public static function init(param1:IFlexModuleFactory) : void
  16.       {
  17.          var fbs:IFlexModuleFactory = param1;
  18.          var style:CSSStyleDeclaration = StyleManager.getStyleDeclaration("ToolTip");
  19.          if(!style)
  20.          {
  21.             style = new CSSStyleDeclaration();
  22.             StyleManager.setStyleDeclaration("ToolTip",style,false);
  23.          }
  24.          if(style.defaultFactory == null)
  25.          {
  26.             style.defaultFactory = function():void
  27.             {
  28.                this.paddingTop = 2;
  29.                this.borderColor = 9542041;
  30.                this.paddingLeft = 4;
  31.                this.cornerRadius = 2;
  32.                this.paddingRight = 4;
  33.                this.shadowColor = 0;
  34.                this.fontSize = 9;
  35.                this.borderSkin = ToolTipBorder;
  36.                this.backgroundAlpha = 0.95;
  37.                this.paddingBottom = 2;
  38.                this.borderStyle = "toolTip";
  39.                this.backgroundColor = 16777164;
  40.             };
  41.          }
  42.       }
  43.    }
  44. }
  45.  
  46.