theonyxguy
09-15-2006, 05:51 PM
I was wondering if it was possible to save variables in a .txt to populate information to a SharedObject. It would be easier for me to update the text file instead of publishing a new swf. This is the code I used:
loadVariables("URLs.txt","");
user_visit = SharedObject.getLocal("user");
if(user_visit.data.month == Month) {
gotoAndPlay("s1a");
}
else {
user_visit.data.month = Month;
}
But when I change Month in the .txt the swf doesn't change. If I was to do it in the swf the code works as it should. Any suggestions?
Thanks,
TOG
loadVariables("URLs.txt","");
user_visit = SharedObject.getLocal("user");
if(user_visit.data.month == Month) {
gotoAndPlay("s1a");
}
else {
user_visit.data.month = Month;
}
But when I change Month in the .txt the swf doesn't change. If I was to do it in the swf the code works as it should. Any suggestions?
Thanks,
TOG