Flash script help!

Out of context: Reply #9

  • Started
  • Last post
  • 9 Responses
  • zerofour0

    Thanks for the null part... Yeah solve 1 problem now the 2nd problem

    on (release) {
    // Now import the variables we
    // need to send in this movie clip
    sender_mail = _root.Semail.text;
    // all the vars we just imported
    // will be sent via POST method now
    loadVariables("sendmail.php", this, "POST");
    // and when receives the answer from
    // the server...
    this.onData = function() {
    for (var a in this) {
    trace([a, this[a]]);
    }
    // ok, next frame
    _root.nextFrame();
    if (this.output == 'sent') {
    // in case of success
    _root.errType = "You are subscribed.";
    } else {
    // else
    _root.errType = "Error.";
    }
    };
    }

View thread