All pastes #2088945 Raw Edit

Mine

public text v1 · immutable
#2088945 ·published 2011-10-11 04:33 UTC
rendered paste body
package  {
	
	import flash.display.*;
	import flash.events.*;
	import flash.utils.*;
	import flash.ui.*;
	
	import Playtomic.*;
	import com.mixpanel.Mixpanel;
	
	public class StatManager {

		private static var statsEnabled = false;
		private static var mpmetrics:Mixpanel;
		
		public function StatManager(){}
		
		public static function setUp(){
			if(statsEnabled){
				//Log.View(1770, "a3a3857c9dfb4b97");
				//mpmetrics = new Mixpanel("c24b50623aa379f488d3e02e30cf8d5f");
				//geoLookup();
				var randNum = "" + ( Math.round( Math.random()*10000 ) );
				
				//mpmetrics.identify(randNum);
				
				//mpmetrics.track("Game load");
				//trace("Setting Up");
			}
		}
		/*
		public static function geoLookup(){
			if(statsEnabled)
				GeoIP.Lookup(geoCallBack);
		}
		
		private static function geoCallBack(country:Object, response:Object):void{
		    if(response.Success){
		        trace("Player is from " + country.Code + " / " + country.Name);
		    }
		}
		*/
		
		/*
			Death
			Win
			LifeLost
			NoLivesLost
		*/
		
		public static function levelStat( unlock:String ){
			/*if(statsEnabled){
				var level = MenuManager.curSong.trackNum;
				Log.LevelCounterMetric(unlock, level);
				mpmetrics.track("Level " + level + " " + unlock);
			}*/
		}
		
		/*
			Attack Placement
					RepeatPlaced
					DecPlaced
					RestPlaced
					SfzPlaced
					RepPlaced
			Tower Placement
					RedTowerPlaced
					YellowTowerPlaced
					GreenTowerPlaced
					BlueTowerPlaced
					PurpleTowerPlaced
		*/
		/*
		public static function customStat( group:String, unlock:String ){
			if(statsEnabled){
				Log.CustomMetric(unlock, group);
				if(unlock != "HowToPlay")
					levelStat( unlock );
			}
		}
		*/
		
		
	}
	
}