hey,
i add a preloader to my flash project but all of the data is sitting on the first frame.
i changed the frame in the publish options but it didnt do anything.
is there any way i can get the data to spread out through the rest of the frames or move it to the second frame?
all it does right now is sit on a black screen until it finishes where it plays the preloader for a second and then plays the rest.
heres my preloader code:
stop();
addEventListener(Event.ENTER_FRAME, loading);
function loading(event:Event) {
var bytestotal = stage.loaderInfo.bytesTotal;
var bytesloaded = stage.loaderInfo.bytesLoaded;
var sclbar = Math.round(bytesloaded*100/bytestotal);
custom_animation.gotoAndPlay(sclbar);
if (bytesloaded >= bytestotal)
{
removeEventListener(Event.ENTER_FRAME, loading);
removeChild(custom_animation);
removeChild(loadingText);
gotoAndStop("start");
}
}
thanks for your help
:mario: