我对 flash builder 还很陌生,并且制作了一个可以工作的 RSS 提要阅读器,但我无法让 maxDisplayedLines 截断我的 RichText 对象末尾的文本。它出现错误 #2007 Paramater child must be non-null 但我不知道什么是 null。我显示的文本来自 textflow
textFlow="{TextConverter.importToFlow(rdesc, TextConverter.TEXT_FIELD_HTML_FORMAT)}"
在我尝试设置最大线之前,一切都显示得很好,甚至是缩略图。顺便说一句,这是针对移动设备的。
错误是 TypeError: Error #2007: Parameter child must be non-null。在 flash.display::DisplayObjectContainer/addChild() 在 flashx.textLayout.factory::TextFlowTextLineFactory/callbackWithTextLines()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\ factory\TextFlowTextLineFactory.as:267] 在 flashx.textLayout.factory::TextFlowTextLineFactory/createTextLinesInternal()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\factory\TextFlowTextLineFactory .as:245] 在 flashx.textLayout.factory::TextFlowTextLineFactory/createTextLines()[C:\Vellum\branches\v2\2.0\dev\output\openSource\textLayout\src\flashx\textLayout\factory\TextFlowTextLineFactory.as: 104] 在 spark.components::RichText/createTextLines()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\RichText.as: