# Get button event and parameters

**URL:** https://forum.kirupa.com/t/get-button-event-and-parameters/293126
**Category:** Uncategorized
**Created:** [July 23, 2009, 3:34pm UTC](https://forum.kirupa.com/t/get-button-event-and-parameters/293126 "2009-07-23T15:34:38Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![solos](https://avatars.discourse-cdn.com/v4/letter/s/dbc845/32.png) [@solos](https://forum.kirupa.com/u/solos)
#### Post date: [July 23, 2009, 3:34pm UTC](https://forum.kirupa.com/t/get-button-event-and-parameters/293126/1 "2009-07-23T15:34:38Z")

</div>

is there a way through action script to acquire a button event with parameters…lets say I dynamically load an mc that contains buttons…i want to find the names of the functions those buttons call, upon what event, and included parameters. I can already find buttons in the mc as follows

```auto

            for(var i in _mc){
                if(_mc*. __proto__ == Button.prototype){
                var mybutton:Button=_mc*;
                trace(mybutton._name);
                }
            }

```

but what i need are those buttons’ onPress actions and parameters.
