Hey fellow Kirupians,
I have the following code and i need it to be able to use the line
_root.songPlay = this.song+(_root.songNum);
to change to _root.songPlay = this.song1
_root.songPlay = this.song2
_root.songPlay = this.song3
and so on as the songNum changes variables.
However, it wont work properly, does anyone see how i can script that line to use whatever songNum is at the moment?
_root.songNum = 1;
loadText = new LoadVars();
loadText.load("info.txt");
loadText.onLoad = function() {
_root.songPlay = this.song+(_root.songNum);
trace(songPlay);
maxNum.text = this.maxNum;
songName.text = _root.songPlay;
};
~ Lacuna aka Seretha B. :love: