Skip to main content
Participant
June 22, 2011
Question

Display HTML in Flex Mobile Project (4.5)

  • June 22, 2011
  • 2 replies
  • 1435 views

Hi,

I have a string which is an entire html source and I need to display it on phone.

I have tried the following code -

                var markup:String = "<p>This is paragraph 1.</p><p>This is paragraph 2.</p>";
                var flow:TextFlow = TextFlowUtil.importFromString(markup);
                myST.textFlow = flow;

where myST is a TextArea but nothing gets displayed.

Please help me with a way of doing this in Flash Builder 4.5 -> Flex Mobile Project.

Thanks

Monika

This topic has been closed for replies.

2 replies

Participant
July 9, 2011

I think you can use adobe airs HTMLLoader class.

My bad it should be the

StageWebView class you can use the loadString method.

shmonikaAuthor
Participant
June 23, 2011

Thanks.

I found a way of doing he same.