# Action Script Help Please!

**URL:** https://forum.kirupa.com/t/action-script-help-please/277739
**Category:** flash
**Created:** [December 16, 2008, 5:43pm UTC](https://forum.kirupa.com/t/action-script-help-please/277739 "2008-12-16T17:43:30Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![gbcd](https://avatars.discourse-cdn.com/v4/letter/g/5e9695/32.png) [@gbcd](https://forum.kirupa.com/u/gbcd)
#### Post date: [December 16, 2008, 5:43pm UTC](https://forum.kirupa.com/t/action-script-help-please/277739/1 "2008-12-16T17:43:30Z")

</div>

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?
