code:
var navVars = new LoadVars();
navVars.load("variables1.txt");
navVars.onLoad = function(success) {
if (success) {
//trace that the variables have loaded
//trace("success")
//trace the type of object you are dealing with
//trace(typeof (this.level1)); // string
//split the varibles into their respective arrays
this.navArray1=this.level1.split(":");
this.navArray2=this.level2.split(":");
trace(typeof (this.navArray1));
trace(this.navArray1.length); // 4
trace(this.navArray1[0])
array_length = this.navArray1.length;
for (i=0; i<array_length; i++) {
trace(this.navArray1[i]);
}
}
};