Skip to main content
Participating Frequently
June 24, 2009
Question

Display data from CF call

  • June 24, 2009
  • 1 reply
  • 658 views

I am newbie to TLF, just looked through examples provided with build.

I need to diplay an HTML data returned from call to ColdFusion cfc.  What are steps which i need to do to show html paragraphs returned in a proper way? Do i need to format them to something like:

<flow:TextFlow xmlns:flow="http://ns.adobe.com/textLayout/2008" fontSize="14" textIndent="15" marginBottom="15" paddingTop="4" paddingLeft="4">
    <flow:p/>

</flow:TextFlow>

and then return it to Flex 3.2 SDK?

Thanks,

Mika

This topic has been closed for replies.

1 reply

Adobe Employee
June 26, 2009

You could try out the HTLML Importer to make a TextFlow.  The scope of the HTML handled is fairly limited.

var textFlow:TextFlow = TextFilter.importToFlow(source,TextFilter.HTML_FORMAT)

The Flex 3.2 SDK doesn't know anything about TLF TextFlow's or markup.  Don't you just want to set the TextField.htmlText property?  I'm not sure how that's exposed in Flex - that would be a better question for a Flex forum.

Hope that helps,

RIchard

shahinyanAuthor
Participating Frequently
June 26, 2009

Thing is that that TextField.htmlText renders text pretty bad. It doesnt render styles for tags such as <p>. It is very basic.

Thanks anyway, i'll try asking it in Flex forums.

Thanks,

Mika