Flash Builder 4 maxDisplayedLines возвращается Ошибка # 2007 Параметр child должен быть ненулевым - PullRequest
0 голосов
/ 14 марта 2012

Я довольно новичок во Flash Builder и создал рабочий ридер RSS, но я не могу заставить maxDisplayedLines обрезать текст в конце моего объекта RichText.Это приходит с ошибкой # 2007 Paramater child должен быть ненулевым, но я понятия не имею, что будет нулевым.Текст, который я показываю, исходит из textflow

textFlow="{TextConverter.importToFlow(rdesc, TextConverter.TEXT_FIELD_HTML_FORMAT)}"

, и все отображается нормально, даже миниатюры, пока я не попытаюсь установить максимальное количество строк.Кстати, для мобильных устройств.

ошибка: ошибка типа: ошибка # 2007: дочерний параметр должен быть ненулевым.на flash.display :: DisplayObjectContainer / addChild () на flashx.textLayout.factory :: TextFlowTextLineFactory / callbackWithTextLines () [C: \ Vellum \ branch \ v2 \ 2.0 \ dev \ output \ openSource \ textLayout \ src \ flashx \ textLayoutfactory \ TextFlowTextLineFactory.as: 267] в flashx.textLayout.factory :: TextFlowTextLineFactory / createTextLinesInternal () [C: \ Vellum \ branch \ v2 \ 2.0 \ dev \ output \ openSource \ textLayout \ src \ flashx \ textLayout \ factory \ TextFlow.Flay \ factory \ TextFlow.as: 245] at flashx.textLayout.factory :: TextFlowTextLineFactory / createTextLines () [C: \ Vellum \ branch \ 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: 1296] в spark.components :: RichText / http://www.adobe.com/2006/flex/mx/internal::composeTextLines()[E:\dev\4.y\frameworks\projects\spark\src\spark\components\RichText.as:1173] в spark.components.supportClasses :: TextBase / updateDisplayList () [E: \ dev \ 4.y \ frameworks \ projects \ spark \ src \ spark \ components \ supportClasses \ TextBase.as: 685] в spark.components:: RichText / updateDisplayList () [E: \ dev \ 4.y \ frameworks \ projects \ spark \ src \ spark \ components \ RichText.as: 1131] в mx.core :: UIComponent / validateDisplayList () [E: \ dev \ 4.y \ frameworks \ projects \ framework \ src \ mx \ core \ UIComponent.as: 8999] в mx.managers :: LayoutManager / validateDisplayList () [E: \ dev \ 4.y \ frameworks \ projects \ framework \ src \ mx\ Manager \ LayoutManager.as: 736] в mx.managers :: LayoutManager / doPhasedInstantiation () [E: \ dev \ 4.y \ frameworks \ projects \ framework \ src \ mx \ Manager \ LayoutManager.as: 819] в mx.managers :: LayoutManager / doPhasedInstantiationCallback () [E: \ DEV \ 4.y \ рамки \ проекты \ рамки \ SRC \ тх \ менеджеры \ LayoutManager.as: 1180]

1 Ответ

0 голосов
/ 14 марта 2012
 html text show in mobile textarea.

 <s:TextArea id="ric" width="200" height="100"/>

 var textrichtml:String = "<p><b>Scott Carpenter Architect Pty Ltd is a design based</p>";
 TextField(ric.textDisplay).htmlText = textrichtml;
...