loadSongs

Version 1
loadSongs - loads an XML file and calls makePlaylist()

Description

boolean loadSongs ( playlist:String )

loadSongs() loads an XML file into an XML-cast variable. Will return true if loading succeeded or false if failed. It's up to you to figure out what went wrong.

Example:

Say, for instance, you loaded a default playlist but wanted the user to be able to change it. Something as simple as a button can completely change the playlist for the entire script. Yay!
//Construct player and load playlist
var player:Mp3Jukebox = new Mp3Jukebox("playlist.xml");

//Allow user to change the playlist to something else
myButton.onRelease = function()
{
    player.loadSongs("_xml/user_playlist.xml");
}

See also: makePlaylist()

Home

Public Functions