Working off the the tutorial here: http://www.kirupa.com/developer/mx/listbox.htm, I’m unable to get the onchangehandler working for the list component in MX 2004.
I have just the basics and its still not working. I have a listbox named photolist, and I can fill it just fine but the onchangehandler isn’t working.
Below is the basic code that I have that isn’t even tracing for the onchangehandler.
function displayDetails(c){
trace("Working");
// trace(c.getSelectedItem().data);
}
_root.photolist.addItem("asdsad",22);
_root.photolist.addItem("444",66);
_root.photolist.setChangeHandler("displayDetails");
stop();