Hello stone,

sl> Thanks for the reply, can you give an example of what
sl> you are referring to? I'm not quite understanding.
yep. my english is hmmm...

try convert this code to AS2.
just path to variables added:

function sendEmail() {
  var lv = new LoadVars();
  this.new_lv = new LoadVars();
  lv.email = email.text;
  this.new_lv.onData = this.getResponse;
  lv.sendAndLoad("emailSubmit.php", this.new_lv, "POST");
}
function getResponse(success) {
  if (success) {
    if (this.status == "ok") {
      this.gotoAndStop(2);
    } else {
      this.message.text = "Problem";
    }
  } else {
    this.message.text = "Problem";
  }
}
this.stop();
this.submit_btn.onRelease = function() {
  var indexOfAt = this._parent.email.text.indexOf("@");
  var lastIndexOfDot = this._parent.email.text.lastIndexOf(".");
  if (indexOfAt != -1 && lastIndexOfDot != -1) {
    if (lastIndexOfDot<indexOfAt || indexOfAt == 0) {
      this._parent.message.text = "Verify Email";
    } else {
      this._parent.sendEmail();
    }
  } else {
    this._parent.message.text = "Correct Email";
  }
};





-- 
Ivan Dembicki
____________________________________________________________________________
[EMAIL PROTECTED] |                                        | 
http://www.design.ru

_______________________________________________
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to