# Dynamically created button not UI btn

**URL:** <https://forum.kirupa.com/t/dynamically-created-button-not-ui-btn/200802>\
**Category:** Uncategorized\
**Created:** [September 15, 2006, 8:36am UTC](https://forum.kirupa.com/t/dynamically-created-button-not-ui-btn/200802 "2006-09-15T08:36:58Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![dkmystery](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/dkmystery/32/2562_2.png) [@dkmystery](https://forum.kirupa.com/u/dkmystery)\
**Post date:** [September 15, 2006, 8:36am UTC](https://forum.kirupa.com/t/dynamically-created-button-not-ui-btn/200802/1 "2006-09-15T08:36:58Z")

</div>

i there,  
I am extracting some filenames thru php in my flash movie. this is a pt of the code: …  
$envelope.sendAndLoad(“login.php”, $envelope\_received);  
…  
file\_name = $envelope\_received.filename;  
//this, file\_name now has names of files received thru the ‘login.php’.  
//I display it on a txt area:  
n = file\_name;  
myArray = n.split (",");  
for (i = 0; i \< myArray.length; i++)  
{  
file\_txt.text = myArray.join ("  
");  
}

Now, what i want is that simple btns(not ui component btns) should be created equaling to the no of filenames extracted. The text on these btns should be the filename extracted. So, if 3 files r extracted; 3 btns will be created with 3 different names and then they should have their own personal links to something like:  
“download.php?id=” + file\_name  
How to achieve this?
