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:
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:
<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.