# Whats wrong w/ this action script

**URL:** <https://forum.kirupa.com/t/whats-wrong-w-this-action-script/173834>\
**Category:** Uncategorized\
**Created:** [December 30, 2005, 4:09am UTC](https://forum.kirupa.com/t/whats-wrong-w-this-action-script/173834 "2005-12-30T04:09:25Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![mr\_pbody](https://avatars.discourse-cdn.com/v4/letter/m/b2d939/32.png) [@mr\_pbody](https://forum.kirupa.com/u/mr_pbody)\
**Post date:** [December 30, 2005, 4:09am UTC](https://forum.kirupa.com/t/whats-wrong-w-this-action-script/173834/1 "2005-12-30T04:09:25Z")

</div>

hi all!  
i’m a nOOb and am trying to get some a.s. to recognize if i already have a page open so my button doesn’t reopen/reload it again. i am using someone else’s script so if you see something wrong (yes, i’m getting errors) could you please post the way it should be so i could copy and paste it???  
i would normally ask how to fix something but script with me is like greek!

code:  
on (release) {  
\_root.contents.loadMovie(“home.swf”);  
}  
if(\_global.homeLoaded){  
//do nothing  
}else{  
\_root.contents.loadMovie(“home.swf”);  
\_global.songsLoaded = false;  
\_global.lyricsLoaded = false;  
\_global.picsLoaded = false;  
\_global.linksLoaded = false;  
\_global.contactLoaded = false;  
}

site:  
[www.freewebs.com/ex\_iled](http://www.freewebs.com/ex_iled)

files:  
[[FONT=Arial][COLOR=#800080]http://briefcase.yahoo.com/downloadgeek[/COLOR][/FONT]](http://briefcase.yahoo.com/downloadgeek)

thank you so much!!!
