# Preloaders for big files

**URL:** https://forum.kirupa.com/t/preloaders-for-big-files/241612
**Category:** flash
**Created:** [October 16, 2007, 4:15am UTC](https://forum.kirupa.com/t/preloaders-for-big-files/241612 "2007-10-16T04:15:35Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![22celin\_b](https://avatars.discourse-cdn.com/v4/letter/2/2acd7d/32.png) [@22celin\_b](https://forum.kirupa.com/u/22celin_b)
#### Post date: [October 16, 2007, 4:15am UTC](https://forum.kirupa.com/t/preloaders-for-big-files/241612/1 "2007-10-16T04:15:35Z")

</div>

Hi,

I would really appreciate any help on this matter.

I have an swf file where the first frame is about 120K which I can’t change because it is due to action script and linkage from the library(I think).

I have tried a preloader using “getBytesLoaded” method but it still takes ages for the progress bar to come up due to the size of the first frame. I have also tried loading it as an external swf but then half of my functions don’t work.

Is there any other way of preloading methods I could try?

Any suggestions would be really well received.

this is the code I used for the preloader

mask\_mc.\_height = 1;  
this.onEnterFrame = function():Void {  
var loadedData:Number = this.getBytesLoaded();  
var allData:Number = this.getBytesTotal();  
var percent:Number = Math.round(loadedData/allData\*100);  
mask\_mc.\_yscale = percent;  
percentage\_txt.text = percent + “%”;  
if (loadedData\>=allData) {  
gotoAndStop(2);  
delete this.onEnterFrame;  
}  
};

thanks

celine
