# Dynamically add link to text box

**URL:** <https://forum.kirupa.com/t/dynamically-add-link-to-text-box/283971>\
**Category:** flash\
**Created:** [March 13, 2009, 1:54am UTC](https://forum.kirupa.com/t/dynamically-add-link-to-text-box/283971 "2009-03-13T01:54:50Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![bortiquai](https://avatars.discourse-cdn.com/v4/letter/b/c5a1d2/32.png) [@bortiquai](https://forum.kirupa.com/u/bortiquai)\
**Post date:** [March 13, 2009, 1:54am UTC](https://forum.kirupa.com/t/dynamically-add-link-to-text-box/283971/1 "2009-03-13T01:54:50Z")

</div>

I am dynamically loading data from an XML file into a text box. That part I have. But I would also like to have the TextBox a URL. Is there a way to also load the URL from the XML file?

I tried textbox.url = (MyXMLInfo)xml.node.child.text());

But I get an error in the output, “Cannot create property url on flash.text.TextField”

EDIT::::::  
Ok, i remembered the addEventListener, and got that working. Except how can I make it so when the mouse is over the text, it turns into the finger icon instead of the I-Bar?

Thanks
