 		 * if set to true buffer_start and buffer_end events won't be sent 
 		 */		
 		public var bufferStatsDis:Boolean = false;
+		
+		private var _mediaProxy:MediaProxy;
 
 		/**
 		 * Constructor 

			}
			kse.sessionId = config["vo"]["sessionId"];
			kse.seek = _hasSeeked;
			kse.referrer = config["vo"].flashvars.referer;
			if (!kse.referrer)
				kse.referrer = config["vo"].flashvars.refferer;
			// verify the the referrer is escaped once
			kse.referrer = escape(unescape(kse.referrer));
			
			if (config["vo"].flashvars.playbackContext)
				kse.contextId = config["vo"].flashvars.playbackContext;
			if (config["vo"].flashvars.originFeature)
				kse.featureType = config["vo"].flashvars.originFeature;
			if (config["vo"].flashvars.applicationName)
				kse.applicationId = config["vo"].flashvars.applicationName;
			if (config["vo"].flashvars.userId)
				kse.userId = config["vo"].flashvars.userId;
			
			return kse;
		}

			var config:Object = facade.retrieveProxy("configProxy");
			var mediaPlayer:Object = facade.retrieveMediator("kMediaPlayerMediator");
			var kse:KalturaStatsEvent = new KalturaStatsEvent();
			kse.partnerId = _flashvars.partnerId;
			kse.widgetId = _flashvars.id;
			kse.uiconfId = _flashvars.uiConfId;
			// this is where we choose the entry to report on
			if (_mediaProxy.vo.entry.id)
				kse.entryId = _mediaProxy.vo.entry.id;
			kse.clientVer = "3.0:" + facade["kdpVersion"];
			var dt:Date = new Date();
			kse.eventTimestamp = dt.time + dt.timezoneOffset - dt.timezoneOffset * 60; // milisec UTC + users timezone offset
