Thank you, I am trying this out right now.

--- In [email protected], Laurent Cozic <pogopix...@...> wrote:
>
> Application.application.url will give you the url of the *swf file*,
not the url of the document within which the app is embedded. For
that, the only way is to use Javascript and ExternalInterface. I think
the syntax is:
> 
> var docURL = ExternalInterface.call("location.href");
> 
> or it might be "document.location.href" - not sure which one is right.
> 
> --
> Laurent Cozic
> 
> Flash, Flex and Web Application development
> http://pogopixels.com
> 
> --- On Wed, 2/18/09, kuntamayu <kuntam...@...> wrote:
> From: kuntamayu <kuntam...@...>
> Subject: [flexcoders] Re: is it possible to track visitors / the
page an swf is embedded on
> To: [email protected]
> Date: Wednesday, February 18, 2009, 12:31 PM
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>     
>             
> 
> Try to track
> 
> 
> 
> Application. application. url
> 
> 
> 
> This may help you. :)
> 
> 
> 
> --- In flexcod...@yahoogro ups.com, "Tracy Spratt" <tspratt@ > wrote:
> 
> >
> 
> > Look into the BrowserManager, perhaps it will help.
> 
> > 
> 
> >  
> 
> > 
> 
> > Tracy Spratt 
> 
> > Lariat Services 
> 
> > 
> 
> > Flex development bandwidth available 
> 
> > 
> 
> > ____________ _________ _________ __
> 
> > 
> 
> > From: flexcod...@yahoogro ups.com [mailto:flexcod...@yahoogro
ups.com] 
> 
> On
> 
> > Behalf Of uclamerrick
> 
> > Sent: Wednesday, February 18, 2009 12:24 AM
> 
> > To: flexcod...@yahoogro ups.com
> 
> > Subject: [flexcoders] is it possible to track visitors / the page an 
> 
> swf
> 
> > is embedded on
> 
> > 
> 
> >  
> 
> > 
> 
> > Lets say I run a video site like youtube, how can I capture the url 
> 
> of
> 
> > the page where my swf object is embedded.
> 
> > 
> 
> > For example someone takes the embed code from
> 
> > http://youtube. com/videoid123 <http://youtube. com/videoid123>  and
> 
> > places it onto the page at
> 
> > http://myblog. wordpress. com/this_ video_rocks
> 
> > <http://myblog. wordpress. com/this_ video_rocks> 
> 
> > 
> 
> > I know how to use HTTPService to report this information back to my
> 
> > server and store it in the database, but I don't know how to use 
> 
> Flex
> 
> > 3 / Actionscript 3 to determine the URL of the page that embeds an
> 
> > swf. In the example above I would want to capture:
> 
> > 
> 
> > http://myblog. wordpress. com/this_ video_rocks
> 
> > <http://myblog. wordpress. com/this_ video_rocks> 
> 
> > 
> 
> > Thanks.
> 
> >
>


Reply via email to