Hi, I’ve done the following
[AS]
playList_lv = new LoadVars();
playList_lv.load(“playlist.txt”);
playList_lv.onLoad = function(){
_root.playList1 = this.playlist.split(";");
}
trace(_root.playList1);
[/AS]
and for playlist.txt:
playlist=a;b;c
trace returns undefined.
but when i place trace inside the onload function,…
[AS]
playList_lv = new LoadVars();
playList_lv.load(“playlist.txt”);
playList_lv.onLoad = function(){
_root.playList1 = this.playlist.split(";");
trace(_root.playList1);
}
[/AS]
trace gives me a,b,c. am i missing out something? i cant seem to access the array from outside onLoad() …