# Dynamic hyperlink (multi row data)

**URL:** <https://forum.kirupa.com/t/dynamic-hyperlink-multi-row-data/51268>\
**Category:** flash\
**Created:** [May 11, 2004, 1:34pm UTC](https://forum.kirupa.com/t/dynamic-hyperlink-multi-row-data/51268 "2004-05-11T13:34:10Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![monasa](https://avatars.discourse-cdn.com/v4/letter/m/d78d45/32.png) [@monasa](https://forum.kirupa.com/u/monasa)\
**Post date:** [May 11, 2004, 1:34pm UTC](https://forum.kirupa.com/t/dynamic-hyperlink-multi-row-data/51268/1 "2004-05-11T13:34:10Z")

</div>

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](http://www.experts-exchange.com/Web/WebDevSoftware/Flash/Q_20982493.html#). There are multiple rows of returned data.

Code Description

* * *

A1 [Notebook](http://www.experts-exchange.com/Web/WebDevSoftware/Flash/Q_20982493.html#) \<button\>  
A2 [PC](http://www.experts-exchange.com/Web/WebDevSoftware/Flash/Q_20982493.html#) \<button\>  
A3 VGA Card \<button\>  
A4 [Projector](http://www.experts-exchange.com/Web/WebDevSoftware/Flash/Q_20982493.html#) \<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]](http://localhost/getdetail.asp?code=)\<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;

```

}
