If possible, you could look into Google Analytics to do the tracking for you:
http://code.google.com/apis/analytics/docs/flashTrackingIntro.html Worth a look, but might not meet your requirements. HTH, Ryan From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On Behalf Of Laurent Cozic Sent: Wednesday, February 18, 2009 6:08 AM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Re: is it possible to track visitors / the page an swf is embedded on 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...@yahoo.com> wrote: From: kuntamayu <kuntam...@yahoo.com> Subject: [flexcoders] Re: is it possible to track visitors / the page an swf is embedded on To: flexcoders@yahoogroups.com Date: Wednesday, February 18, 2009, 12:31 PM Try to track Application. application. url This may help you. :) --- In flexcod...@yahoogro ups.com <mailto:flexcoders%40yahoogroups.com> , "Tracy Spratt" <tspr...@... > wrote: > > Look into the BrowserManager, perhaps it will help. > > > > Tracy Spratt > Lariat Services > > Flex development bandwidth available > > ____________ _________ _________ __ > > From: flexcod...@yahoogro ups.com <mailto:flexcoders%40yahoogroups.com> [mailto:flexcod...@yahoogro ups.com <mailto:flexcoders%40yahoogroups.com> ] On > Behalf Of uclamerrick > Sent: Wednesday, February 18, 2009 12:24 AM > To: flexcod...@yahoogro ups.com <mailto:flexcoders%40yahoogroups.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> <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> > <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> > <http://myblog. wordpress. com/this_ video_rocks <http://myblog.wordpress.com/this_video_rocks> > > > Thanks. > This message is private and confidential. If you have received it in error, please notify the sender and remove it from your system.