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 SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

radio button controls

Status
Not open for further replies.

Soulskin

Instructor
Oct 19, 2002
13
0
0
US
I have a set of radio buttons that I would like to use to control which scene you would go to next when you click on the next button. so attached to the next button i have the code:


on (press, release, keyPress "<Enter>") {
if (Employer.fRadioButton.State="true") {
gotoAndStop("10", 1);
} else {
gotoAndStop("11", 1);
}
}

what am i doing wrong it always goes to scene 11
 
You are using the radio button component? And what version of Flash?


Wow JT that almost looked like you knew what you were doing!
 
i am in the process of moving the whole thing over to mx04 pro i could not get the file to open up in 04 pro otherwise. I am using the component and i have changed the names in the code so many times the name of the radio buttons are employer and student if one is selected it goes to the appropiate scene.
the code has changed because i keep trying new code and it wont work!!!

on (press, release, keyPress "<Enter>") {
if (_root.Employer.State="true") {
gotoAndStop("10", 1);
} else {
gotoAndStop("11", 1);
}
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top