Prelaoder problem

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:

compile the swf and then preload it into another swf as a holder. It sucks, but that’s the way of AS3 : )

can you link some tutorials plz?

thanks

http://etcs.ru/blog/as3/export_in_second_frame_flash_cs3/
http://etcs.ru/flash/export/ExportSecondFrame.zip
ctrl+enter
ctrl+enter