To get the URL that launched your Flex program:
(FlexGlobals.topLevelApplication as Application).url
--- In [email protected], "Laurence" <LMacNeill@...> wrote:
>
> I have a Flex program that I only want users to be able to access if they're
> already inside a different Flex program I wrote, or inside a web-page on my
> server.
>
> Is there a way, within that Flex program to which I want to restrict access,
> to tell the URL or server *from* which it was called?
>
> In other words, If someone types
> http://www.mydomain.com/MyRestrictedFlexProgram.html directly into their
> browser, I want the program to tell the user they don't have access -- BUT if
> a different Flex program (or a web-page) on my server calls that URL, I want
> my restricted-access Flex program to go ahead and run normally...
>
> Thanks for any help you can give me.
> Laurence MacNeill
> Mableton, Georgia, USA
>