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 / _TextAreaStyle.as < prev    next >
Encoding:
Text File  |  2008-10-29  |  1.1 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 _TextAreaStyle
  8.    {
  9.       public function _TextAreaStyle()
  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("TextArea");
  18.          if(!style)
  19.          {
  20.             style = new CSSStyleDeclaration();
  21.             StyleManager.setStyleDeclaration("TextArea",style,false);
  22.          }
  23.          if(style.defaultFactory == null)
  24.          {
  25.             style.defaultFactory = function():void
  26.             {
  27.                this.horizontalScrollBarStyleName = "textAreaHScrollBarStyle";
  28.                this.backgroundDisabledColor = 14540253;
  29.                this.borderStyle = "solid";
  30.                this.backgroundColor = 16777215;
  31.                this.verticalScrollBarStyleName = "textAreaVScrollBarStyle";
  32.             };
  33.          }
  34.       }
  35.    }
  36. }
  37.  
  38.