You have to have the right html-template, specifically, the ones with
browser integration in it. Then you need to call init() on the
BrowserManager.getInstance(). It will fill out the values for you.
Underneath the covers it does this:
_url = ExternalInterface.call("BrowserHistory.getURL");
Which you should be able to just use in the app and skip BrowserManager.
________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On
Behalf Of shivkxr
Sent: Tuesday, March 25, 2008 3:08 PM
To: [email protected]
Subject: [flexcoders] Re: Get the Domain the Flex app is running in
--- In [email protected] <mailto:flexcoders%40yahoogroups.com>
, "shivkxr" <[EMAIL PROTECTED]> wrote:
>
> --- In [email protected]
<mailto:flexcoders%40yahoogroups.com> , "Alex Harui" <aharui@> wrote:
> >
> > Try BrowserManager.url
> >
>
> Alex,
>
> Yes, I think it should work barring any security issues I might
> encounter. I'll post my findings here.
>
> Thanks.
>
Well, so the outcome is that it doesn't work. Actually BrowserManager
doesn't work at all. I can't imagine under what conditions it would
work since the url needs to change somehow but I can't see that ever
happening.
I instantiate an instance of it in the initialize event of the
application. All it's properties are null. Well, that's that since I
need to know at that time where (which domain) I'm in. I even tried
via our server application rather than via the IDE. But no luck there
either.
Shiv