# Link variables?

**URL:** <https://forum.kirupa.com/t/link-variables/78678>\
**Category:** Uncategorized\
**Created:** [February 7, 2005, 6:12am UTC](https://forum.kirupa.com/t/link-variables/78678 "2005-02-07T06:12:44Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![employee\_416](https://avatars.discourse-cdn.com/v4/letter/e/4bbf92/32.png) [@employee\_416](https://forum.kirupa.com/u/employee_416)\
**Post date:** [February 7, 2005, 6:12am UTC](https://forum.kirupa.com/t/link-variables/78678/1 "2005-02-07T06:12:44Z")

</div>

well, i recently made a streaming mp3 player in flash. im pleased with my work, but i have one problem. i wanted to add a way to download the song that is currently playing. im using xml as the playlist. right now, i have:

```auto
load_txt.text = (index+1)+". "+Songs[index].title+" - "+Songs[index].artist;

```

i want to be able to click on the text and download the current song.  
so:

```auto

load_txt.html = true
load_txt.htmlText = "<a href='Songs[index].url' target='_blank'>(index+1)+'. '+Songs[index].title+' - '+Songs[index].artist</a>"

```

that doenst work. i was wondering if there was any way to assign a link to a variable in a dynamic textbox. any help would be greatly appreciated. thank you. if you want .fla or the actionscript code, i will provide upon request.
