Hi,

I'm using htmlText and i think it's full of bugs...I'd like to know 
alternatives about how to read a html page (or html source from database) and 
"translate" into flex components.

For example, i'd like to have an option that from a <img /> html tag, create an 
<mx:Image /> flex component and from a html <p></p>  create a <mx:Text />...

So far, i found 4 options, but they are not perfect.
1 - DENG
http://deng.com.br
It's the best "translator", but unfortannely, it is from 2004/2006, made for 
flash 6 and i think it's donne in AS1 or AS2, for sure it's not an AS3 code. 

2- WRAPPER
http://osflash.org/projects/wrapper
It works, but it's like SWFAddress, first it renders a html page and then it 
"translate" it to flex, and i think it isn't possible to just pass a variable 
with the html content inside a flex component.

3- Flex HtmlFilter
http://code.google.com/p/flex-htmlfilter/
It's good, but not perfect yet, i found problens with image yet

4- flex.html package
http://blogs.adobe.com/aharui/2008/01/html_and_flex_1.html
It's a solution "aborted" from Adobe, it works for tables, bu big images give 
problem. And the worse: it hasn't and won't have any support, forum or help.

I'm, trying a solution, creating a component, that loops trougth the html and 
parse the html as E4X, like in this code extract:

[...]
var imgXML:XML = new XML(meuHtml);
var img:Image = new Image();
img.source = imgXML.attribute("src");
img.toolTip = imgXML.attribute("alt");
img.width = imgXML.attribute("width");
img.height = imgXML.attribute("height");
addChild(img);
[...] 

but maybe someone here had already this problem...

Can  someone give any tips about this problem? How to solve it?

Thanks in advance,
Carlos

Reply via email to