如何在Adobe Air应用程序中显示本地html内容?

| 我想在我的应用程序中显示一个本地html文件,但是找不到。 我使用
<mx:HTML>
组件的
location
属性,但是当我尝试使用位于applicationdirectory中的本地文件执行此操作时,它不起作用。 我是Adobe Air和ActionScript的新手。 希望您能帮我找到解决方案。 谢谢 编辑:这是我的代码:
    <fx:Script>
    <![CDATA[   
        private function init():void {
            mybrowser.location = \"http://www.google.com/maps\";
        }
    ]]>
</fx:Script>
<fx:Declarations>
    <!-- Place non-visual elements (e.g., services, value objects) here -->
</fx:Declarations>
已邀请:
使用HTMLLoader对象。 教程+示例代码: http://jurnal.tripmedia.ro/adobe-air-html-tutorial/1732.html http://www.donotyet.com/2009/09/18/how-to-render-pdf-content-in-air-with-source-code/ http://www.badu.ro/?tag=htmlloader
使用htmlText属性:

要回复问题请先登录注册