Greetings,
I hope someone can help me. I’m using Flash MX.
I have several groups of radio buttons: rg1 (radio group 1), rg2, etc. Each group consists of at least 2 radio buttons: 1q1 (button 1, question 1), 2q1 (button 2, question 2), etc.
What I want is to have each button interact with a movie clip instance named “handset”. Specifically, I need a radio button (when selected) to TellTarget “handset” to gotoAndPlay a specified frame label (fushia or orange).
This is what I have thus far…
In rg2 (radio group 2), I set the Change Handler for buttons 1q2 (button 1, question 2) and 2q2 (button 2, question 2) to be “onChange”.
In my Actions layer, I have the following ActionScript:
rg2.setChangeHandler(“onChange”);
function onChange(component) {
if (_root.rg2.getValue() == “1q2”) {
// we create a shared object called “Monday” using the above function
tellTarget (“handset”) {
gotoAndPlay(“fushia”);
}
createNewLocal(“1q2”);
} else if (_root.rg2.getValue() == “2q2”) {
tellTarget (“handset”) {
gotoAndPlay(“orange”);
}
createNewLocal(“2q2”);
}
}
There are no syntax errors, but the movie clip fails to interact with any selection changes in the “rg2” radio group. This is my first time using Change Handlers and I know I’m missing something somewhere. Any help would be most appreciated.
Thanks,
mjrchaos