Created
May 27, 2010 17:41
-
-
Save mjfreshyfresh/416094 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* 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