2012-03-14 6 views
0

내가 플래시 빌더 비교적 새로운 해요 및 작업 RSS 피드 리더를 만든 비 null이어야합니다,하지만 난 maxDisplayedLines가있는 텍스트를 잘라내는 얻을 수없는 오류 # 돌아온다 내 RichText 객체의 끝. 그것은 오류 # 2007 Paramater 자녀가 null이 아니어야합니다.하지만 null이 될 것이라는 단서가 없습니다. 내가 표시하고있어 텍스트는 TextFlow의플래시 빌더 4 maxDisplayedLines 2007 매개 변수의 자녀가

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

에서오고 나는 최대 라인을 설정하려고 할 때까지 모든 것을 잘, 심지어 작은 이미지를 표시합니다. 이것은 모바일을위한 것입니다. 오류 # 2007 : 매개 변수의 아이가 아닌 null이어야합니다

오류가 형식 오류입니다. at flash.display :: DisplayObjectContainer/addChild() at flashx.textLayout.factory :: TextFlowTextLineFactory/callbackWithTextLines() [C : \ Vellum \ 브랜치 \ V2.0 2.0 \ dev \ 출력 \ 오픈 소스 \ 텍스트 레이아웃 \ src \ flashx \ TextLayout의 \ 공장 \의 TextFlowTextLineFactory.as : flashx.textLayout.factory :: TextFlowTextLineFactory/createTextLinesInternal 267] () [C : \ 피지 \ 분기 \ V2 \ 2.0 \ 데브 \ 출력 \ 오픈 소스 \ TextLayout의 \ SRC \ flashx \ TextLayout의 \ 공장 \의 TextFlowTextLineFactory.as : flashx.textLayout.factory :: TextFlowTextLineFactory/createTextLines 245] () [C : \ 피지 \ 분기 \ V2 \ 2.0 \ 데브 \ 출력 \ 오픈 소스 \ TextLayout의 \ SRC \ flashx \ TextLayout의 \ 공장 \ TextFlowTextLineFactory.as:104] 경우 spark.components에서 : 서식있는 텍스트/createTextLines() [E : \ dev에 \ 4.y 프레임 워크 \ 프로젝트 \ 스파크 \ SRC의 \ 스파크 \ 구성 요소가 RichText.as \ \ : 스파크에서 1296] 합니다. components :: RichText/htt p : //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 워크 \ 프로젝트 \ 스파크 \의 SRC \ 스파크 \ 성분 \ \ supportClasses TextBase.as \ : 685]의 경우 spark.components : : RichText/updateDisplayList() [E : \ dev \ 4.y \ frameworks \ projects \ spark \ src \ 프레임 워크에서 \ dev \ 4.y \ frameworks \ projects \ framework \ src \ mx \ core \ UIComponent.as : 8999] mx.managers :: LayoutManager/validateDisplayList() [E : \ dev \ 4.y \ frameworks \ projects \ mx.managers :: LayoutManager/doPhasedInstantiation() [E : \ dev \ 4.y \ frameworks \ projects \ framework \ src \ mx \ managers \ LayoutManager에서 \ framework \ src \ mx \ managers \ LayoutManager.as : 736] as : 819] a t의 mx.managers ::의 LayoutManager/doPhasedInstantiationCallback() [E : \ dev에 \ 4.y 프레임 워크 \ 프로젝트 \ 프레임 워크 \ SRC \ MX \ 관리자 \ LayoutManager.as \ 1180] 도움을

답변

0
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; 
+0

감사합니다. 내가 그렇게 할 때 나는 그것이 같은 오류라고 생각하는 것으로 돌아온다. – aig787

+0

richText 구성 요소 대신 Pls textarea. 필자의 대답을 편집하십시오. –

+0

TextArea로 실행했을 때 텍스트가 표시되지 않았습니다. TextArea 용 TextFlow는 모바일에서 지원되지 않습니다. RichText 구성 요소와 함께 작동시킬 수있는 방법이 있습니까? 그것은 RichText에 축소판 이미지를 표시하고 있었고 나는 그것을 잃지 않기를 바랐습니다 – aig787