# \[fmx04\] Problem creating links on dynamic data from database

**URL:** <https://forum.kirupa.com/t/fmx04-problem-creating-links-on-dynamic-data-from-database/59449>\
**Category:** flash\
**Created:** [July 31, 2004, 5:09pm UTC](https://forum.kirupa.com/t/fmx04-problem-creating-links-on-dynamic-data-from-database/59449 "2004-07-31T17:09:56Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![neiro](https://avatars.discourse-cdn.com/v4/letter/n/ebca7d/32.png) [@neiro](https://forum.kirupa.com/u/neiro)\
**Post date:** [July 31, 2004, 5:09pm UTC](https://forum.kirupa.com/t/fmx04-problem-creating-links-on-dynamic-data-from-database/59449/1 "2004-07-31T17:09:56Z")

</div>

I am loading data into a dynamic textbox from my database using the loadVariables() function.

I am trying to create buttons that have a link like a mailto using the data from the database.

For example:  
on (press){  
getURL(“mailto:”+variable from database);  
}

The variable is already loaded into the dynamic textbox, I just have to figure out how to pass it to the as code above.

Can anyone help me figure this out.

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)\
**Post date:** [July 31, 2004, 10:41pm UTC](https://forum.kirupa.com/t/fmx04-problem-creating-links-on-dynamic-data-from-database/59449/2 "2004-07-31T22:41:11Z")

</div>

Well, for that solution, you can just do  
getURL(“mailto:” + mydynamictextbox.text);

Make sure you put the full location of ‘mydynamictextbox,’ so if your textbox is in the \_root timeline and is named ‘thebox,’ your code would be

getURL(“mailto:” + \_root.thebox.text);

but i would look into LoadVars() object; it tends to be a better solution that loadVariables().

–EP
