Flash: Dirty Tracking

June 4th, 2005 by Luis

There are some cases where you will have to deliver just a simple swf banner with some kind of tracking system.

There is a simple way of tracking visitors from inside flash without any external requirements .

Actionscript:
  1. getURL ("javascript:t=new Function(\'i=new Image();i.src=\\'http://tracking.yourdomain.com/track.gif\\'\');t();");


Using a javascript function inside getURL ignores the security restrictions in Flash Player and gives you the freedom to distribute the swf as it is.

One Response to “Flash: Dirty Tracking”

  1. Forget-Me-Not » Blog Archive » Flash tracking (dirty trick) Says:

    […] Flash tracking (dirty trick) via the fountan of info that is the Lessrain blog ActionScript: getURL (”javascript:t=new Function(’i=new Image();i.src=\’http://tracking.your […]

Leave a Reply