[flexcoders] Re: is it possible to track visitors / the page an swf is embedded on

2009-02-19 Thread bsyyu
Hi all,

that's the problem for Flex, it is so flexible for different kind
backend language. Each has their con and pro. But personally, I favor
.NET on their growing popularity. Besides, I will put most of the
logics insides Flex, so as to reduce the dependency of the backend as
it only for database or upload services. 

Again the choice of AMF, which AMF for PHP ?  Weborb / AMFPHP / Zend,
why so many choice 



--- In flexcoders@yahoogroups.com, tom93438 tcs2...@... wrote:

  ...not the url of the document within which the app is embedded.
  For that, the only way is to use Javascript and ExternalInterface
 
 If you're looking for the url in the browser address bar then look at
 IBrowserManager:
 

http://livedocs.adobe.com/flex/3/langref/mx/managers/IBrowserManager.html
 
 URL property is: 'The current URL as it appears in the browser address
 bar.'
 
 tom
 
 
 
 
 --- In flexcoders@yahoogroups.com, Laurent Cozic pogopixels@ 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 kuntamayu@ wrote:
  From: kuntamayu kuntamayu@
  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, 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.
  
  
 





[flexcoders] Re: is it possible to track visitors / the page an swf is embedded on

2009-02-18 Thread kuntamayu

Try to track

Application.application.url

This may help you. :)



--- In flexcoders@yahoogroups.com, Tracy Spratt tspr...@... wrote:

 Look into the BrowserManager, perhaps it will help.
 
  
 
 Tracy Spratt 
 Lariat Services 
 
 Flex development bandwidth available 
 
 
 
 From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] 
On
 Behalf Of uclamerrick
 Sent: Wednesday, February 18, 2009 12:24 AM
 To: flexcoders@yahoogroups.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.






Re: [flexcoders] Re: is it possible to track visitors / the page an swf is embedded on

2009-02-18 Thread Laurent Cozic
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, 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: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.






 

  




 

















  

RE: [flexcoders] Re: is it possible to track visitors / the page an swf is embedded on

2009-02-18 Thread Ryan Graham

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.

[flexcoders] Re: is it possible to track visitors / the page an swf is embedded on

2009-02-18 Thread uclamerrick
Thank you, I am trying this out right now.

--- In flexcoders@yahoogroups.com, 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: 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, 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.
 
 





[flexcoders] Re: is it possible to track visitors / the page an swf is embedded on

2009-02-18 Thread uclamerrick
Thank you, I added Google Analytics but I also need an internal
tracking system.

--- In flexcoders@yahoogroups.com, Ryan Graham ryan.gra...@... wrote:

 
 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...@... wrote:
 
 From: kuntamayu kuntam...@...
 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 tspratt@  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.





[flexcoders] Re: is it possible to track visitors / the page an swf is embedded on

2009-02-18 Thread tom93438
 ...not the url of the document within which the app is embedded.
 For that, the only way is to use Javascript and ExternalInterface

If you're looking for the url in the browser address bar then look at
IBrowserManager:

http://livedocs.adobe.com/flex/3/langref/mx/managers/IBrowserManager.html

URL property is: 'The current URL as it appears in the browser address
bar.'

tom




--- In flexcoders@yahoogroups.com, 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: 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, 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.