11 Replies Latest reply on Apr 22, 2009 1:54 PM by kglad

    send and reset buttons won't work on contact form

    gotoAndExplore

      Hey, I'm using Flash CS3 and ActionScript 2. I've created a simple contact page, inside a movie clip (because I got it fading in and out), I've put the script on the main timeline, so not inside the movie, but the send and reset buttons won't respond all. I've checked the instance names and spellings are correct, here's the script I'm using:

       

      contact_tween.send_button.onPress = function() {

               if (name eq "" or subject eq "" or message eq "" or email eq "") {

                     stop();

               } else {

               loadVariablesNum("form.php", 0, "POST");

               gotoAndPlay(211);

           }

      };

       

      contact_tween.reset_button.onPress = function() {

           name="";

           subject="";

           message="";

           email="";

      };

       

      so, what am I doing wrong? any help appreciated, thanks.

       

      ps. contact_tween is the name of movie I created to fade the whole contact page in and out.