# buttonFunctions - movieClip class

**URL:** <https://forum.kirupa.com/t/buttonfunctions-movieclip-class/49364>\
**Category:** flash\
**Created:** [April 21, 2004, 11:24pm UTC](https://forum.kirupa.com/t/buttonfunctions-movieclip-class/49364 "2004-04-21T23:24:43Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ashwan](https://avatars.discourse-cdn.com/v4/letter/a/5fc32e/32.png) [@ashwan](https://forum.kirupa.com/u/ashwan)\
**Post date:** [April 21, 2004, 11:24pm UTC](https://forum.kirupa.com/t/buttonfunctions-movieclip-class/49364/1 "2004-04-21T23:24:43Z")

</div>

Hello

Apologies for such an confusing subject line…

I need some input on doing this, I am sure it’s quite simple except I can’t find any help on it.

I have movieClip created which has button within it. This movieClip is set to export in the library. In the firs frame of the movie I use the registerClass to register it to a class I have created (which extends movieClip). I know that the class is getting registered to it when I use the attachMovie command to bring it on the stage. However, the button within the movie has functions defined as these:  
on (rollOver) {  
doRollOver()  
}

I have defined the doRollOver function in the class I am registering to this movie clip. But none of the actions defined within this function are being done. Where/what/how do I need to define this doRollover function for it to work properly?

Thanks!  
Ashwan
