When you built any mp3 or sound player .....we keep all the
mp3 track name and path in an external XML file......you load the
xml file through flash's xml object then parse it and store the
relative paths in an array.....we search the array depending on the
paths or any predefined id..... and play or load the sound....
using xml has number of advantages .... major is you need to
edit your code ... when you want to change or add songs....... you
only have to change the external xml.....
any way you can store your songs in an array .... inside the
flash and loop through it .... retrieve the file you want to
the only way to execute any specific line of code is to put
it inside a function and then call that function from the place you