derton
derton

Reputation: 33

How can I show an local html content in adobe air application?

I want to show a local html file into my application but I could't find to do that.

I used <mx:HTML> component with using its location property but it is not working when I try to do it with a local file which is in applicationdirectory.

I am new on adobe air and actionscript.

Hope you can hellp me out to find a solution.

Thanks

EDIT: Here is my code :

    <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>

Upvotes: 1

Views: 2389

Answers (2)

Tomasz Stanczak
Tomasz Stanczak

Reputation: 13164

Using htmlText property:

<mx:HTML htmlText="your html content"/>

Upvotes: 1

Related Questions