Difference between revisions of "Load Variables from Text File"

From scripting
Jump to: navigation, search
(Created page with " loadText = new loadVars(); loadText.load("resume.txt"); loadText.onLoad = function() { scroller.text = this.resumetext; }; loadTextC = new loadVars(); loadTextC.l...")
 
(No difference)

Latest revision as of 07:16, 22 April 2017

loadText = new loadVars();
loadText.load("resume.txt");

loadText.onLoad = function() {
		scroller.text = this.resumetext;
};

loadTextC = new loadVars();
loadTextC.load("contact.txt");

loadTextC.onLoad = function() {
		ContactData.text = this.title  + "     " +  this.email  + "     " +  "[cell]: " + this.cell  + "     " + "[home]: " + this.home;
};