Hi,

If you want to know the URL of the server currently serving your swf
(the host page) from Flash you could use LocalConnection.domain()

/*

http://livedocs.macromedia.com/flash/mx2004/main_7_2/wwhelp/wwhimpl/common/html/wwhelp.htm?context=Flash_MX_2004&file=00001426.html

*/

var my_lc:LocalConnection = new LocalConnection();

var foo:String= my_lc.domain();

trace(foo);

With this piece of string you could create logic to check if the
domain is not equal to your server etc...


HTH,

/Johan

On 11/23/05, NEILHIGHLEY.COM <[EMAIL PROTECTED]> wrote:
> The end computer?
> The client computer of the person with the browser?
>
> Try looking up server variables.
> (here is a list of most of them:
> http://www.lib.washington.edu/asp/browser/servar.asp)
> (REMOTE_ADDR and REMOTE_HOST)
>
> I don't think there is any way of retrieving them unless you use a
> flashVars variable and some inline scripting..
>
> [ASP]
> <PARAM NAME=FlashVars
> VALUE="REMOTE_HOST=<%=Request.ServerVariables("REMOTE_ADDR")%>">
>
> [ASP.NET - c#]
> <PARAM NAME=FlashVars
> VALUE="REMOTE_HOST=<%=Request.ServerVariables["ALL_HTTP"]%>">
>
> [PHP]
> <PARAM NAME=FlashVars VALUE="REMOTE_HOST=<? echo $_ENV['REMOTE_HOST']; ?>">
>
>
> On 11/22/05, Rajat Paharia <[EMAIL PROTECTED]> wrote:
> > As far as I can tell, mochibot will tell you the URL of the host of
> > your Flash movie, but not where it's being viewed.
> >
> > And unfortunately javascript isn't an option. It needs to be
> > completely Flash. Sounds like I'm out of luck... - rajat
> >
> >
> > On 11/21/05, Robert Chyko <[EMAIL PROTECTED]> wrote:
> > > Haven't actually used this.. But it seemed pretty cool when I initially
> > > checked it out
> > >
> > > www.mochibot.com
> > >
> > >
> > > -----Original Message-----
> > > From: [EMAIL PROTECTED]
> > > [mailto:[EMAIL PROTECTED] On Behalf Of Karthik
> > > Sent: Saturday, November 19, 2005 4:16 AM
> > > To: Flashcoders mailing list
> > > Subject: Re: [Flashcoders] Way to get URL of host page?
> > >
> > >
> > > I see. In that case, you should be able to get this done with a JS
> > > call that returns location.href etc. etc.
> > >
> > > hth
> > > -K
> > >
> > > On 19/11/05, Rajat Paharia <[EMAIL PROTECTED]> wrote:
> > > > Thanks Karthik - I'm not trying to prevent it, I just want to log it
> > > > for analysis purposes later.
> > > >
> > > > best, - rajat
> > > _______________________________________________
> > _______________________________________________
> > Flashcoders mailing list
> > [email protected]
> > http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
> >
>
>
> --
> www.neilhighley.com
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to