Advertisement
Guest User

Untitled

a guest
Oct 21st, 2019
171
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [Frame(extraClass="FlexInit")]
  2.    [States("editor")]
  3.    [DynamicStateHost(name="multiverses")]
  4.    [Name("MainUI")]
  5.    public class MainUI extends Module implements IBundleActivator, IStateClient2, ITideModule, IVisualElementContainer
  6.    {
  7.        
  8.      
  9.       private var _1307827859editor:UIService;
  10.      
  11.       private var _300911179marketplace:UIService;
  12.      
  13.       private var __moduleFactoryInitialized:Boolean = false;
  14.      
  15.       private var _context:IBundleContext;
  16.  
  17.       private var _1031813348targetBottom:Number;
  18.      
  19.       mx_internal var _MainUI_StylesInit_done:Boolean = false;
  20.      
  21.       public function MainUI()
  22.       {
  23.          this._serviceRegistrations = new Array();
  24.          super();
  25.          mx_internal::_document = this;
  26.          this.percentWidth = 100;
  27.          this.percentHeight = 100;
  28.          this.mxmlContentFactory = new DeferredInstanceFromFunction(this._MainUI_Array2_c);
  29.          this.currentState = "marketplace";
  30.          this.addEventListener("creationComplete",this.___MainUI_Module1_creationComplete);
  31.          var _loc1_:DeferredInstanceFromFunction = new DeferredInstanceFromFunction(this._MainUI_UIService1_i);
  32.          var _loc2_:DeferredInstanceFromFunction = new DeferredInstanceFromFunction(this._MainUI_UIService2_i);
  33.          states = [new State({
  34.             "name":"marketplace",
  35.             "overrides":[new AddItems().initializeFromObject({
  36.                "itemsFactory":_loc1_,
  37.                "destination":null,
  38.                "position":"first"
  39.             })]
  40.          }),new State({
  41.             "name":"editor",
  42.             "overrides":[new AddItems().initializeFromObject({
  43.                "itemsFactory":_loc2_,
  44.                "destination":null,
  45.                "position":"first"
  46.             })]
  47.          })];
  48.       }
  49.  
  50.       private function _MainUI_UIService1_i() : UIService
  51.       {
  52.          var _loc1_:UIService = new UIService();
  53.          _loc1_.purpose = "marketplace";
  54.          _loc1_.percentWidth = 100;
  55.          _loc1_.percentHeight = 100;
  56.          _loc1_.bottom = 0;
  57.          _loc1_.id = "marketplace";
  58.          if(!_loc1_.document)
  59.          {
  60.             _loc1_.document = this;
  61.          }
  62.          this.marketplace = _loc1_;
  63.          BindingManager.executeBindings(this,"marketplace",this.marketplace);
  64.          return _loc1_;
  65.       }
  66.      
  67.       private function _MainUI_UIService2_i() : UIService
  68.       {
  69.          var _loc1_:UIService = new UIService();
  70.          _loc1_.purpose = "timeline";
  71.          _loc1_.percentWidth = 100;
  72.          _loc1_.percentHeight = 35;
  73.          _loc1_.bottom = 0;
  74.          _loc1_.id = "editor";
  75.          if(!_loc1_.document)
  76.          {
  77.             _loc1_.document = this;
  78.          }
  79.          this.editor = _loc1_;
  80.          BindingManager.executeBindings(this,"editor",this.editor);
  81.          return _loc1_;
  82.       }
  83.  
  84. ....
  85.  
  86. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement