Guest User

Untitled

a guest
Jan 26th, 2018
92
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. public function ShopCategoryTab(type:int)
  2.         {
  3. //          var typeDisplay:MovieClip;
  4.            
  5.             display = AssetsManager.instance.getAsset(AssetsManager.TABCATEGORY_SHOPPOPUP, AssetsManager.POPUP_ASSETS);
  6.             display.gotoAndStop(1);
  7.             switch (type)
  8.             {
  9.                 case FUNCTIONAL_CATEG:
  10.                     typeDisplay = AssetsManager.instance.getDefinitionContainerAsset(AssetsManager.FUNCTIONSHOP_DECOPOPUP_BUTT, AssetsManager.GAMEICONS_ASSETS);
  11.                     break;
  12.                 case DECOR_CATEG:
  13.                     typeDisplay = AssetsManager.instance.getDefinitionContainerAsset(AssetsManager.DECOSHOP_DECOPOPUP_BUTT, AssetsManager.GAMEICONS_ASSETS);
  14.                     break;
  15.                 case INVENTORY_CATEG:
  16.                     typeDisplay = AssetsManager.instance.getDefinitionContainerAsset(AssetsManager.INVENTORY_DECOPOPUP_BUTT, AssetsManager.GAMEICONS_ASSETS);
  17.                     break;
  18.             }
  19. //          this.typeDisplay = new AnimatedBitmap(typeDisplay);
  20. //          this.typeDisplay.displayAsBitmap = true;
  21.             this.typeDisplay.scaleY = this.typeDisplay.scaleX = 0.6;
  22.             this.typeDisplay.gotoAndStop(1);
  23.            
  24.             this.typeDisplay.x = (display.width - this.typeDisplay.width)*0.5;
  25.             this.typeDisplay.y = (display.height - 15 - this.typeDisplay.height);
  26.            
  27.             this.addChild(display);
  28.             this.addChild(this.typeDisplay);
  29.  
  30.         }
Add Comment
Please, Sign In to add comment