我这里加载了一个 editor.html文件(这个文件中我引用了FCKEditor,呵呵)
private function loadFCKEditor():void
{
var fckInstallPath:String=File.applicationDirectory.resolvePath("editor.html").nativePath;
var urlReq:URLRequest=new URLRequest(fckInstallPath);
htmlLoader=new HTMLLoader();
//width、height必须设置,默认为0,所以会看不到效果
htmlLoader.width=1152;
htmlLoader.height=768;
htmlLoader.load(urlReq);
htmlLoader.addEventListener(Event.HTML_DOM_INITIALIZE, domInitialized);
var myComponent:UIComponent=new UIComponent();
myComponent.addChild(htmlLoader);
editPanel.addChild(myComponent);
}
<mx:Panel id="editPanel"
width="80%"
height="100%"
title="热区编辑">
</mx:Panel>