 	import com.kaltura.config.KalturaConfig;
 	import com.kaltura.net.KalturaCall;
 	
+	import flash.events.Event;
 	import flash.events.EventDispatcher;
 
 	public class KalturaClient extends EventDispatcher {
+		
+		[Event(name="callQueued", type="Event")]
+		
+		[Event(name="queueFlushed", type="Event")]
+		
+		public static const CALL_QUEUED:String = "callQueued"; 
+		public static const QUEUE_FLUSHED:String = "queueFlushed"; 
+		
+		
 		protected var _currentConfig:KalturaConfig;
 
 		/**

				_queue = new QueuedRequest();
			}
			_queue.addAction(call);
		}
		
		

		 */
		public function flush():void {
			if (_queue) {
				if (_queue.calls.length > 1) {
					post(_queue);
				} else {
					// if there is only one call, don't post it as a multirequest.
					// this makes fiddler easier to use.
					_queue.calls[0].execute();
				}
				_queue = null;
				dispatchEvent(new Event(KalturaClient.QUEUE_FLUSHED));
			}
		}

