home *** CD-ROM | disk | FTP | other *** search
/ Computer Active 2010 August / CA08.iso / Multimedija / shufflr.air / ShufflrClient.swf / scripts / mx / core / FlexHTMLLoader.as < prev    next >
Encoding:
Text File  |  2010-06-23  |  1.6 KB  |  70 lines

  1. package mx.core
  2. {
  3.    import flash.html.HTMLLoader;
  4.    import mx.managers.IFocusManagerComplexComponent;
  5.    import mx.utils.NameUtil;
  6.    
  7.    use namespace mx_internal;
  8.    
  9.    public class FlexHTMLLoader extends HTMLLoader implements IFocusManagerComplexComponent
  10.    {
  11.       mx_internal static const VERSION:String = "3.5.0.12683";
  12.       
  13.       private var _focusEnabled:Boolean = true;
  14.       
  15.       private var _mouseFocusEnabled:Boolean = true;
  16.       
  17.       public function FlexHTMLLoader()
  18.       {
  19.          super();
  20.          try
  21.          {
  22.             name = NameUtil.createUniqueName(this);
  23.          }
  24.          catch(e:Error)
  25.          {
  26.          }
  27.       }
  28.       
  29.       override public function toString() : String
  30.       {
  31.          return NameUtil.displayObjectToString(this);
  32.       }
  33.       
  34.       public function get focusEnabled() : Boolean
  35.       {
  36.          return _focusEnabled;
  37.       }
  38.       
  39.       public function assignFocus(param1:String) : void
  40.       {
  41.          stage.assignFocus(this,param1);
  42.       }
  43.       
  44.       public function get mouseFocusEnabled() : Boolean
  45.       {
  46.          return _mouseFocusEnabled;
  47.       }
  48.       
  49.       public function set focusEnabled(param1:Boolean) : void
  50.       {
  51.          _focusEnabled = param1;
  52.       }
  53.       
  54.       public function drawFocus(param1:Boolean) : void
  55.       {
  56.       }
  57.       
  58.       public function setFocus() : void
  59.       {
  60.          stage.focus = this;
  61.       }
  62.       
  63.       public function set mouseFocusEnabled(param1:Boolean) : void
  64.       {
  65.          _mouseFocusEnabled = param1;
  66.       }
  67.    }
  68. }
  69.  
  70.