# Dynamically creating buttons?

**URL:** <https://forum.kirupa.com/t/dynamically-creating-buttons/230893>\
**Category:** flash\
**Created:** [June 29, 2007, 6:54pm UTC](https://forum.kirupa.com/t/dynamically-creating-buttons/230893 "2007-06-29T18:54:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![domdom](https://avatars.discourse-cdn.com/v4/letter/d/59ef9b/32.png) [@domdom](https://forum.kirupa.com/u/domdom)\
**Post date:** [June 29, 2007, 6:54pm UTC](https://forum.kirupa.com/t/dynamically-creating-buttons/230893/1 "2007-06-29T18:54:52Z")

</div>

Hello. I’m using Flash CS3, Actionscript 2.0 and I’m trying to create buttons dynamically.

I tried to follow the code in the link below.

[http://www.kirupa.com/forum/showthread.php?t=7574&highlight=create+buttons+dynamically](http://www.kirupa.com/forum/showthread.php?t=7574&highlight=create+buttons+dynamically)

The code is correct for the most part but the only problem I have is that only the last button appears. For example, if I try to create 10 buttons, only the 10th button is created.
