# Help with debugging

**URL:** https://forum.kirupa.com/t/help-with-debugging/96671
**Category:** Uncategorized
**Created:** [December 12, 2003, 3:18am UTC](https://forum.kirupa.com/t/help-with-debugging/96671 "2003-12-12T03:18:23Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![brcinsf](https://avatars.discourse-cdn.com/v4/letter/b/e79b87/32.png) [@brcinsf](https://forum.kirupa.com/u/brcinsf)
#### Post date: [December 12, 2003, 3:18am UTC](https://forum.kirupa.com/t/help-with-debugging/96671/1 "2003-12-12T03:18:23Z")

</div>

Hi all. I’ve dl this tutorial and have been tinkering around with it but no end in sight. Every time I test the movie, a page (debugging) opens up on top of the movie. It says “closed”. After closing the debugging window, I can test the movie.

However, after testing a few buttons, the window pops up again with the word “closed”. I’d appreciate any insight into this glitch. The code is below. Thanks for the time.

Cheers,  
BRC

siteSections=[“fashionMC”, “fineartMC”, “portraitMC”];

loadSection=function(){  
for(i=0; i\<siteSections.length; i++){ myName=siteSections\*;  
if (myName!=\_global.section){ myName=eval(myName); myName.gotoAndStop(“closed”); myName.\_x=(20\*i)+700;  
}else if(myName==\_global.section){  
loadMain(myName);  
}}}  
loadMain=function(myName) {  
myName=eval(myName);  
myName.gotoAndStop(“open”);  
var targetX = 325;  
var stepVar=4;  
myName.onEnterFrame=function(){  
var diffX = (myName.\_x - targetX)/stepVar;  
if (diffX\<1 ){  
delete myName.onEnterFrame; } else myName.\_x -= diffX; }}

fashionBTN.onRelease=function(){  
\_global.section=“fashionMC”;   
loadSection(); }

fineartBTN.onRelease=function(){  
\_global.section=“fineartMC”;   
loadSection(); }

portraitBTN.onRelease=function(){  
\_global.section=“portraitMC”;   
loadSection(); }
