Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public function ShopCategoryTab(type:int)
- {
- // var typeDisplay:MovieClip;
- display = AssetsManager.instance.getAsset(AssetsManager.TABCATEGORY_SHOPPOPUP, AssetsManager.POPUP_ASSETS);
- display.gotoAndStop(1);
- switch (type)
- {
- case FUNCTIONAL_CATEG:
- typeDisplay = AssetsManager.instance.getDefinitionContainerAsset(AssetsManager.FUNCTIONSHOP_DECOPOPUP_BUTT, AssetsManager.GAMEICONS_ASSETS);
- break;
- case DECOR_CATEG:
- typeDisplay = AssetsManager.instance.getDefinitionContainerAsset(AssetsManager.DECOSHOP_DECOPOPUP_BUTT, AssetsManager.GAMEICONS_ASSETS);
- break;
- case INVENTORY_CATEG:
- typeDisplay = AssetsManager.instance.getDefinitionContainerAsset(AssetsManager.INVENTORY_DECOPOPUP_BUTT, AssetsManager.GAMEICONS_ASSETS);
- break;
- }
- // this.typeDisplay = new AnimatedBitmap(typeDisplay);
- // this.typeDisplay.displayAsBitmap = true;
- this.typeDisplay.scaleY = this.typeDisplay.scaleX = 0.6;
- this.typeDisplay.gotoAndStop(1);
- this.typeDisplay.x = (display.width - this.typeDisplay.width)*0.5;
- this.typeDisplay.y = (display.height - 15 - this.typeDisplay.height);
- this.addChild(display);
- this.addChild(this.typeDisplay);
- }
Add Comment
Please, Sign In to add comment