Skip navigation
w3developing
Currently Being Moderated

Frustration Beyond Belief w/ : gotoAndPlay( );

Jun 5, 2007 7:19 PM

Can anyone help? I'm losing my mind

I must be going crazy, but I created a simple php/flash submission form, and for some reason my 2nd frame (which has the message "Thank you for your submission.") keeps blinking as if it's just an endless loop between frames one and two. Below is my code and this is what I am doing:

1) Insert keyframe (in keyframe 2 position layer 1)

2) Insert the below code (which is working flawless otherwise)

on (release) {
if (name eq "" or email eq "" or phone eq "" or details eq "") {

} else {
loadVariablesNum(" http://mysite.com/quickquote.php", 0, "POST");
name = "";
email = "";
phone = "";
details = "";
gotoAndPlay(2);
}
}
 
Replies
  • Currently Being Moderated
    Jun 5, 2007 7:43 PM   in reply to w3developing
    try gotoAndStop(2); ? what version of AS are you using?

    Chris Georgenes / mudbubble.com / keyframer.com / Adobe Community Expert


    w3developing wrote:
    > Can anyone help? I'm losing my mind
    >
    > I must be going crazy, but I created a simple php/flash submission form, and
    > for some reason my 2nd frame (which has the message "Thank you for your
    > submission.") keeps blinking as if it's just an endless loop between frames one
    > and two. Below is my code and this is what I am doing:
    >
    > 1) Insert keyframe (in keyframe 2 position layer 1)
    >
    > 2) Insert the below code (which is working flawless otherwise)
    >
    > on (release) {
    > if (name eq "" or email eq "" or phone eq "" or details eq "") {
    >
    > } else {
    > loadVariablesNum(" http://mysite.com/quickquote.php", 0, "POST");
    > name = "";
    > email = "";
    > phone = "";
    > details = "";
    > gotoAndPlay(2);
    > }
    > }
    >
     
    |
    Mark as:
  • Currently Being Moderated
    Jun 5, 2007 8:04 PM   in reply to w3developing
    take out gotoAndPlay(2); and enter gotoAndStop(2); or just put a stop(); action on frame 2. same outcome
     
    |
    Mark as:
  • Currently Being Moderated
    Jun 5, 2007 8:17 PM   in reply to w3developing
    are you using multipe scenes by any chance? Try giving frame 2 a frame label and targeting that instead

    gotoAndStop("label");

    make sure you add a stop(); action on the frame as well.

    Chris Georgenes / mudbubble.com / keyframer.com / Adobe Community Expert


    w3developing wrote:
    > Did it and tried it before. Still not working :( here is my frame 2 code:
    >
    > on (release) {
    > if (name eq "" or email eq "" or phone eq "" or details eq "") {
    > start();
    > } else {
    > loadVariablesNum(" http://mysite.com/myfile.php", 0, "POST");
    > name = "";
    > email = "";
    > phone = "";
    > details = "";
    > gotoAndStop(2);
    > }
    > }
    >
     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points