 						onAdsError();
 						break;
 					}
-					var newEntryId:String = (facade.retrieveProxy(MediaProxy.NAME) as MediaProxy).vo.entry.id;
+					var newEntryId:String = _mediaProxy.vo.entry.id;
 					preAds(newEntryId);
 					break;
 

			var destinationDate:Date = new Date();
			destinationDate.setDate(destinationDate.getDate() - maxAgeForAds);



			//calculate all 3 dates:
			var nd:Date = new Date ();
			nd.setTime(creationDate*1000);










			if( int(destinationDate.time/1000) <= creationDate  || maxAgeForAds==0)
			{
				var sequenceManager:IProxy = facade.retrieveProxy("sequenceProxy");
				if (sequenceManager["sequenceContext"] == SequenceContextType.PRE) {
					sendNotification(preSequenceNotificationStartName);
				} else if (sequenceManager["sequenceContext"] == SequenceContextType.POST) {
					sendNotification(postSequenceNotificationStartName);
				}
			}

	import com.tremormedia.acudeo.events.ControlsEvent;
	import com.tremormedia.acudeo.page.Page;
	import com.tremormedia.acudeo.player.Player;
	
	import fl.core.UIComponent;
	
	import flash.display.DisplayObject;
	import flash.display.Loader;
	import flash.display.MovieClip;
