# Dynamically position button with action inside

**URL:** <https://forum.kirupa.com/t/dynamically-position-button-with-action-inside/266739>\
**Category:** Uncategorized\
**Created:** [July 23, 2008, 10:12pm UTC](https://forum.kirupa.com/t/dynamically-position-button-with-action-inside/266739 "2008-07-23T22:12:00Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![tobycraftse](https://avatars.discourse-cdn.com/v4/letter/t/7bcc69/32.png) [@tobycraftse](https://forum.kirupa.com/u/tobycraftse)\
**Post date:** [July 23, 2008, 10:12pm UTC](https://forum.kirupa.com/t/dynamically-position-button-with-action-inside/266739/1 "2008-07-23T22:12:00Z")

</div>

I have 100 button icon, when flash program runs, how to dynamically choose button i want and put it on canvas using action script?

for example, when user choose computer - all icon button related to computer will get put on canvas … etc

each button will have action script attach to it and do something.

any examples?
