今晚在学习DataGrid的时,在用Renderer时发现用spark的组件如<s:Label>,DataGrid就是不显示出来,从调试信息中找到是自定义的Renderer不能转换到mx.controls.listClasses.IListItemRenderer,从帮助中看到<s:Label>是没有实现该接口的,而<mx:label>就有,同时在帮助中看到介绍有关Renderer和Editor的内容是“Halo item renderers and item editors ”,后把<s:Label>换成<mx:Label>就一切正常。在测试Editor时遇到同样的情况,在Editor中使用<s:TextInput>就不能进入编辑,用<mx:TextInput>就可以了。同时也发现其他自带的Renderer和Editor的组件也是在Halo中的。通过上述测试总结就算在Flex 4中,Item Renderer和Editor里使用的组件是只能halo的组件,不能使用Spark的组件。