0

问题是关于点形成的语法。我想以默认列表样式分配我的自定义 ItemRenderer,但尚未成功。

.myList
{
itemRenderer: com.examples.components.StyleClassRenderer;
}


其他一些尝试 ("com.exam...", 'com.exam...') 格式对我不起作用。
在 actionscript 帮助网页http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/text/StyleSheet.html中,
找不到任何合适的解决方案。我将非常感谢您的解决方案建议。

编辑:通过以下解决方案动态分配
list.itemRenderer = new ClassFactory(com.examples.components.StyleClassRenderer);
但我想学习如何在 Style 声明中做。

4

0 回答 0