First of all i appreciate any help in advance and I’ll try to make this as simple as possible…
I have 3 list boxes, and i’m using my variables sources from a seperate txt document
In the txt document i have a list of PEOPLE, then a list of ARTISTS, then a list of ALBUMS. When i click on a person in one list box, the next listbox will pop up a set of artists. When i click on something in the artists box a list of albums by that artist will pop up in the next list box.
I was able to work it down to the albums list box, which i can’t seem to get to work.
How i cataloged the variables are like this:
&Chris0=AC/DC&
&ChrisAlb0=1&
&Chris0a0=Back In Black&
&Chris1=Aerosmith&
&ChrisAlb1=2&
&Chris1a0=Just Push Play&
&Chris1a1=Toys In The Attic&
etc
Chris# is the artist
ChrisAlb# is the artist’s number of albums avail.
Chris#a# is the album
How i set up the code in flash is as follows:
[AS]
function displayDetails©{
if(c.getSelectedItem().label == “Chris Engelsma”){
textbox.text = “Dass Niemand”;
artists.removeAll();
max = _root.MaxChris
for(i=0;i<_root.MaxChris;i++){
artists.addItem(_root[“Chris”+i]);
}
}
}
list.setChangeHandler(“displayDetails”);
[/AS]
From this code, i can get the artists of the particular person to show up.
What i want to do, is have it so when you click on the artist listbox, the albums listbox will pop up with the albums of that artist