A Flash Developer Resource Site

Results 1 to 3 of 3

Thread: this should be an easy one but...

  1. #1
    Member
    Join Date
    May 2000
    Posts
    61
    for some reason I can't get it working right.

    I have a page that requires the user to click four checkboxes. They can't advance until all four are checked.

    I'm trying to set it up so that each checkbox sets a variable and then they click a next button that judges if all the variables are set but it's not working for me.

    anyone have any examples that may work?

  2. #2
    half as fun, double the price senocular's Avatar
    Join Date
    Feb 2002
    Location
    San Francisco, CA (USA)
    Posts
    4,361
    each time you check a checkbox use
    _root.checks++
    when you uncheck use
    _root.checks--
    then you check for
    _root.checks == 4
    if thats true, advance

  3. #3
    Member
    Join Date
    May 2000
    Posts
    61
    thanks! I found a way to do it since I posted, but your way is a lot simpler.

    I was setting a variable when the frame loaded:

    counter = 0

    then the checkboxes would telltarget counter++ or counter--

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