I have created a listbox using the tutorial on this site and have customised the actionscript to my own needs.I have now come to a small problem.
I am making an offline mp3/video player that will basically allow me to search through all the various artists and their albums.
I have got the listbox working fine and also the combobox.
What I am having trouble with is coding the combobox so when I click on an album(this is after the artist name has been clicked on from the listbox) it opens a link to a full playlist/video in realplayer.
How do I make a piece of text that appears in the combobox,a link?
:: EDIT ::
This is the actionscript I have at the moment,it sort of works but in a way that i dont want it to.
onChange = function () {
if (mycomboBox.getValue() == “null”) {
mylistBox.removeAll();
// Adds the only needed for this value
mylistBox.addItem(“Please Selected One”, “Select One”);
}
if (mycomboBox.getValue() == “Acid Bath”) {
mylistBox.removeAll();
mylistBox.addItem(“When The Kite String Pops”);
mylistBox.addItem(“Paegan Terrorism Tactics”);
if (mylistBox.getValue() == “When The Kite String Pops”);
mylistBox.getURL(“D:/music/acid bath/when the kite string pops/full album.m3u”); {
}
}
if (mycomboBox.getValue() == "Agents Of Oblivion") {
mylistBox.removeAll();
mylistBox.addItem("Agents Of Oblivion");
}
}
Thanks.