# (FMX) Do you want to abort the script?

**URL:** <https://forum.kirupa.com/t/fmx-do-you-want-to-abort-the-script/9665>\
**Category:** flash\
**Created:** [December 16, 2002, 8:08am UTC](https://forum.kirupa.com/t/fmx-do-you-want-to-abort-the-script/9665 "2002-12-16T08:08:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jimw00d](https://avatars.discourse-cdn.com/v4/letter/j/46a35a/32.png) [@jimw00d](https://forum.kirupa.com/u/jimw00d)\
**Post date:** [December 16, 2002, 8:08am UTC](https://forum.kirupa.com/t/fmx-do-you-want-to-abort-the-script/9665/1 "2002-12-16T08:08:19Z")

</div>

Nearing the completion of a site, keep getting a message come up during the pre-loader stage,

“A script in this movie is causing flashplaayer 6 to run slowly. If it continues to run your computer might become unresponsive. Do you want to abort the script.”

I am quite flumoxed over this, if anyone has experienced it before could they give me an idea of the likely causes.

Cheers

[http://northls.nbkayaking.com](http://northls.nbkayaking.com)

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 16, 2002, 8:13am UTC](https://forum.kirupa.com/t/fmx-do-you-want-to-abort-the-script/9665/2 "2002-12-16T08:13:45Z")

</div>

It means you have a script in your movie that is causing Flash to run slowly.

This is usually caused by an unclosed loop or something.

Can you post your preloader code so I can check it and see whats going on?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 16, 2002, 8:35am UTC](https://forum.kirupa.com/t/fmx-do-you-want-to-abort-the-script/9665/3 "2002-12-16T08:35:08Z")

</div>

This is Flash’s way of saying… HEY! You have a loop that goes on for forever…

_lol_… It’s just like in C++… You’d usually just gte kicked out of the program or these white lines would appear and everything would look really really weird… hehehe…

🙂

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 16, 2002, 8:37am UTC](https://forum.kirupa.com/t/fmx-do-you-want-to-abort-the-script/9665/4 "2002-12-16T08:37:41Z")

</div>

Yeah, I know in a preloader it does that if you have something like this on Frame 1…

```auto
if(bytes_loaded == bytes_total){
_root.gotoAndPlay(2);
} else {
_root.gotoAndPlay(1);
}

```

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [December 17, 2002, 9:18am UTC](https://forum.kirupa.com/t/fmx-do-you-want-to-abort-the-script/9665/5 "2002-12-17T09:18:50Z")

</div>

Frame 1

totalK = getBytesTotal()/1000;  
loadedK = getBytesLoaded()/1000;  
remainingK = totalK-loadedK;  
percentageK = (loadedK/totalK)\*100;  
setProperty(“bar”, \_xscale, percentageK);  
if (loadedK\>=totalK && totalK != 0) {  
gotoAndPlay(3);  
}

frame 2

gotoAndPlay(1);
