# External swf preloader help

**URL:** <https://forum.kirupa.com/t/external-swf-preloader-help/223687>\
**Category:** Uncategorized\
**Created:** [April 24, 2007, 11:35pm UTC](https://forum.kirupa.com/t/external-swf-preloader-help/223687 "2007-04-24T23:35:40Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ajcfalcon](https://avatars.discourse-cdn.com/v4/letter/a/f1d935/32.png) [@ajcfalcon](https://forum.kirupa.com/u/ajcfalcon)\
**Post date:** [April 24, 2007, 11:35pm UTC](https://forum.kirupa.com/t/external-swf-preloader-help/223687/1 "2007-04-24T23:35:40Z")

</div>

I have a main content swf inside my movie, which is kinda large. So when i try to navigate it, sometimes you have to wait a minute before the buttons will do anything.

I tried to use a preloader on the main timeline for the external swf “contents.swf”. The code i used is:

st()

\_root.contents.loadMovie(“contents.swf”);

if(\_root.contents.\_framesloaded \>= \_root.contents.\_totalframes) {  
gotoAndPlay (2);  
} else {  
gotoAndPlay (1);  
}

and then it goes on and preloads a different swf. Everything seems to work, but it still takes a couple seconds before you can click on anything, plus the contents.swf is 1.7MB and it only takes about 2 seconds to “preload”… so i know something isnt working right.

Is there something wrong with my code?
