This content has been marked as final. Show 4 replies
Flex's html capabilities are very limited, basically text formating and limited http interaction. When you say you want to display a static html segment do you mean you want to display a bit of html code within you flex app? if so this probably wont go unless your html is very limited and displayed within "HTMLtext"
Thanks for quick reply!
Yes, want display the html segment (probably in textfield), perhaps on a panel or just canvas.
My small segment listed below.
How do I get the file into the flex component? httpservice? Or some other method.
Our studios are located in Maryland and experiences the four seasons that the
Mid-Atlantic Region offers.<br />
Although each season brings special challanges for photography, together they
provide the scope of beauty nature offers.
<img src="Ellencamera.jpg" alt="Ellen" width="200" height="183" border="1" align="top" />
is there any reason you dont just use say xml data and build these in your flex application using flex componnents? I spent alot of time trying to bring the old html driven world i worked with into flex but it isnt needed, even if your static documents already exist or are part of an established production pipeline it would be better to build a script to parse those html docs into usable xml then try to import static html into your flex app.
As far as a direct answer, here is a snippet from the docs under "HTMLtext" it basically shows you how to display limited html functionality within a text componnent:
<mx:Text width="100%" color="blue" fontStyle="italic" fontSize="14">
<![CDATA[This is 14 point blue italic text.<br><b><font color="#000000" size="10">This text is 10 point black, italic, and bold.</font></b>]]>
displaying html text that is directkly coded into the htmlText control is ok, but how do you display DYNAMIC html text within the <![CDATA]>