MX Change handlers, radio buttons and a movie clip

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

:trout:

How sad…no replies yet…sniff sniff.

Can’t anyone spare some AS knowledge for a forum noobie who’s been a longtime kirupa site visitor?

Anyone?!

[BUMP]

Greetings all,

Perhaps my original question was too complicated (not to mention confusing). So I’m approaching my problem using a different model. My example is attached. I would really appreciate it if someone can help me out. I’m a noob when it comes to change handlers.

What I got-
The current file uses different Change Handlers to adjust the color of 2 movie clips: background and text. I used 3 different components: radio buttons and a list box to test out my change handlers.

What I don’t got-
I don’t know how to make a change handler that will gotoAndPlay a specific label in a movie clip. Can this been done? I’ve created mc_labelchange movie clip to use as the target of my change handler, but I’m not sure the logic I need to make it work.

Any help would be greatly appreciated.
:azn: