Ifelse script for password access

hi thanks for the site it has been of great help to me. i have a problem with the if else code i am using to give access to my site. i am developing in flash mx 2004, when i run your ifelse_final.fla it works like a charm, when i re-write it or copy it into my flash doc i get a script error regarding the onrelease AS and how this can only be applied to a button (i have tried library buttons, your button and my own made buttons) - HELP, it is driving me crazy…