I'm externally loading some pretty large swfs (4MB - 5MB) into my main swf using a preloader from a tutorial on this site.

As the swfs are loading i'm getting a pop-up window saying
"A script in this movie is causing Adobe Flash Player 9 to run slowly. If it continues to run, your computer may become unresponsive. Do you want to abort the script?"

if i click "no" everything continues to run fine. if i click "yes" my movie freezes in the middle of loading with the progress bar stopped at whatever percentage has already loaded.

After perusing the forums, it seems that an infinite loop is causing this, but I don't know enough about actionscript to track it down.

publishing as flash 6 makes it so the preloader doesn't even show up and nothing plays. I need to publish as flash player 7 or lower.

what is causing this pop up window and how do i get rid of it? thanks.

here is the page causing the issue

here is a picture of the error (it happens in firefox and safari)

here is my fla

in my .fla you'll see that the code in the tutorial takes place in one frame, while mine jumps frames depending on what button you press, but uses similar code for each frame.

here is my actionscript.


MovieClip.prototype.fadeIn = function() {
this.onEnterFrame = function() {
if (this._alpha<100) {
this._alpha += 10;
} else {
delete this.onEnterFrame;
bar._visible = false;
border._visible = false;
var empty = this.createEmptyMovieClip("container", "100");
empty._x = 0;
empty._y = 0;
my_mc = new MovieClipLoader();
preload = new Object();
preload.onLoadStart = function(targetMC) {
trace("started loading "+targetMC);
container._alpha = 0;
bar._visible = true;
border._visible = true;
pText._visible = true;

preload.onLoadProgress = function(targetMC, lBytes, tBytes) {
bar._width = (lBytes/tBytes)*100;
pText.text = "% "+Math.round((lBytes/tBytes)*100);

preload.onLoadComplete = function(targetMC) {
border._visible = false;
bar._visible = false;
dText._visible = false;
trace(targetMC+" finished");
//default image
my_mc.loadClip("tower_swfs/welcome_1.swf", "container");
button1.onPress = function() {
my_mc.loadClip("tower_swfs/welcome_1.swf", "container");

button2.onPress = function() {
my_mc.loadClip("tower_swfs/tower_salad.swf", "container");

button3.onPress = function() {
my_mc.loadClip("tower_swfs/tower_wifi.swf", "container");