A Flash Developer Resource Site

Results 1 to 6 of 6

Thread: radio button quiz

  1. #1
    Junior Member
    Join Date
    Jun 2002
    Posts
    9

    radio button quiz

    any help is appreciated!

    i'm building a 12 question quiz. it has 12 frames- a question with 4 possible choices on each frame. you can navigate to any question at any time and change answers before hitting the submit button to tally up your score. here's my question:

    how do i get the radio buttons to remember if they were selected or not when you come back to the question?

    if i can get them to remember themselves then i think i know how to get the submit button to tally up the score. THANKS!!

  2. #2
    FK'n_dog a_modified_dog's Avatar
    Join Date
    Apr 2003
    Location
    "aaarf"
    Posts
    9,176
    at the link is a simple fla that uses checkboxes and radiobuttons with
    code that "remembers" the state of each button between frames

    hope you can make use of the logic in your project

    http://www.jackleaman.co.uk/temp/checkbox_selected.zip

  3. #3
    Junior Member
    Join Date
    Jun 2002
    Posts
    9
    THANK YOU!! any logic is better then the logic i don't have!! i will look into this later tonight. THANKS AGAIN!

  4. #4
    Junior Member
    Join Date
    Jun 2002
    Posts
    9
    you're right. it does remember what button was selected when i leave the frame BUT if i change the selection and come back again it doesn't work. it only remembers the first selection i make not any others. maybe i can still twist the AS to work in my case, but if ANYONE has suggestions that would be great!

  5. #5
    :
    Join Date
    Dec 2002
    Posts
    3,518

    Maybe try something like this...

    See attached file...
    Last edited by dawsonk; 08-22-2007 at 10:51 AM.

  6. #6
    Junior Member
    Join Date
    Jun 2002
    Posts
    9
    you've saved my life!! thanks soooooooo much!!! that's EXACTLY what i need. you see, i've never used listeners and don't quite understand them so no wonder i couldn't do this......seriously, you saved me money and overtime work so i realllllly appreciate it!

Posting Permissions

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




Click Here to Expand Forum to Full Width

HTML5 Development Center