well I see two problems off the top. First the Date object returns a number not text for the date so Sunday = 0, Monday = 1, etc. Second problem is that your if statements won't work. "=!" isn't valid for what you wrote you want "==" (is equal to) or "!=" (is not equal to). You'll probably have better luck with a case statement instead of a chain of if/else statements.
[code]
var currDate = New Date(); // get date from computer
var currDay = currDate.getDay(); // get day of week from date
var myData = new LoadVars(); // new load vars object
myData.onLoad = function(){
myText_txt.text = this.toString();
}
switch (currDay) {
case 0 :
myData.load("sunday.txt");
break;
case 1 :
myData.load("monday.txt");
break;
case 2 :
myData.load("tuesday.txt");
break;
case 3 :
myData.load("wednesday.txt");
break;
case 4 :
myData.load("thursday.txt");
break;
case 5 :
myData.load("friday.txt");
break;
case 6 :
myData.load("saturday.txt");
break;
If at first you don't succeed F1... If that doesn't work try Google!
//// Designer, Developer & Teacher - Interactive, Motion and 3D \\\\
Portfolio at WhenImNotSleeping.com