Saturday, June 9, 2012

[Action Script] How to remove Show Redraw Regions June,2012

I want to create a custom right click on my code and i don't know how to take of Show Redraw Regions and Debugger, any help?

My main code:

ActionScript Code: public function Main()        {                     stage.scaleMode = "showAll";               controlScreens("StartScreen");             stage.showDefaultContextMenu = false;                        //Custom Menu            var rightMenu:ContextMenu = new ContextMenu();            rightMenu.hideBuiltInItems();            contextMenu = rightMenu;            var copyright = new ContextMenuItem("Copyright Subterrain Project");            var fbPage = new ContextMenuItem("Our Facebook page");            fbPage.addEventListener(ContextMenuEvent.MENU_ITEM_SELECT, facebookLink);            rightMenu.customItems.push(copyright);            rightMenu.customItems.push(fbPage);        }        function facebookLink(e:ContextMenuEvent):void {            var url:String = "LINK";            var request:URLRequest = new URLRequest(url);            navigateToURL(request, '_blank');        }
How to remove Show Redraw Regions

Related Post



0 comments: