# UI component "Button"

**URL:** <https://forum.kirupa.com/t/ui-component-button/328853>\
**Category:** flash\
**Created:** [June 24, 2012, 9:14pm UTC](https://forum.kirupa.com/t/ui-component-button/328853 "2012-06-24T21:14:20Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hummerr](https://avatars.discourse-cdn.com/v4/letter/h/13edae/32.png) [@Hummerr](https://forum.kirupa.com/u/Hummerr)\
**Post date:** [June 24, 2012, 9:14pm UTC](https://forum.kirupa.com/t/ui-component-button/328853/1 "2012-06-24T21:14:20Z")

</div>

Hi everyone, I need to realize the UI component “button” with it’s own logic, that has methods or properties which allows to change: Number, color, lock-unlock and other. But there is one important detail - if the number that is centralized on the button will be longer than five symbols - the button must expand. Do you know where to find some examples, or may be you can give some advices 🙂 Thanks! 🙂
