# Action script 2.0 flash 8 extend button

**URL:** <https://forum.kirupa.com/t/action-script-2-0-flash-8-extend-button/263064>\
**Category:** Uncategorized\
**Created:** [June 12, 2008, 10:03am UTC](https://forum.kirupa.com/t/action-script-2-0-flash-8-extend-button/263064 "2008-06-12T10:03:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![thosecars82](https://avatars.discourse-cdn.com/v4/letter/t/85f322/32.png) [@thosecars82](https://forum.kirupa.com/u/thosecars82)\
**Post date:** [June 12, 2008, 10:03am UTC](https://forum.kirupa.com/t/action-script-2-0-flash-8-extend-button/263064/1 "2008-06-12T10:03:51Z")

</div>

Hello there  
I have this class:

class TestButton  
extends Button  
{  
public function onRollOver()  
{  
trace(“onRollOver”);  
}  
}

I want to create an instance of this class by using the flash 8 environment. Nevertheless, when I choose convert to symbol, I just can choose among Graphic, Button and MovieClip. Does anyone know how could I create a shape like a square and make it an instance of TestButton?  
Thanks in advance
