Yeah that's really cool, but completely difficult for me. lol I did a code by my own...actually i needed to interpret just few html tags, so i did a E4X, loading the html code as xml, and then a lot of switch and ifs..
there is also another component like this: http://code.google.com/p/htmlsprite/ bye Carlos --- In [email protected], "triptonemeister" <triptonemeis...@...> wrote: > > Hi! > > It's not full solution, but do you see the Text Layout Framework > (http://labs.adobe.com/technologies/textlayout/)? Use a transcoder before you > render it. > > The iframe is also a goood idea, if you resize it width external interface if > the component resizes... > > --- In [email protected], "carloscarvalhar" <carloscarvalhar@> > wrote: > > > > 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 > > >
