2011-01-07 2 views

답변

2

HTML Component을 사용

여기 스크린 샷입니다. AIR 전용이므로 웹 기반 앱에서는이 작업을 수행 할 수 없습니다.

웹 기반 앱의 경우 iFrame trick을 사용하고 싶을 것입니다.

+0

@Shedo 해석해야 할 HTML의 범위에 따라 잠재적으로 http://blog.flexexamples.com/2009/10/06/displaying-html-formatted-text-in-a-spark를 사용할 수도 있습니다. -richtext-control-in-flex-4 /하지만 이것은 매우 제한적입니다. – shaunhusain

1

태그 < mx : TextArea >은 HTML 코드를 포함 할 수있는 mx : htmlText태그가 중첩되어있을 수 있습니다. 예를 들어 :

Flex 컴파일러는 MXML 태그로 문자 그대로가 아닌 다음 내용을 해석하는 알 수 있도록
<mx:TextArea id="htmlTextWillAppear" 
    width="100%" height="100%" 
    borderStyle="none" 
    editable="false" 
    condenseWhite="true">  
    <mx:htmlText> 
     <![CDATA[ 
      <p>This is where the HTML will go icluding Links, images, unordered lists, et.</p> 
     ]]> 
    </mx:htmlText> 
</mx:TextArea> 

CDATA 태그가 필요합니다.

나는이 방법을 사용하여 플렉스 웹 사이트에서 tutorials for creating accessible Flex content을 제공하는 텍스트를 게시합니다.

관련 문제