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?