7 Replies Latest reply on Nov 30, 2009 2:18 PM by GordonSmith

# Render HTML in FLEX

Hi All,

I am facing one problem, i want to display some html contents in my
flex application. I tried that using iframe but its not working (If u
click out side that iframe, then it will hide iframe).

I want to do this with out using (AIR). I searched this on internet
but i didn't get any solution for that.

So if anybody knows how to solve this plz send help me.

Regards,

• ###### 1. Re: Render HTML in FLEX

In AIR you don't need to use iFrame you can use mx:HTML to load HTML

content.

Sincerely,

Michael

>

Hi All,

>

I am facing one problem, i want to display some html contents in my

flex application. I tried that using iframe but its not working (If u

click out side that iframe, then it will hide iframe).

>

I want to do this with out using (AIR). I searched this on internet

but i didn't get any solution for that.

>

So if anybody knows how to solve this plz send help me.

>

>

Regards,

>

• ###### 2. Re: Render HTML in FLEX

If not in AIR, the navigateToURL() is about your only choice. Pass in _self to open in the current browser window, _blank to open in new browser window. I heard you can open in frames as well, but I've never done that.

<?xml version="1.0"?>
<!-- controls\bar\LBarSimple.mxml -->

String(event.label).toLowerCase()), '_blank');">
<mx:dataProvider>
<mx:String>Flash</mx:String>
<mx:String>Director</mx:String>
<mx:String>Dreamweaver</mx:String>
<mx:String>ColdFusion</mx:String>
</mx:dataProvider>
</mx:Application>



• ###### 3. Re: Render HTML in FLEX

See what i have to do.............!

I have one popup window and in that popup i want to use I-drop.............

I made one jsp file for i-drop. Now i want to use that i-drop object in that popup window through that jsp file.

I really got stuck since last week.

If u have any alternative solution plz help me for this.

Regards,

• ###### 4. Re: Render HTML in FLEX

I dont want to use AIR bcoz. My application is web based application.

I tried using htmlloader but it gives me complile time error. Htmlloader supports AIR only.

If u have any ideas plz tell me its very urgent for me.

Regards,

• ###### 5. Re: Render HTML in FLEX

What do you mean by "I want to display some html contents"? Are you talking about displaying arbitrary web pages, including executing their Javascript? If so, your only options are AIR or a browser window or frame.

Or are you talking about rendering simple HTML markup like "Hello World"? If so, the htmlText property on many Flex components can do this, but the subset of HTML that is supported is very limited.

Flex 4 will use a new Text Layout Framework that can render a larger subset of HTML, but it's still is nowhere near equivalent to a browser or AIR. The WebKit HTML+Javascript engine that AIR uses is something like 20 MB of code, which is far too large for Adobe to put into the regular Flash Player.

Gordon Smith

• ###### 6. Re: Render HTML in FLEX

Who can I talk to at Adobe about using Flex 4 and rendering a larger set of HTML?

We need this functionality currently, and we are willing to pay Adobe if they already have a solution.  Can you contact me?

• ###### 7. Re: Render HTML in FLEX