# Help w/ XML Image Loading, please

**URL:** <https://forum.kirupa.com/t/help-w-xml-image-loading-please/324382>\
**Category:** Uncategorized\
**Created:** [August 18, 2011, 1:57am UTC](https://forum.kirupa.com/t/help-w-xml-image-loading-please/324382 "2011-08-18T01:57:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ierick7](https://avatars.discourse-cdn.com/v4/letter/i/a9adbd/32.png) [@ierick7](https://forum.kirupa.com/u/ierick7)\
**Post date:** [August 18, 2011, 1:57am UTC](https://forum.kirupa.com/t/help-w-xml-image-loading-please/324382/1 "2011-08-18T01:57:52Z")

</div>

I have a mp3 player I’m building. I finally got all I want in it except one thing. I’m still somewhat green n AS3, and I know I am doing something very wrong.

Please, please, please, please help…

here’s the call after the xml loads (it does load fine, since the title, artist, etc loads except the image:

```auto

function playSong(mySong:Number):void {
	var myTitle = my_songs[mySong].@TITLE;
	var myArtist = my_songs[mySong].@ARTIST;
	var myAlbum = my_songs[mySong].@ALBUM;
	var myArt = my_songs[mySong].@IMG;
	var myURL = my_songs[mySong].@URL;

	control_bar.now_playing.title_txt.text = myTitle;
	control_bar.now_playing.artist_txt.text = myArtist;
	control_bar.now_playing.album_txt.text = myAlbum;
	artwork_img.load(new URLRequest) = myArt;

```

Again I’m sure it is way off… but here is a snippet from the xml:

```auto

<playlist>
    <SONG URL="mp3/commercial.mp3"
	TITLE="the title"
	ARTIST="the artist"
	ALBUM="the album"
	IMG="img/commercial.png" />
</Playlist>

```

If anyone can help I’ll greatly appreciate it, thanks a million in advance.
