 		 */
 		private function contentResumeRequestedHandler(event:AdEvent	= null):void 
 		{	
+			adInProgress		= false;
 			
 			if(_background.parent)
 				_background.parent.removeChild(_background);
 			
-			
-			log("contentResumeRequestedHandler	isAdRulex:"+_isAdRule +"		:isLinear : ");
+			log("contentResumeRequestedHandler	");
 			
 			// Rewire controls to affect content instead of the ads manager.
 			//tell sequence proxy, hey this sequence item is done. do your thang. 
-			
+			_mediator.enableControls();
 			//we tell it that we're done if the current ad was requested by the sequenceProxy
-			if(_sequenceProxy.vo.isInSequence)
+			if(_sequenceProxy.vo.isInSequence && !event.ad)
 				_facade.sendNotification(NotificationType.SEQUENCE_ITEM_PLAY_END);
-			
-			//adRules are not managed by the sequenceProxy, so we force playback
-			if(!_mediator.playbackComplete)
+			else if (event.ad){
+				if(!event.ad.linear && _sequenceProxy.vo.isInSequence)
+					_facade.sendNotification(NotificationType.SEQUENCE_ITEM_PLAY_END);
+			}
+			else if (!_mediator.playbackComplete){
+				//this is called when there's an adRule and midrolls are complete
 				_facade.sendNotification(NotificationType.DO_PLAY);
-			
-			//			if(event){
-			//				_facade.sendNotification(NotificationType.DO_PLAY);
-			//			}
-			
-			adInProgress		= false;
-			_mediator.enableControls();
+			}
+			
+			
+			
 			
 		}
 		

			Security.allowDomain("*");
		}
		
		public function get adTagUrl():String
		{
			return _adTagUrl;
		}

		public function set adTagUrl(value:String):void
		{
			_adTagUrl = unescape(value);
		}

		public function initializePlugin(facade:IFacade):void
		{
			

				});
				
				adsManager.addEventListener(AdEvent.LOADED, function(e:AdEvent):void{
					log("AdEvent.LOADED	totalAds:"+e.ad.adPodInfo.totalAds );
					log("AdEvent.LOADED	position:"+e.ad.adPodInfo.adPosition );
					log("AdEvent.LOADED	isBumper:"+e.ad.adPodInfo.isBumper );
					if(e.target.cuePoints.length > 0){
						log("cuepont lenght:::: "+e.target.cuePoints.length);
						_isAdRule		= true;
					}
					
					//if overlay or adrule, resume content
					if (!adsManager.linear)
						contentResumeRequestedHandler(e);
				});
				
