Load Variables from Text File

From scripting
Revision as of 07:16, 22 April 2017 by Nickpisca (talk | contribs) (Created page with " loadText = new loadVars(); loadText.load("resume.txt"); loadText.onLoad = function() { scroller.text = this.resumetext; }; loadTextC = new loadVars(); loadTextC.l...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search
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;
};