Action Script Help Please!

Hello, i am a flash beginner, so please bear with me. I have a flash file with 5 different pages. Page5 happens to be a “Contact Us” page and contains a form along with a Submit button. I’ve assigned the button an instance name of “sender”. I’ve also attached some code to the 1st frame of page5 which essentially reads sender.onRelease = function { }

The code for the function came from another internet example on sending form mail, so I know it works. My problem is that this button will no nothing when I click on it. I am wondering if using “sender.OnRelease” is correct or do I need to use something like “_parent.sender.OnRelease”? It’s never clear to me when it comes to the Flash Architecture. Since I’m writing the code on Page5’s timeline rather than on the root timeline, do I need to include the _parent when referencing components like buttons or not?