Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

checkbox values

Status
Not open for further replies.

Billybonga

IS-IT--Management
Jun 22, 2002
72
GB
I'm trying to create a value screen (basically where the user must agree to the terms and conditions)

I have printed by t&c's and have a "I Agree" check box at the bottom called chk_dsk.

On the same page i have a "Next" button with the following code:

Code:
on (press) {FCheckBox.getValue()

trace(chk_box.getValue());

my_var1 = chk_box.getValue();
if (my_var1 ="false") {nextFrame();
}
if (my_var1 ="true") {prevFrame();
}
}

I want to have the "Next" button check to see if the chk_bsk is set to true - if so it should go to the next page, if not it should quit (or go to previous screen)

I would would really like to do, would be to have the "Next" button appear when the check box is ticked, other remain in-active. I tried this at first by setting alpha to 0 etc but the button is still active in the hidden area .. any help would be great
 
quick and dirty - frame actions

next_btn._visible = false;
this.onEnterFrame = function() {
if (my_chk.getValue()) {
next_btn._visible = true;
} else {
next_btn._visible = false;
}
};


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top