# Flex 4: Using custom button for ButtonBar's middleButton skin part

**URL:** <https://forum.kirupa.com/t/flex-4-using-custom-button-for-buttonbars-middlebutton-skin-part/324454>\
**Category:** flash\
**Created:** [August 22, 2011, 7:31am UTC](https://forum.kirupa.com/t/flex-4-using-custom-button-for-buttonbars-middlebutton-skin-part/324454 "2011-08-22T07:31:53Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![OmerHassan](https://avatars.discourse-cdn.com/v4/letter/o/59ef9b/32.png) [@OmerHassan](https://forum.kirupa.com/u/OmerHassan)\
**Post date:** [August 22, 2011, 7:31am UTC](https://forum.kirupa.com/t/flex-4-using-custom-button-for-buttonbars-middlebutton-skin-part/324454/1 "2011-08-22T07:31:53Z")

</div>

I made a custom component, BitmapButton, which is based on spark.components.Button. It basically just takes three Bitmap objects - upBitmap, overBitmap and downBitmap - and then its skin class, BitmapButtonSkin, uses these bitmaps for each state.

Now the problem: I want to make a ButtonBar which uses my BitmapButton for its buttons. What do you think would be the right way to approach this? Do I need to create a new component such as ToggleBitmapButton and then its skin or can I reuse the classes I’ve already made?
