# Preloader issue

**URL:** <https://forum.kirupa.com/t/preloader-issue/284099>\
**Category:** Uncategorized\
**Created:** [March 15, 2009, 8:40am UTC](https://forum.kirupa.com/t/preloader-issue/284099 "2009-03-15T08:40:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Dave](https://avatars.discourse-cdn.com/v4/letter/d/ee7513/32.png) [@Dave](https://forum.kirupa.com/u/Dave)\
**Post date:** [March 15, 2009, 8:40am UTC](https://forum.kirupa.com/t/preloader-issue/284099/1 "2009-03-15T08:40:43Z")

</div>

I have a preloader at the moment for two swf files. My issue is when the initial file loads, the preloader flashes for a second at near full scale and then drops down to size and the preloading begins.

I’ve tried everything, but I can’t avoid that split second flash where the preloader shows intially at full scale.

```auto

stop();
soundclip.loadMovie("sounds.swf");
this.onEnterFrame = function() {
	movieloaded = this.getBytesLoaded();
	movietotal = this.getBytesTotal();
	moviepercent = (movieloaded/movietotal)*100;
	trace("movie "+moviepercent);
	soundloaded = soundclip.getBytesLoaded();
	soundtotal = soundclip.getBytesTotal();
	soundpercent = (soundloaded/soundtotal)*100;
	trace("sound "+soundpercent);
	truePercent = (moviepercent+soundpercent)/2;
	trace("true% "+truePercent);
	this.loadText = truePercent;
	this.loadBar._width = truePercent/1.754;
	if (soundpercent == 100 && moviepercent == 100) {
		allLoaded();
	}
};
function allLoaded() {
	delete this.onEnterFrame;
	gotoAndPlay(5);
}

```
