Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我有一个树控件,我让用户在其上添加一些节点。添加节点后,我想让用户立即编辑添加的控件。如何获取刚刚添加的 xml 节点的 itemEditorInstance?
感谢提示!马库斯
您只需要覆盖该createItemEditor方法,例如:
createItemEditor
覆盖公共函数 createItemEditor(colIndex:int, rowIndex:int):void { super.createItemEditor(colIndex, rowIndex); itemEditorInstance.cacheAsBitmap = true; itemEditorInstance.opaqueBackground = 0xFFFFFF; itemEditorInstance.alpha = 1; }