In app development their are many steps where we have to hang on for a while, like we are waiting for the server response, or the loading of assets or any other function to complete. Sometime to manage these such task we need a loading screen, which will appear during gap and after completion of program it will removed.
So here is the code to make a loading screen.
1- We add a quad
_overlay = new Quad(Starling.current.stage.stageWidth,Starling.current.stage.stageHeight , 0x000000);
_overlay.alpha = 0.9;
addChild(_overlay);
0 Comment(s)