# Need help with preloader for dynamic swf!

**URL:** <https://forum.kirupa.com/t/need-help-with-preloader-for-dynamic-swf/166047>\
**Category:** flash\
**Created:** [October 16, 2005, 2:04pm UTC](https://forum.kirupa.com/t/need-help-with-preloader-for-dynamic-swf/166047 "2005-10-16T14:04:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![spindrift](https://avatars.discourse-cdn.com/v4/letter/s/b5ac83/32.png) [@spindrift](https://forum.kirupa.com/u/spindrift)\
**Post date:** [October 16, 2005, 2:04pm UTC](https://forum.kirupa.com/t/need-help-with-preloader-for-dynamic-swf/166047/1 "2005-10-16T14:04:20Z")

</div>

Hey guys,

I want to make a preloader for a dynamic swf that displays the percent of the movie loaded but I need the percentage to go up to 200 (don’t ask why, I just do!).

How would I go about doing this?

What I’ve got at the moment is a dynamic text box in frame 1 (Var name and instance name both=status) in the dynamic swf and the first frame of the movie has this code in the timeline:

```auto
stop();
this.onEnterFrame = function() {
	loaded = int(getBytesLoaded()/getBytesTotal()*200);
	status = loaded+"%";
	if (getBytesLoaded() == getBytesTotal()) {
		delete this.onEnterFrame;
		gotoAndPlay(2);
	}
};

```

It isn’t working though - does anyone know why or does anyone have another preloader that I could use please?

Thank you for any advice or help and I hope to hear from you.

All the best,

Mark
