AIR includes a very complete HTML+JavaScript engine (WebKit), but this engine is much too large to include as part of the ordinary Flash Player.
Flex 3 components such as <mx:TextArea> which have an htmlText property are based on the Player's flash.text.TextField class, which supports a small and nonstandard subset of HTML. See the htmlText property of TextField in the Language Reference for a list of what tags and attributes are support in htmlText markup. Adobe is developing a new Text Layout Framework (TLF) which works with the new Flash Text Engine (FTE) APIs in Player 10. (It will be used in Flex 4.) TLF will not support all of HTML, but it will be more capable than TextField's htmlText. Gordon Smith Adobe Flex SDK Team From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Amy Sent: Monday, November 17, 2008 9:56 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: HTML IN FLEX --- In flexcoders@yahoogroups.com<mailto:flexcoders%40yahoogroups.com>, "abhishekchess1" <[EMAIL PROTECTED]> wrote: > > hello frnd, > > i have a simple query , > i'm storing text in string var like > var coreData:String = '<img border="0" alt="" style="width: 77px; > height: 43px;" src="chart.png" />' + > '<span style="font-weight: > bold;">Hi how are you</span><span style="font-weight: bold;">' + > ' Welcome here<br /><br /><img > border="0" alt="" style="width: 76px; height: 43px;" src="chart.png" > /> ' + > 'abhishek here<br /></span><br > /><span style="font-weight: bold;"><br /><br /></span>'; > var s:String; > s ="<html><head></head><body>"; > s +=coreData; > s +="</body></html>"; > myhtml.htmlText = s; > > it woring correctlly in AIr application like : > <mx:VBox width="100%" height="100%"> > <mx:HTML width="100%" height="100%" id="myhtml"/> > </mx:VBox> > > > but when i used same in flex u can see it not working same like > in air. > > > Flex code: > <mx:VBox width="100%" height="100%" > > <mx:TextArea id="myhtml" textAlign="center" width="100%" > height="100%"/> > </mx:VBox> > > > u can run and check code in flex and air, ui'' find difference. In > AIr its showing right but not in flex. > r u have any idea how to make work above example ? > i come to know tht thr is problem with image displaying in textarea > in flex ,is any other way anyone know? ths fntkality s onli afaliball n aIR