I've been trying to declare an onChange-function to a combobox component like this (from an extended movie clip that contains the combobox "Type"):
ActionScript Code:
Type.onChange = function (){
trace ("changed!")
}
This works with with onRelease-event for buttons etc, but for some reason flash ignores this function. If I instead attach a similar function directly to the combobox:
ActionScript Code:
on(change) {
this.onChange ()
}
... it sends the event correctly. I can't understand why, and would rather not have any code internally in the fla-file.
Can anybody explain why this is?
/David