6 Replies Latest reply on Dec 20, 2006 5:00 AM by mullacthe1st

    load variables email address from text file anyone?

    mullacthe1st
      I have the code below attached to a movieclip which i am attempting to use to call in an email address from a text file. The idea being that the textfile can be altered by a luddite, and the recipient email adress changed in the flash file.... but i'm not doing too well...!

      The best i have achieved is undefined email or garbage.

      all help greatfully received. thanks.

      ___________________________________
      on (rollOver) {
      this.gotoAndPlay(2);
      }
      on (release) {
      loadText = function(){
      loadText = new LoadVars();
      loadText.load("email.txt");
      loadText.onLoad = function() {
      emailAddress = this.eAddress;
      }
      }
      submit.onRelease = function(){
      getURL("mailto:"+emailAddress);
      }
      }
      on (rollout) {
      this.gotoAndPlay(1);