Dynamic hyperlink (multi row data)

I have created a flash file named “test.swf” and this file will call the “getdata.asp” file to retrieve the data from the database. There are multiple rows of returned data.

Code Description


A1 Notebook <button>
A2 PC <button>
A3 VGA Card <button>
A4 Projector <button>

How do I make the hyperlink to each of the <button> so that whenever a <button> is clicked, the “[color=#0000ff]http://localhost/getdetail.asp?code=[/color]<key>” will be called, whereby <key> is the code associated to each of the row.

This is the code in my Flash file.

for (i=0; i<ids_length; i++) {

 // codes
 duplicateMovieClip(codes, "codes" add i, depth);
 setProperty("codes" add i, _y, yposition);
 codes.codes = codes_array[1];
 set("codes" add i add ".info", codes_array*);
 depth--;

 // desc
 duplicateMovieClip(desc, "desc" add i, depth);
 setProperty("desc" add i, _y, yposition);
 desc.desc= desc_array[1];
 set("desc" add i add ".info", desc_array*);
 depth--;
 

 // Set the y position plus 30
 yposition = yposition+30;

}