# Preloader Error

**URL:** <https://forum.kirupa.com/t/preloader-error/248131>\
**Category:** Uncategorized\
**Created:** [January 4, 2008, 5:10am UTC](https://forum.kirupa.com/t/preloader-error/248131 "2008-01-04T05:10:34Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![GGMcGee](https://avatars.discourse-cdn.com/v4/letter/g/ba8739/32.png) [@GGMcGee](https://forum.kirupa.com/u/GGMcGee)\
**Post date:** [January 4, 2008, 5:10am UTC](https://forum.kirupa.com/t/preloader-error/248131/1 "2008-01-04T05:10:34Z")

</div>

I’ve been having a problem with my percentage preloaders today…

The script comes directly from [this tutorial](http://www.kirupa.com/developer/mx/percentagepreloader.htm)… and I’ve used the same script in at least 3 other Flash movies, but this time the Flash movie doesn’t run properly, and i get this error:

> [@"Adobe Flash Player 9"](#):
>
> 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?"

I don’t get any compiler error reports… and the movie runs fine when I test it in Flash, but I get the pop-up error when I try to open the HTML web page with the movie embedded.

The Actionscript in frame 1 is:

\*\*bytes\_loaded = Math.round(this.getBytesLoaded());  
bytes\_total = Math.round(this.getBytesTotal());  
getPercent = bytes\_loaded/bytes\_total;  
this.loadBar.\_width = getPercent_158;  
this.loadText = Math.round(getPercent_100)+“%”;  
if (bytes\_loaded == bytes\_total) {  
this.gotoAndPlay(3);  
}

\*\*and in Frame 2 is:  
\*\*  
this.gotoAndPlay(1);

\*\*And the movie has one other frame which has \*\*stop();

\*\*My HTML is…:

[SIZE=1]\*\*\<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Transitional//EN” “[http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd](http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd)”\>  
\<html xmlns=“[http://www.w3.org/1999/xhtml](http://www.w3.org/1999/xhtml)”\>  
\<head\>  
\<meta http-equiv=“Content-Type” content=“text/html; charset=iso-8859-1” /\>  
\<title\>Site\</title\>  
\<script language=“javascript”\>AC\_FL\_RunContent = 0;\</script\>  
\<script src=“AC\_RunActiveContent.js” language=“javascript”\>\</script\>  
\<link href=“css.css” rel=“stylesheet” type=“text/css” /\>  
\</head\>

\<body class=“cssmain”\>  
\<table width=“700” border=“0” align=“center” cellpadding=“0” cellspacing=“0” class=“csstable”\>  
\<tr\>  
\<td align=“center” class=“tabletop”\>  
\<script language=“javascript”\>  
if (AC\_FL\_RunContent == 0) {  
alert(“This page requires AC\_RunActiveContent.js”);  
} else {  
AC\_FL\_RunContent(  
‘codebase’, ‘[https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0](https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0)’,  
‘width’, ‘700’,  
‘height’, ‘150’,  
‘src’, ‘logo’,  
‘quality’, ‘high’,  
‘pluginspage’, ‘[https://www.macromedia.com/go/getflashplayer](https://www.macromedia.com/go/getflashplayer)’,  
‘align’, ‘middle’,  
‘play’, ‘true’,  
‘loop’, ‘false’,  
‘scale’, ‘noscale’,  
‘wmode’, ‘transparent’,  
‘devicefont’, ‘false’,  
‘id’, ‘logo’,  
‘bgcolor’, ‘#eeeeee’,  
‘name’, ‘logo’,  
‘menu’, ‘false’,  
‘allowScriptAccess’,‘sameDomain’,  
‘movie’, ‘logo’,  
‘salign’, ‘’  
);  
}  
\</script\>  
\<noscript\>  
\<object classid=“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000” codebase=“[http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0](http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0)” width=“700” height=“150”\>  
\<param name=“movie” value=“logo.swf” /\>  
\<param name=“quality” value=“high” /\>  
\<embed src=“logo.swf” quality=“high” pluginspage=“[http://www.macromedia.com/go/getflashplayer](http://www.macromedia.com/go/getflashplayer)” type=“application/x-shockwave-flash” width=“700” height=“150”\>\</embed\>  
\</object\>  
\</noscript\>  
\</td\>  
\</tr\>  
\<tr\>  
\<td align=“center” class=“tablebuttons”\>  
\<script language=“javascript”\>  
if (AC\_FL\_RunContent == 0) {  
alert(“This page requires AC\_RunActiveContent.js”);  
} else {  
AC\_FL\_RunContent(  
‘codebase’, ‘[https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0](https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0)’,  
‘width’, ‘700’,  
‘height’, ‘50’,  
‘src’, ‘buttons’,  
‘quality’, ‘high’,  
‘pluginspage’, ‘[https://www.macromedia.com/go/getflashplayer](https://www.macromedia.com/go/getflashplayer)’,  
‘align’, ‘middle’,  
‘play’, ‘true’,  
‘loop’, ‘false’,  
‘scale’, ‘noscale’,  
‘wmode’, ‘transparent’,  
‘devicefont’, ‘false’,  
‘id’, ‘buttons’,  
‘bgcolor’, ‘#eeeeee’,  
‘name’, ‘buttons’,  
‘menu’, ‘false’,  
‘allowScriptAccess’,‘sameDomain’,  
‘movie’, ‘buttons’,  
‘salign’, ‘’  
);  
}  
\</script\>  
\<noscript\>  
\<object classid=“clsid:D27CDB6E-AE6D-11cf-96B8-444553540000” codebase=“[http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0](http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0)” width=“700” height=“50”\>  
\<param name=“movie” value=“buttons.swf” /\>  
\<param name=“quality” value=“high” /\>  
\<embed src=“buttons.swf” quality=“high” pluginspage=“[http://www.macromedia.com/go/getflashplayer](http://www.macromedia.com/go/getflashplayer)” type=“application/x-shockwave-flash” width=“700” height=“50”\>\</embed\>  
\</object\>  
\</noscript\>  
\</td\>  
\</tr\>  
\<tr\>  
\<td\>&nbsp;\</td\>  
\</tr\>  
\<tr\>  
\<td\>&nbsp;\</td\>  
\</tr\>  
\</table\>  
\</body\>  
\</html\>\*\*[/SIZE]

I’ve used this preloader many times before, and it is only doing this now, when I try to create a new preloader… what’s the deal?? :x

I’ve also removed the preloader frames, just to make sure it is preloader-related, and the movie works fine… so it definitely is.
