If I leave trace() commands in my code will it effect the animation when it is running on a website? Below is my code. I have a page that loads (the first three chunks of code is a preloader). When the user clicks one of the buttons, it goes to a certain page. The user says when she clicks the “lo” button, she sees the preloader for the new page then it goes blank for about 20 or 30 seconds then the new page pops up. It works fin one every computer and all of my friends see it fine. She has the same type of computer as me and the same browser (IE 6). Any ideas why this is happening? If my button code good? Does the trace() need to be removed?
// Stop for the preloader
stop();
// Calls preloader function every 10 milliseconds.
checkProgress = setInterval(getPercent,10);
// Preloader math code
function getPercent() {
var currentBytes = getBytesLoaded();
var totalBytes = getBytesTotal();
var pctLoaded = Math.round(currentBytes/totalBytes*100);
loaderbar_mc._xscale = pctLoaded;
loader_txt.text = pctLoaded;
if (pctLoaded >= 100) {
gotoAndStop(2);
clearInterval(checkProgress);
}
}
// Enter Button Code
this.onEnterFrame = function() {
this.loButton_mc.onRelease = function() {
trace(‘lo’);
getURL(“main/”, “_self”);
}
this.hiButton_mc.onRelease = function() {
trace(‘hi’);
getURL(“flash/animations/intro/”, “_self”);
}
}