# Buttons on run time

**URL:** https://forum.kirupa.com/t/buttons-on-run-time/193898
**Category:** flash
**Created:** [July 19, 2006, 3:47am UTC](https://forum.kirupa.com/t/buttons-on-run-time/193898 "2006-07-19T03:47:19Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![Hermet](https://avatars.discourse-cdn.com/v4/letter/h/4af34b/32.png) [@Hermet](https://forum.kirupa.com/u/Hermet)
#### Post date: [July 19, 2006, 3:47am UTC](https://forum.kirupa.com/t/buttons-on-run-time/193898/1 "2006-07-19T03:47:19Z")

</div>

I have a database of articles (title of article and content of article). I want to display all the articles in a dynamic text field in this way:  
For every entry, a button is created with the article’s title as its caption and the ID of the row in the database as a tag/attached value to the button. When the user clicks a button, the script attached to the button does the following:  
on (release) {  
[//1.get](https://1.get) the tag attached to the button which represents the ID of the corresponding article  
[//2.connect](https://2.connect) to the database to get the content of the article whose id is the one in (1.)  
//3. display the content in a dynamic text which represents the main display area  
}

The question is: How can I create these buttons on runtime and attach them a tag/ID/anything similar which can be retrieved later?
