« Invite-free Aftermix on Brightcove.TV | Main | I'm doing Javascript work now »

HTML in Flex (Without the Extra HTML)

Alistair Rutherford has extended the existing component for displaying HTML in Flex, and unlike the previous work by Christophe and me, this component only needs one simple HTML change, handles multiple HTML windows, and figures out the visibility automatically. Great work that you can read about, see an example, or get the source.

TrackBack

TrackBack URL for this entry:
http://www.deitte.com/cgi-bin/mt/mt-tb.cgi/127

Comments (4)

dantheman:

Yes, without extra HTML but looks like it works only on IE.

All_Done:

How can you prevent this to take over your Flex app:

if (top.location != self.location) {
top.location = self.location.href;
}

Kevin:

I'm trying to add an iFrame to a vbox in a using the addchild method,
then adding that vbox to a tabnavigator(again using addchild method) but doesnt seem to work....
do you have an example of add your iframe using addchild??

code as follows;
private function addTabItem(parent:DisplayObjectContainer, tabTitle:String, URLSource:String):void{

var xitem:VBox = new VBox;
xitem.label = tabTitle;
xitem.name = tabTitle;
xitem.id = tabTitle;
xitem.height = parent.height;
xitem.width = parent.width;

var itemFrame:IFrame = new IFrame;

itemFrame.id = 'fr_' + parent.numChildren + 1;
itemFrame.name = 'fr_' + parent.numChildren + 1;
itemFrame.source = URLSource;
itemFrame.height = xitem.height-30;
itemFrame.width = xitem.width - 30;
itemFrame.x = xitem.x+30;
itemFrame.y = xitem.y+30;
itemFrame.setVisible(true);

xitem.addChild(itemFrame);
parent.addChild(xitem);
}

dantheman, All_Done, and Kevin, I would go to Alistair's web site and ask him about the code, as I'm assuming these questions are all about his version of the iframe work. I'd also check out his site for newer versions, as I have seen a couple blog posts on his site about iframes.

Post a comment