# Dynamically Load Image

**URL:** <https://forum.kirupa.com/t/dynamically-load-image/283872>\
**Category:** flash\
**Created:** [March 12, 2009, 12:33am UTC](https://forum.kirupa.com/t/dynamically-load-image/283872 "2009-03-12T00:33:15Z")\
**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 12, 2009, 12:33am UTC](https://forum.kirupa.com/t/dynamically-load-image/283872/1 "2009-03-12T00:33:15Z")

</div>

I am using Flash CS4 and ActionScript 3. I think what I need is pretty simple, but i’m pretty new to this.

I am trying to dynamically load text and an image from an XML File.

I can load the XML file, and populate the dynamic textbox with the text. But I can’t figure out what to put the image in.

After the XML is loaded, i do:

textbox.text = (XmlInfo.Node.child.text());

What object or whatever do i use for images?  
Thanks
