Re: [flexcoders] Re: HTML IN FLEX
:-) On Mon, Nov 17, 2008 at 7:56 PM, Amy [EMAIL PROTECTED] wrote: --- In flexcoders@yahoogroups.com 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/spanspan style=font-weight: bold;' + ' Welcome herebr /br /img border=0 alt= style=width: 76px; height: 43px; src=chart.png / ' + 'abhishek herebr //spanbr /span style=font-weight: bold;br /br //span'; var s:String; s =htmlhead/headbody; 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 -- Fotis Chatzinikos, Ph.D. Founder, Phinnovation [EMAIL PROTECTED],
RE: [flexcoders] Re: HTML IN FLEX
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.commailto: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/spanspan style=font-weight: bold;' + ' Welcome herebr /br /img border=0 alt= style=width: 76px; height: 43px; src=chart.png / ' + 'abhishek herebr //spanbr /span style=font-weight: bold;br /br //span'; var s:String; s =htmlhead/headbody; 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
RE: [flexcoders] Re: HTML in Flex
html support is not planned for the Flash player (and therefore Flex) anytime soon. Flex applications running on Apollo will be able to render HTML, which will be just another kind of DisplayObject. But there are no plans to add this capability to the browser players. The reason is the available HTML rendering libraries are too large to include in the browser players, which Adobe needs to keep as small as possible to maintain near-ubiquity. And the HTML renderers in the browsers themselves can't be accessed from a browser plugin, and, even if they could, their behavior would vary from platform to platform, browser to browser, and version to verison, which would violate one of the main benefits of Flash. - Gordon From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of coderdude2 Sent: Thursday, February 08, 2007 10:53 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: HTML in Flex From what I've read so far, html support is not planned for the Flash player (and therefore Flex) anytime soon. What people are doing is combining Flex/Flash with AJAX/HTML on the same browser page and using something like http://labs.adobe.com/wiki/index.php/Flex_Framework:FABridge http://labs.adobe.com/wiki/index.php/Flex_Framework:FABridge to pass messages from one to the other. It's even possible to position an html iframe on top of a region of your flex app to make it seem like it's part of the app. See http://ajax.sys-con.com/read/223822.htm http://ajax.sys-con.com/read/223822.htm for some ideas. Good luck. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Robert Shaw [EMAIL PROTECTED] wrote: I already think I know the answer, but I will ask anyway. We buy medical knowledge from a company in HTML page format. Question is, using Flex, is their any way I can read these HTML pages into Flex and display. I know I can do this in Java, but it would take forever and my boss wants to get away from the page refresh. Robert Shaw 972-463-3515
RE: [flexcoders] Re: Html in Flex?
Apollo will have full html parsing. That is why is is not available in the FlashPlayer, including a full html parsing engine would make the player way too large. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of thegators_2002 Sent: Wednesday, January 31, 2007 11:26 AM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Html in Flex? Thanks for the explanation, Tracy. I didn't really understand what this IFrame stuff was doing until now. This is a really backwards hack. Does anyone know if Adobe is going to add an mx:Browser component or something similar? I am updating an old app that has hundreds of HTM files, but it needs to work as a standalone app as well as a web version, and it looks like I am going to have to convert all those files to little SWFs, because I can't use a browser to run my program. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Tracy Spratt [EMAIL PROTECTED] wrote: The short answer to your original question is no, there is no browser control in Flex. The Iframe solution is a workaround that uses an Iframe in the host browser that is positioned in such a way to look like it is part of the Flex app. You use externalInterface to communicate/control the Iframe and it's contents. So you won't find Iframe in the Flex docs. There is a very good example of using this technique available, though I don't recall where at the moment. Tracy
Re: [flexcoders] Re: Html in Flex?
This is what you are looking for: http://www.deitte.com/archives/2006/08/finally_updated.htm On 1/10/07, gtuhl [EMAIL PROTECTED] wrote: Yes it is just for display/preview. My apologies if this is obvious, fairly new to Flex2, but how do I use an IFrame? The only html-related bits I can find in the help system concerns the htmlText property of text controls and iframe isn't listed as an understood tag. I appreciate the quick response. --- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Jason Hawryluk [EMAIL PROTECTED] wrote: Would an iframe work for this? I mean is it just for display/preview not editing... jason -Message d'origine- De : flexcoders@yahoogroups.com flexcoders%40yahoogroups.com [mailto: flexcoders@yahoogroups.com flexcoders%40yahoogroups.com]De la part de gtuhl Envoyé : mercredi 10 janvier 2007 21:34 À : flexcoders@yahoogroups.com flexcoders%40yahoogroups.com Objet : [flexcoders] Html in Flex? We have an existing application that has a feature enabling a user to set content for and preview html newsletters. We are in the process of researching Flex2 and determining whether the client-side of this application (currently xul/html/js) should be converted. Is there any way to render html in Flex2? The htmlText property on Text won't cut it as it only supports a trivial subset of html. I essentially need to embed Gecko or another appropriate rendering engine so that the users can get a rough guess of what their content looks like. The same pages allow the user to quickly send test e-mails to whichever accounts they desire, but the quick-preview feature provided by the current version of the application is heavily used and cannot be cut. Ideally Flex2 has something similar to the browser component in xul. -- Collin Peters Lead Software Developer InTouch Technology
RE: [flexcoders] Re: Html in Flex?
The short answer to your original question is no, there is no browser control in Flex. The Iframe solution is a workaround that uses an Iframe in the host browser that is positioned in such a way to look like it is part of the Flex app. You use externalInterface to communicate/control the Iframe and it's contents. So you won't find Iframe in the Flex docs. There is a very good example of using this technique available, though I don't recall where at the moment. Tracy From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of gtuhl Sent: Wednesday, January 10, 2007 3:51 PM To: flexcoders@yahoogroups.com Subject: [flexcoders] Re: Html in Flex? Yes it is just for display/preview. My apologies if this is obvious, fairly new to Flex2, but how do I use an IFrame? The only html-related bits I can find in the help system concerns the htmlText property of text controls and iframe isn't listed as an understood tag. I appreciate the quick response. --- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com , Jason Hawryluk [EMAIL PROTECTED] wrote: Would an iframe work for this? I mean is it just for display/preview not editing... jason -Message d'origine- De : flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com [mailto:flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com ]De la part de gtuhl Envoyé : mercredi 10 janvier 2007 21:34 À : flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com Objet : [flexcoders] Html in Flex? We have an existing application that has a feature enabling a user to set content for and preview html newsletters. We are in the process of researching Flex2 and determining whether the client-side of this application (currently xul/html/js) should be converted. Is there any way to render html in Flex2? The htmlText property on Text won't cut it as it only supports a trivial subset of html. I essentially need to embed Gecko or another appropriate rendering engine so that the users can get a rough guess of what their content looks like. The same pages allow the user to quickly send test e-mails to whichever accounts they desire, but the quick-preview feature provided by the current version of the application is heavily used and cannot be cut. Ideally Flex2 has something similar to the browser component in xul.
RE: [flexcoders] Re: Html in Flex?
Funny i chose the same site email not getting through fast enough :p jason -Message d'origine- De : flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] la part de Collin Peters Envoyé : mercredi 10 janvier 2007 22:18 À : flexcoders@yahoogroups.com Objet : Re: [flexcoders] Re: Html in Flex? This is what you are looking for: http://www.deitte.com/archives/2006/08/finally_updated.htm On 1/10/07, gtuhl [EMAIL PROTECTED] wrote: Yes it is just for display/preview. My apologies if this is obvious, fairly new to Flex2, but how do I use an IFrame? The only html-related bits I can find in the help system concerns the htmlText property of text controls and iframe isn't listed as an understood tag. I appreciate the quick response. --- In flexcoders@yahoogroups.com, Jason Hawryluk [EMAIL PROTECTED] wrote: Would an iframe work for this? I mean is it just for display/preview not editing... jason -Message d'origine- De : flexcoders@yahoogroups.com [mailto: [EMAIL PROTECTED] la part de gtuhl Envoyé : mercredi 10 janvier 2007 21:34 À : flexcoders@yahoogroups.com Objet : [flexcoders] Html in Flex? We have an existing application that has a feature enabling a user to set content for and preview html newsletters. We are in the process of researching Flex2 and determining whether the client-side of this application (currently xul/html/js) should be converted. Is there any way to render html in Flex2? The htmlText property on Text won't cut it as it only supports a trivial subset of html. I essentially need to embed Gecko or another appropriate rendering engine so that the users can get a rough guess of what their content looks like. The same pages allow the user to quickly send test e-mails to whichever accounts they desire, but the quick-preview feature provided by the current version of the application is heavily used and cannot be cut. Ideally Flex2 has something similar to the browser component in xul. -- Collin Peters Lead Software Developer InTouch Technology