Getting a runtime warning message, not sure how to get rid of it
Posted on 2009-04-22
I am getting this runtime warning message:
"warning: unable to bind to property 'code' on class 'Object' (class is not an IEventDispatcher)"
It happens when my datagrid change handler is called, and the code is as follows:
private function dgChangeHandler(event:Event):void
txtCode.text = event.target.selectedItem.code;
Whenever I click a selection on the datagrid, that single line in the handler is the one causing the warning message to come up. (txtCode is a mx:TextInput).
Why is this warning coming up, and what can I do to get rid of that warning?