View Full Version : How to access url

11-28-2011, 10:16 PM

I'm using Flex 4, ActionScript 3.

In my application, I have a Help menu bar item, with Documentation as a sub-item.

My documentation is an html file, and it is deployed as part of the application, and hence will have a relative path to the application.

I want to display the content of this html file when you choose Help -> Documentation.

I tried Googling "flex access url" but the links are about accessing variables in url fragments.

How can I just access the url itself to display the contents of the file?

Bon :-D

11-28-2011, 11:25 PM
var url:String = ExternalInterface.call("window.location.href.toString");

Whoops. I think I misread your request

11-28-2011, 11:28 PM
Thanks, Inisgoesdr, for your quick reply.
I came across the navigateToURL command, so I'm going to try using that first.