# Load dynamic URL on to image

**URL:** <https://forum.kirupa.com/t/load-dynamic-url-on-to-image/312726>\
**Category:** flash\
**Created:** [August 11, 2010, 12:37pm UTC](https://forum.kirupa.com/t/load-dynamic-url-on-to-image/312726 "2010-08-11T12:37:51Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![nhilez](https://avatars.discourse-cdn.com/v4/letter/n/51bf81/32.png) [@nhilez](https://forum.kirupa.com/u/nhilez)\
**Post date:** [August 11, 2010, 12:37pm UTC](https://forum.kirupa.com/t/load-dynamic-url-on-to-image/312726/1 "2010-08-11T12:37:51Z")

</div>

I have an arrow image I want to pass a URL to dynamically. This image is in a movie where the content comes in via an XML and scrolls through a number of messages. Each message has its own destination URL, and I want this URL to be attached to the existing arrow so that the arrow image is a link. How do I do this?  
If this was just a textfield I’d do something like this:  
var myURL:String = “\<a href=’” + URLfromXML + "’\> + someText + “\</a\>”;  
field.htmlText = myURL;  
But of course this won’t work since this isn’t a text field, it’s an image. Right now the image is a gif but it could easily be made into a movie clip or button.
