# Need some help with OOP menu class

**URL:** <https://forum.kirupa.com/t/need-some-help-with-oop-menu-class/225978>\
**Category:** flash\
**Created:** [May 17, 2007, 6:41am UTC](https://forum.kirupa.com/t/need-some-help-with-oop-menu-class/225978 "2007-05-17T06:41:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![FlawedKid](https://avatars.discourse-cdn.com/v4/letter/f/bc8723/32.png) [@FlawedKid](https://forum.kirupa.com/u/FlawedKid)\
**Post date:** [May 17, 2007, 6:41am UTC](https://forum.kirupa.com/t/need-some-help-with-oop-menu-class/225978/1 "2007-05-17T06:41:00Z")

</div>

Edit: Just did a bit of reading I just realized I wasn’t making much sense (its late) so i’ll try again…

I want to create a class for some buttons. First take a look at this screen dump which should give you all an idea I what Im trying to create.

![](http://img410.imageshack.us/my.php?image=screendump1vg3.png)

Each button is a square, cube whatever you want to call it. When the mouse is over the button I want to fade in a specific colour (image). How can I construct a class that allows me to specify what image to fade in for a button?

e.g.

var homeBtn:buttonClass = new buttonClass(“imageID”, “gotoLink”, “btnLabel”);

imageID = What colour image to fade in?  
gotoLink = Url or movie to load  
btnLabel = Allthough the menu doesnt have text I want to use a tooltip later on

Making any sense lol. Any help or suggestions?
