[flexcoders] Re: HTML and Flex

2009-01-21 Thread jim.abbott45
OK, I'll bite . . .

The only solution that I can think of, off the top of my head, is to
pop up a new browser window and embed just the TinyMCE instance in
that window. When the user has committed their changes in the editor
window, use JavaScript and Flex's ExternalInterface API to get the
edited content back into the Flex world. And you need some code to
close the pop up window, etc.

Personally, I'd try real hard to work around that scrolling issue you
mentioned, first, before I implemented the pop-up.

--Jim

--- In flexcoders@yahoogroups.com, bffoley bffo...@... wrote:

 I have a client who I am making a full-page Flex application for.  We
 originally had the application embeded in the HTML page, but because
 of Flex's Browser and VBox scrollbars scrolling together bug, I had
 to made the application show the full page, including the other
 content in the page which I had to recreate in MXML.  
 
 The issue here is the client uses TinyMCE in some homemade CMS to make
 updates to the rest of the content on the page, and he doesn't want to
 give this up.  I haven't been able to find a solution that lets us
 import the HTML he creates in TinyMCE into the Flex app.  I've seen a
 few iframe options that wont work because of the scrollbars (the
 iframe stays in the same spot, no matter where you scroll up and down
 on the page), and some other option I found that converts HTML to a
 Flash-friendly format doesnt support tables (only DIV tags), which
 TinyMCE relies on heavily.
 
 What are my options here?  Is there some sort of solution I can do
 here that would allow a person who's not technical but likes WYSIWYG
 editors to get new content into a Flex app?





[flexcoders] Re: HTML IN FLEX

2008-12-01 Thread langdonjared
You say you got this working in Air?  I cannot get it to work.  The 
image doesn't load.  Where did you put chart.png in your project 
structure?  Is in in src?  In the project root?  In the bin directory?  
I tried all with no luck.  Thanks.




Re: [flexcoders] Re: HTML IN FLEX

2008-11-18 Thread Fotis Chatzinikos
:-)

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

2008-11-18 Thread Gordon Smith
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



[flexcoders] Re: HTML IN FLEX

2008-11-17 Thread Amy
--- In flexcoders@yahoogroups.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





[flexcoders] Re: html-wrapper Flex Ant Task

2007-10-17 Thread Robert Csiki
I'm having the same issue ... anyone having a solution for this, 
please?

Thanks
Robert

--- In flexcoders@yahoogroups.com, chuyler1 [EMAIL PROTECTED] wrote:

 I've got two questions about using Ant to generate the html for our
 project.
 
 1) Why isn't there a way to specify an external template folder?  I
 searched this site and saw that people were re-compiling FlexAntTasks
 in order to get their template changes to work.  Is this really the
 recommended solution???
 
 2) Ok, so maybe asking for a complete external template configuration
 is too much, how about something simple like allowing us to set
 allowFullScreen equal to true?





[flexcoders] Re: html-wrapper Flex Ant Task

2007-08-28 Thread chuyler1

So no one has run into this problem?  Is anyone even using Ant to
automate their build?  If not, what do you use?


 I've got two questions about using Ant to generate the html for our
 project.
 
 1) Why isn't there a way to specify an external template folder?  I
 searched this site and saw that people were re-compiling FlexAntTasks
 in order to get their template changes to work.  Is this really the
 recommended solution???
 
 2) Ok, so maybe asking for a complete external template configuration
 is too much, how about something simple like allowing us to set
 allowFullScreen equal to true?





[flexcoders] Re: HTML in Flex

2007-03-16 Thread v.cekvenich
take a look at pointcast.com for example.



[flexcoders] Re: Html in Flex?

2007-02-13 Thread gtuhl
Hey, this sounds pretty cool.  I'll definitely give it a shot and let
you know how it goes.

--- In flexcoders@yahoogroups.com, dorkie dork from dorktown
[EMAIL PROTECTED] wrote:

 I have been secretly working on an html component for the last 2
months that
 is close to release. It has support for iframes but also support for
 straight html without iframes. I will be doing a beta in a few weeks and
 post a link to examples in the next couple of days. I've tested a
bunch of
 cool features (beta) but I can only work on about one more before
beta. So
 check my blog in the next few days http://www.judahfrangipane.com
and leave
 some good comments.
 
 On 1/10/07, gtuhl [EMAIL PROTECTED] wrote:
 
  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.
 
 
 
 
 
 
  --
  Flexcoders Mailing List
  FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
  Search Archives:
http://www.mail-archive.com/flexcoders%40yahoogroups.com
  Yahoo! Groups Links
 
 
 
 





[flexcoders] Re: HTML in Flex

2007-02-08 Thread coderdude2
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
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 for some ideas.

Good luck.

--- In flexcoders@yahoogroups.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





[flexcoders] Re: HTML in Flex

2007-02-08 Thread h8me4everplus1
An overkill solution for you: if the context allows for it, you could
parse the html document so just the supported html tags are left.

--- In flexcoders@yahoogroups.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

2007-02-08 Thread Gordon Smith
 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


 



[flexcoders] Re: Html in Flex?

2007-01-31 Thread thegators_2002
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, 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?

2007-01-31 Thread Tracy Spratt
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

 



[flexcoders] Re: Html in Flex?

2007-01-10 Thread gtuhl
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.





Re: [flexcoders] Re: Html in Flex?

2007-01-10 Thread Collin Peters

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?

2007-01-10 Thread Tracy Spratt
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?

2007-01-10 Thread Jason Hawryluk
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