# Prelaoder problem

**URL:** <https://forum.kirupa.com/t/prelaoder-problem/265633>\
**Category:** Uncategorized\
**Created:** [July 10, 2008, 9:34pm UTC](https://forum.kirupa.com/t/prelaoder-problem/265633 "2008-07-10T21:34:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![cF516](https://avatars.discourse-cdn.com/v4/letter/c/e19b73/32.png) [@cF516](https://forum.kirupa.com/u/cF516)\
**Post date:** [July 10, 2008, 9:34pm UTC](https://forum.kirupa.com/t/prelaoder-problem/265633/1 "2008-07-10T21:34:42Z")

</div>

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:

```auto

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:

---

<div class="post-metadata">

**Author:** ![sekasi](https://avatars.discourse-cdn.com/v4/letter/s/5f8ce5/32.png) [@sekasi](https://forum.kirupa.com/u/sekasi)\
**Post date:** [July 10, 2008, 9:42pm UTC](https://forum.kirupa.com/t/prelaoder-problem/265633/2 "2008-07-10T21:42:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![cF516](https://avatars.discourse-cdn.com/v4/letter/c/e19b73/32.png) [@cF516](https://forum.kirupa.com/u/cF516)\
**Post date:** [July 11, 2008, 6:34am UTC](https://forum.kirupa.com/t/prelaoder-problem/265633/3 "2008-07-11T06:34:06Z")

</div>

can you link some tutorials plz?

thanks

---

<div class="post-metadata">

**Author:** ![Alex\_Lexcuk](https://avatars.discourse-cdn.com/v4/letter/a/919ad9/32.png) [@Alex\_Lexcuk](https://forum.kirupa.com/u/Alex_Lexcuk)\
**Post date:** [July 11, 2008, 4:43pm UTC](https://forum.kirupa.com/t/prelaoder-problem/265633/4 "2008-07-11T16:43:47Z")

</div>

[http://etcs.ru/blog/as3/export\_in\_second\_frame\_flash\_cs3/](http://etcs.ru/blog/as3/export_in_second_frame_flash_cs3/)  
[http://etcs.ru/flash/export/ExportSecondFrame.zip](http://etcs.ru/flash/export/ExportSecondFrame.zip)  
ctrl+enter  
ctrl+enter
