Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

as2 form not working within action scripts

New Here ,
Jul 11, 2013 Jul 11, 2013

this script is working on online but when i put this code within my project action scripts, its not working,,,

stop();

System.useCodepage = true;

send_btn.onRelease = function() {

    my_vars = new LoadVars();

    my_vars.sender = email_box.text;

    my_vars.subject = subject_box.text;

    my_vars.message = message_box.text;

    if (my_vars.sender != "" and my_vars.subject != "" and my_vars.message != "") {

        my_vars.sendAndLoad("mailer.php", my_vars, "POST");

        gotoAndStop(72);

    } else {

        error_clip.gotoAndPlay(72);

    }

    my_vars.onLoad = function() {

        gotoAndStop(73);

    };

};

email_box.onSetFocus = subject_box.onSetFocus=message_box.onSetFocus=function () {

    if (error_clip._currentframe != 1) {

        error_clip.gotoAndPlay(6);

    }

};

TOPICS
ActionScript
371
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
LEGEND ,
Jul 11, 2013 Jul 11, 2013
LATEST

Are you testing on a server?  If not, do you have PHP installed to support trying to call upon a PHP file?

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines