Skip to content

Instantly share code, notes, and snippets.

@mjfreshyfresh
Created May 27, 2010 17:41
Show Gist options
  • Save mjfreshyfresh/416094 to your computer and use it in GitHub Desktop.
Save mjfreshyfresh/416094 to your computer and use it in GitHub Desktop.
/**
* Loads the GIF file that facilitates analytics tracking.
*/
private function loadAnalyticsImage(mode:String):void
{
var pageLinkValue = encodeURIComponent('/'+(environment+mode)+'?uid='+uid+'&movid='+vid);
var ag = 'http://fbga.foofoo.net/fbga.php?googlecode=UA-197932-6&googledomain=facebook.com&pagetitle=' + (environment+mode) + '&pagelink=' + pageLinkValue;
//trace(ag);
var loader:Loader = new Loader();
var request:URLRequest = new URLRequest(ag);
loader.contentLoaderInfo.addEventListener(Event.COMPLETE, analyticsImageLoaded, false, 0, true);
loader.load(request);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment