I publish my swf, everything works great. I make a preloader that seems to run well and here are the actions:
var l:Loader=new Loader();l.contentLoaderInfo.addEventListener(ProgressEvent.PROGRESS,loop);
l.contentLoaderInfo.addEventListener(Event.COMPLETE,done);
l.load(new URLRequest("MVCSpringBeauty12512.swf"));
function loop(e:ProgressEvent):void
{
var perc=e.bytesLoaded/e.bytesTotal;
ProgBar.scaleX=perc;
}
function done(e:Event):void
{ removeChildAt(1);[COLOR=#00ff00]//tried this[/COLOR]
[COLOR=#00ff00] // removeChild(sunnyGulag); tried this ,should be the same as removeChildAt(1)[/COLOR]
removeChildAt(0);[COLOR=#00FF00]//tried this
[/COLOR] removeChildAt(progBar);[COLOR=#00FF00]//tried this [/COLOR][COLOR=#00FF00] ,should be the same as removeChildAt(0)[/COLOR]
[COLOR=#00ff00]//addChild(l);[/COLOR][COLOR=#00FF00]//tried this[/COLOR]
}
Problem is that when the game starts to play I can still see my menu screen in the background and then my asBaseScreen is also in the background!!! My screenHandler is being screwed up by the ■■■■ preloader. I need a point in the right direction PLEASE:crying: