# Script error in the browser

**URL:** <https://forum.kirupa.com/t/script-error-in-the-browser/2253>\
**Category:** flash\
**Created:** [May 5, 2002, 8:03pm UTC](https://forum.kirupa.com/t/script-error-in-the-browser/2253 "2002-05-05T20:03:09Z")\
**Posts on this page:** 20\
**Page:** 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:** [May 5, 2002, 8:03pm UTC](https://forum.kirupa.com/t/script-error-in-the-browser/2253/1 "2002-05-05T20:03:09Z")

</div>

i just finished a web site…works perfectly on the flash player, on the browser preview…but when i upload it says something like:  
“This page contains a script that is causing Macromedia Flash Player 6 to run slowly. Do you wanto to abort the script?”

any idea?  
here’s the link:  
[mangrove](http://www.mangrovepr.com/mangroveredesigned.html)

i’ll appreciate any help…thanx!

:eek:

---

<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:** [May 5, 2002, 8:12pm UTC](https://forum.kirupa.com/t/script-error-in-the-browser/2253/2 "2002-05-05T20:12:57Z")

</div>

sorry…i think i mistyped it:

[ezboard](http://www.mangrovepr.com/test/mangroveredesigned.html)  
\<img src=http://www.ezboard.com/intl/aenglish/images/emoticons/ohwell.gif ALT=":"\>

:eek:

---

<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:** [May 5, 2002, 8:18pm UTC](https://forum.kirupa.com/t/script-error-in-the-browser/2253/3 "2002-05-05T20:18:22Z")

</div>

i couldn’t get the link both times ☹

---

<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:** [May 5, 2002, 8:20pm UTC](https://forum.kirupa.com/t/script-error-in-the-browser/2253/4 "2002-05-05T20:20:04Z")

</div>

ok…here’s definitely it:

[mangrove](http://www.mangrovepr.com)

:eek:

---

<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:** [May 5, 2002, 8:39pm UTC](https://forum.kirupa.com/t/script-error-in-the-browser/2253/5 "2002-05-05T20:39:22Z")

</div>

anyone?  
please?  
\<img src=http://www.ezboard.com/intl/aenglish/images/emoticons/ohwell.gif ALT=":"\>  
:eek:

---

<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:** [May 5, 2002, 8:50pm UTC](https://forum.kirupa.com/t/script-error-in-the-browser/2253/6 "2002-05-05T20:50:51Z")

</div>

I did look, and I see what you mean I just can’t think of an answer… Have you tryed debugging the movie?

---

<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:** [May 5, 2002, 8:53pm UTC](https://forum.kirupa.com/t/script-error-in-the-browser/2253/7 "2002-05-05T20:53:11Z")

</div>

well i went to “debug movie” and it showed nothing…

it’s weird 'cuz in my machine it works perfectly…

any idea???  
\<img src=http://www.ezboard.com/intl/aenglish/images/emoticons/ohwell.gif ALT=":"\>  
:eek:

---

<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:** [May 5, 2002, 8:55pm UTC](https://forum.kirupa.com/t/script-error-in-the-browser/2253/8 "2002-05-05T20:55:48Z")

</div>

If you don’t tell us how your script works, there’s no way we can tell you what’s wrong…

pom 0]

---

<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:** [May 5, 2002, 8:57pm UTC](https://forum.kirupa.com/t/script-error-in-the-browser/2253/9 "2002-05-05T20:57:34Z")

</div>

There is probably an infinite loop somewhere in the code for your preloader, but that should be found when you test the preloader using Flash. Check the FLA and check the preloader, make suer there is no loop.

---

<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:** [May 5, 2002, 9:01pm UTC](https://forum.kirupa.com/t/script-error-in-the-browser/2253/10 "2002-05-05T21:01:53Z")

</div>

and how do i know that?  
here’s the script:

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

:eek:

---

<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:** [May 5, 2002, 9:30pm UTC](https://forum.kirupa.com/t/script-error-in-the-browser/2253/11 "2002-05-05T21:30:01Z")

</div>

what is in Frame 3?

---

<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:** [May 5, 2002, 9:34pm UTC](https://forum.kirupa.com/t/script-error-in-the-browser/2253/12 "2002-05-05T21:34:50Z")

</div>

in frame 3 are every movie,background,button that i have in my page…not in the same layer of course…  
and in the layer where the loadingaction is there’s a stop…just like the tutorial you referred me jubba…

\<img src=http://www.ezboard.com/intl/aenglish/images/emoticons/ohwell.gif ALT=":"\>

:eek:

---

<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:** [May 5, 2002, 9:38pm UTC](https://forum.kirupa.com/t/script-error-in-the-browser/2253/13 "2002-05-05T21:38:25Z")

</div>

can you post the FLA I can take a look at it.

---

<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:** [May 5, 2002, 9:43pm UTC](https://forum.kirupa.com/t/script-error-in-the-browser/2253/14 "2002-05-05T21:43:21Z")

</div>

yup…

[mangrove](http://www.mangrovepr.com/test/mangroveredesigned.fla)

there’s it…tell me what ya think…

:eek:

---

<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:** [May 5, 2002, 10:47pm UTC](https://forum.kirupa.com/t/script-error-in-the-browser/2253/15 "2002-05-05T22:47:07Z")

</div>

ok, so wheres the preloader?

---

<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:** [May 5, 2002, 10:52pm UTC](https://forum.kirupa.com/t/script-error-in-the-browser/2253/16 "2002-05-05T22:52:01Z")

</div>

???..it’s there…isn’t it?

do u have a quick and easy code for preloading?..something VERY easy and quick…i have to take this web page out tomorrow…i tried the iframesloaded one and it didn’t worked…i uploaded the new version…plz check it out…tell me if it’s too slow or something…

[mangrove](http://www.mangrovepr.com)

:eek:

---

<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:** [May 6, 2002, 12:39am UTC](https://forum.kirupa.com/t/script-error-in-the-browser/2253/17 "2002-05-06T00:39:15Z")

</div>

no there was no preloader in the FLA you sent me, but now it works fine in my browser. Looks good.

---

<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:** [May 6, 2002, 1:56pm UTC](https://forum.kirupa.com/t/script-error-in-the-browser/2253/18 "2002-05-06T13:56:40Z")

</div>

looks good?..isn’t it too large?  
i used the tutorial you referred me to…  
i just erased it cuz the error didn’t allow anyone to see the site…at least it is up and running now…the client is fairly happy with it… the only prob is that i don’t have the preloader which is pretty important…the other problem is that it is too slow…the text makes it extremely slow…i uploaded it w/o the text and is amazingly faster…do u have any idea about why is that happening?

i really appreciate your help…i’m not going to get paid though but darn i learned a lot…

:eek:

---

<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:** [May 6, 2002, 2:47pm UTC](https://forum.kirupa.com/t/script-error-in-the-browser/2253/19 "2002-05-06T14:47:48Z")

</div>

the text causes it to slow down cuz its a lot of information to handle. You could try using loadMovie instead of the fading in and out. But I’m still not clear about that, so someone else might know.

Basically you make each part into a different SWF file and when the button is pressed tell an empty movieclip to load that swf and when another button is pressed, tell that movie clip to unload and another to load.

---

<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:** [May 6, 2002, 3:51pm UTC](https://forum.kirupa.com/t/script-error-in-the-browser/2253/20 "2002-05-06T15:51:50Z")

</div>

yeah i thought so too…lazy finishes doing the work(x3)…i thought that it would be easier like this…it’s not…  
but that’s ok…the client is happy…did the load bar worked in your comp?

i really appreciate everyhing…i’ll never finish thanking you…😉

[Next page](https://forum.kirupa.com/t/script-error-in-the-browser/2253.md?page=2)
