PDA

View Full Version : setChangeHandler or addEventListener Problem...


mumblexman
03-19-2004, 09:54 AM
Hi!
I just switched to MX2004 and want to change my code.
I used the setChangeHandler command and wnat to use now the addEventListener, only that it do not work.
Here is my Code:

changeColor1= new Object ();
changeColor1.click = function (color) {
trace ("Color clicked")
}

grpColor1.addEventListener ("click", changeColor1)
// grpColor1 is my Radiobuttongroup


I used the example in the manual to do it, but it doesnt work. trace gets never displayed.

Pls help.
Thanxx