Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 1 of 1
  1. #1
    New to the CF scene
    Join Date
    Jul 2011
    Posts
    1
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Unhappy Submit Button unable to go to designated frame.

    Hi, I am a beginner in Actionscript so would require some assitance.

    Right below I am trying to click the submit button to go to a particular frame after going through an if condition but it does not seem to work.

    Below are my codes:
    on (press) {
    function onClick() {
    var selectedVal = radioGroup.getValue();
    if (selectedVal == 'Wrong') {
    trace("YOU ARE WRONG!");
    gotoAndStop(2);
    } else {
    gotoAndStop(3);
    }
    }
    submitBtn.setClickHandler("onClick");
    }
    Thanks for your kind help!
    Last edited by flyingpapers; 07-04-2011 at 07:34 AM.


 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •