# Looking for Organization Model for ui Classes

**URL:** <https://forum.kirupa.com/t/looking-for-organization-model-for-ui-classes/322352>\
**Category:** flash\
**Created:** [May 18, 2011, 8:11pm UTC](https://forum.kirupa.com/t/looking-for-organization-model-for-ui-classes/322352 "2011-05-18T20:11:46Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![jvkirkwo](https://avatars.discourse-cdn.com/v4/letter/j/bc79bd/32.png) [@jvkirkwo](https://forum.kirupa.com/u/jvkirkwo)\
**Post date:** [May 18, 2011, 8:11pm UTC](https://forum.kirupa.com/t/looking-for-organization-model-for-ui-classes/322352/1 "2011-05-18T20:11:46Z")

</div>

I am looking for a model to organize my ui classes so that more than one class can apply to the same displayObject. Consider this example:

I have a AlphaButton Class extending from MovieClip that changes the alpha state on MOUSE\_OVER and MOUSE\_OUT.

I have a ScrollButton Class extending from MovieClip that holds actions to scroll a scrollbar.

I want to keep these 2 classes separate so that they may be reusable in other projects. But right now, I want a ScrollButton that has the AlphaButton interactivity.

I can’t attach both these classes to the same MovieClip via the flash library unless one extends the other (which defeats the whole purpose of keeping them modular). Does anyone have a solution for this?
