# \[help\] Buttons vs. mxbutton component

**URL:** https://forum.kirupa.com/t/help-buttons-vs-mxbutton-component/123379
**Category:** Uncategorized
**Created:** [September 23, 2004, 3:31am UTC](https://forum.kirupa.com/t/help-buttons-vs-mxbutton-component/123379 "2004-09-23T03:31:00Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![lordnoble](https://avatars.discourse-cdn.com/v4/letter/l/3e96dc/32.png) [@lordnoble](https://forum.kirupa.com/u/lordnoble)
#### Post date: [September 23, 2004, 3:31am UTC](https://forum.kirupa.com/t/help-buttons-vs-mxbutton-component/123379/1 "2004-09-23T03:31:00Z")

</div>

hopefully the easiest question on here which, sadly , i cant comprehend…  
I’m learning OOP with AS 2.0  
and I’m running into a slight problem, when I used the regular button component in mx 2004 I’m able to do this within my class and get my button to do what its suppose to:

```auto
var my_button : mx.controls.Button;
var my_button_eh : Object = new Object();

```

However I do not want to use the mx button… i want to use my custom created button. what is the syntax for regular buttons? Can anyone help? hopefully my this question is clear 🙂

thanks for any help prgived
