Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- [Frame(extraClass="FlexInit")]
- [States("editor")]
- [DynamicStateHost(name="multiverses")]
- public class MainUI extends Module implements IBundleActivator, IStateClient2, ITideModule, IVisualElementContainer
- {
- private var _1307827859editor:UIService;
- private var _300911179marketplace:UIService;
- private var __moduleFactoryInitialized:Boolean = false;
- private var _context:IBundleContext;
- private var _1031813348targetBottom:Number;
- mx_internal var _MainUI_StylesInit_done:Boolean = false;
- public function MainUI()
- {
- this._serviceRegistrations = new Array();
- super();
- mx_internal::_document = this;
- this.percentWidth = 100;
- this.percentHeight = 100;
- this.mxmlContentFactory = new DeferredInstanceFromFunction(this._MainUI_Array2_c);
- this.currentState = "marketplace";
- this.addEventListener("creationComplete",this.___MainUI_Module1_creationComplete);
- var _loc1_:DeferredInstanceFromFunction = new DeferredInstanceFromFunction(this._MainUI_UIService1_i);
- var _loc2_:DeferredInstanceFromFunction = new DeferredInstanceFromFunction(this._MainUI_UIService2_i);
- states = [new State({
- "name":"marketplace",
- "overrides":[new AddItems().initializeFromObject({
- "itemsFactory":_loc1_,
- "destination":null,
- "position":"first"
- })]
- }),new State({
- "name":"editor",
- "overrides":[new AddItems().initializeFromObject({
- "itemsFactory":_loc2_,
- "destination":null,
- "position":"first"
- })]
- })];
- }
- private function _MainUI_UIService1_i() : UIService
- {
- var _loc1_:UIService = new UIService();
- _loc1_.purpose = "marketplace";
- _loc1_.percentWidth = 100;
- _loc1_.percentHeight = 100;
- _loc1_.bottom = 0;
- _loc1_.id = "marketplace";
- if(!_loc1_.document)
- {
- _loc1_.document = this;
- }
- this.marketplace = _loc1_;
- BindingManager.executeBindings(this,"marketplace",this.marketplace);
- return _loc1_;
- }
- private function _MainUI_UIService2_i() : UIService
- {
- var _loc1_:UIService = new UIService();
- _loc1_.purpose = "timeline";
- _loc1_.percentWidth = 100;
- _loc1_.percentHeight = 35;
- _loc1_.bottom = 0;
- _loc1_.id = "editor";
- if(!_loc1_.document)
- {
- _loc1_.document = this;
- }
- this.editor = _loc1_;
- BindingManager.executeBindings(this,"editor",this.editor);
- return _loc1_;
- }
- [Bindable(event="propertyChange")]
- public function get editor() : UIService
- {
- return this._1307827859editor;
- }
- public function set editor(param1:UIService) : void
- {
- var _loc2_:Object = this._1307827859editor;
- if(_loc2_ !== param1)
- {
- this._1307827859editor = param1;
- if(this.hasEventListener("propertyChange"))
- {
- this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"editor",_loc2_,param1));
- }
- }
- }
- [Bindable(event="propertyChange")]
- public function get marketplace() : UIService
- {
- return this._300911179marketplace;
- }
- public function set marketplace(param1:UIService) : void
- {
- var _loc2_:Object = this._300911179marketplace;
- if(_loc2_ !== param1)
- {
- this._300911179marketplace = param1;
- if(this.hasEventListener("propertyChange"))
- {
- this.dispatchEvent(PropertyChangeEvent.createUpdateEvent(this,"marketplace",_loc2_,param1));
- }
- }
- }
- ....
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement