warning: unable to bind to property '' on class 'Object' (class is not an IEventDispatcher)

原因是在ItemRenderer里面引用data的属性时,由于data的类型是Object, 而Object并不分发
事件,所以造成这样的警告信息。解决办法为在外面用ObjectProxy把它包上。

from
data.label

to
import mx.utils.ObjectProxy;

new ObjectProxy(data).label

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注