actionscript - Starling splash screen lag issue -
i making game based on starling in flash professional , have 5 spritesheets load thats why decided put animation splash screen.
i create splash creating object of splash screen. problem facing game when loaded stucks on frame 1 of splash animation , when entire game loaded animation starts , defeating purpose of having splash screen in first place,
how can splash animation begins instantly , spritesheets loaded concurrently.
here code used in document class add splash screen
the splash class contains animation made in flash professional
splash = new splash(); splash.width = 1136; splash.height = 800; splash.y = 67; splash.width = stage.fullscreenwidth; splash.height = (stage.fullscreenheight / 640) *550; this.addchild(splash); splash.play();
not sure total setup of flash file how it.
on scene1 have splash movie clip. game on scene2. in splash movie clip, last frame, check whether game movie clip has loaded, if not, go frame 1 of splash movie clip. if loaded, stop();
splash movie clip , gotoandplay("scene2");
Comments
Post a Comment