4 Replies Latest reply on Dec 19, 2007 11:27 AM by Newsgroup_User

    as scrit to e mail? does not send

    jon gibbons
      i have viewed many different scipts? none the same.

      i followed my lesson and developed the following script and attached it to the button, but it does not work, the trace works.

      Can someone tell me why only the email appears in the default e mail browser:

      on (click) {
      // these statements simply read the data from the input fields
      // and print them to the output window for debugging
      trace(this._parent.body.text);
      trace(this._parent.body1.text);
      trace(this._parent.body2.text);
      trace(this._parent.body3.text);
      trace(this._parent.body4.text);
      trace(this._parent.body5.text);
      trace(this._parent.body6.text);
      trace(this._parent.body7.text);
      trace(this._parent.body8.text);
      trace(this._parent.body9.text);
      trace(this._parent.body10.text);
      trace(this._parent.body11.text);
      trace(this._parent.body12.text);
      trace(this._parent.body13.text);
      trace(this._parent.body14.text);
      trace(this._parent.body15.text);
      trace(this._parent.body16.text);
      trace(this._parent.body17.text);
      trace(this._parent.body18.text);
      trace(this._parent.body19.text);
      trace(this._parent.body20.text);
      trace(this._parent.body21.text);
      trace(this._parent.body22.text);
      trace(this._parent.body23.text);
      trace(this._parent.body24.text);
      trace(this._parent.body25.text);
      trace(this._parent.body26.text);
      // save the return email address
      returnEmail = this._parent.to.text;
      // create an empty string variable to store the data
      urlData = "";
      urlData += "body: "+this._parent.body.text+newline+" ";
      urlData += "body1: "+this._parent.body1.text+newline+" ";
      urlData += "body2: "+this._parent.body2.text+newline+" ";
      urlData += "body3: "+this._parent.body3.text+newline+" ";
      urlData += "body4: "+this._parent.body4.text+newline+" ";
      urlData += "body5: "+this._parent.body5.text+newline+" ";
      urlData += "body6: "+this._parent.body6.text+newline+" ";
      urlData += "body7: "+this._parent.body7.text+newline+" ";
      urlData += "body8: "+this._parent.body8.text+newline+" ";
      urlData += "body9: "+this._parent.body9.text+newline+" ";
      urlData += "body10: "+this._parent.body10.text+newline+" ";
      urlData += "body11: "+this._parent.body11.text+newline+" ";
      urlData += "body12: "+this._parent.body12.text+newline+" ";
      urlData += "body13: "+this._parent.body13.text+newline+" ";
      urlData += "body14: "+this._parent.body14.text+newline+" ";
      urlData += "body15: "+this._parent.body15.text+newline+" ";
      urlData += "body16: "+this._parent.body16.text+newline+" ";
      urlData += "body17: "+this._parent.body17.text+newline+" ";
      urlData += "body18: "+this._parent.body18.text+newline+" ";
      urlData += "body19: "+this._parent.body19.text+newline+" ";
      urlData += "body20: "+this._parent.body20.text+newline+" ";
      urlData += "body21: "+this._parent.body21.text+newline+" ";
      urlData += "body22: "+this._parent.body22.text+newline+" ";
      urlData += "body23: "+this._parent.body23.text+newline+" ";
      urlData += "body24: "+this._parent.body24.text+newline+" ";
      urlData += "body25: "+this._parent.body25.text+newline+" ";
      urlData += "body26: "+this._parent.body26.text+newline+" ";
      urlData += "to: "+this._parent.to.text+newline+" ";
      trace(urlData);
      getURL("mailto:jonathan.gibbons@3designasia.com?subject=CompanyEmployeeInfo&body="+urlDat a);
      }

      yours

      jon