This content has been marked as final. Show 6 replies
i think you can use a HorizontalList or a TileList and use the itemRender function to set it to another component be it a vbox, hbox, canvas
If I have understood your requirement properly, u want to display html text on a flex application.
I think there its better if you use the html component to display the text. I have a sample code which will give you a direction to think on.
<?xml version="1.0" encoding="utf-8"?>
public function initApp( ):void
var initHtml:String = "<html><head> \
<title='Page Example'/> \
<body bgcolor='#ccddee'><h1>Page Example</h1> \
<p>This is a complete <b>HTML</b> \
page as a <em>string</em>.</p></html></body>";
this.html.htmlText = initHtml;
<mx:HTML id="html" width="100%" height="100%" />
Also do you want a file open dialog box??
Thks Dude, You Got My Requirement, But the code you sended it not working. It is giving an error that: <mx:HTML> can not be resolved as a component implementation.
I am using flex builder 2. I want a functionality similar to a mail box, Some HTML data is coming to flex application, it may contain embedded images in it. I need to show these images along with the HTML text.
Also i need a file open dialog box. Where i can select a file to open.
Thks in advance
Oh I had sent you Apollo code for your requirement by mistake.
I ll post you the flex code once i find it
Goto the following link and download flex 2 Developers guide.
On page 323 of Developer guide, you will find a lot of material on HTML usage.
In the same guide u ll find file referencing chapter.
Otherwise you can go thru Programming Action Script 3.0 PDF available on adobe site
I had seen the Developer Guide of Flex on Page 323, There is no such stuff. there you have someting like: Using the SWFLoader control to load a Flex Data
Can U tell me how can i add Open Dialog Box?