# Preloader of dynamic swf not working. Please help!

**URL:** <https://forum.kirupa.com/t/preloader-of-dynamic-swf-not-working-please-help/165107>\
**Category:** flash\
**Created:** [October 7, 2005, 7:18pm UTC](https://forum.kirupa.com/t/preloader-of-dynamic-swf-not-working-please-help/165107 "2005-10-07T19:18:59Z")\
**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 7, 2005, 7:18pm UTC](https://forum.kirupa.com/t/preloader-of-dynamic-swf-not-working-please-help/165107/1 "2005-10-07T19:18:59Z")

</div>

Hi all,

Thanks for checking my post out.

I have an external swf in a containerMC in my main movie…the external swf has a preloader…

The preloader is a movieclip with a dynamic text box in it (instance name on the text box is ‘status’).

The movieclip has these actions on it:

```auto
onClipEvent (enterFrame) {
	loaded = _parent.getBytesLoaded();
	total = _parent.getBytesTotal();
	framesLoaded = Math.ceil((loaded/total)*200);
	gotoAndStop(framesLoaded);
	status.text = framesLoaded+"";
	// Text that will appear in loading bar
	if (framesLoaded>=200) {
		_parent.gotoAndPlay(2);
	}
}

```

The movieclip doesn’t load the movie! It does show the preloader briefy for about a frame before just playing the rest of the movie which then stops mid-way through animation to do some more loading!!!

I’d really appreciate anyone’s thoughts on my this isn’t working as it should.

Thank you very much and I hope to hear from you.

Cheers,

Mark
