 					{
 						(viewComponent as ClosedCaptions).visible = !hideClosedCaptions;
 					}
-					
+
 					for each (var ccObj : KalturaCaptionAsset in _closedCaptionsDefs.availableCCFiles)
 				{
 					if (currentLabel == ccObj.label)

					break;
			}
		}
		
		private function addTextHandler () : void
		{
			if (_mediaProxy.videoElement && _mediaProxy.videoElement.client)
				_mediaProxy.videoElement.client.addHandler( "onTextData" , onTextData );
		}
		
		private function onTextData (info : Object) : void
		{
			if (_showingEmbeddedCaptions)
				(viewComponent as ClosedCaptions).setText(info.text);
		}
		
		private function onCCIOError (e : Event) : void
		{
			sendNotification( ClosedCaptionsNotifications.CC_IO_ERROR );
		}
		
		private function onCCGeneralError (e : Event) : void
		{
			sendNotification( ClosedCaptionsNotifications.CC_ERROR );
		}
		
		private function onErrorParsingCC (e : ErrorEvent) : void
		{
			sendNotification( ClosedCaptionsNotifications.CC_FAILED_TO_VALIDATE );
		}
		
		private function onGetEntryResult(evt:Object):void
		{
			var me:KalturaMediaEntry = evt["data"] as KalturaMediaEntry;
			(view as ClosedCaptions).loadCaptions(me.downloadUrl, _flashvars.captions.type);
		}
		
		private function onGetEntryError(evt:Object):void
		{
			trace ("Failed to retrieve media");
		}
		
		private function loadEntryCCData () : void
		{
			var entryCCDataFilter : KalturaCaptionAssetFilter = new KalturaCaptionAssetFilter();
			
			entryCCDataFilter.entryIdEqual = (facade.retrieveProxy(MediaProxy.NAME) as MediaProxy).vo.entry.id;
			
			var entryCCDataList : CaptionAssetList = new CaptionAssetList( entryCCDataFilter );
			
			var kalturaClient : KalturaClient = (facade.retrieveProxy(ServicesProxy.NAME) as ServicesProxy).vo.kalturaClient;
			
			entryCCDataList.addEventListener( KalturaEvent.COMPLETE, captionsListSuccess );
			entryCCDataList.addEventListener( KalturaEvent.FAILED, captionsListFault );
			
			kalturaClient.post( entryCCDataList );
		}
		
		private function captionsListSuccess (e : KalturaEvent=null) : void
		{
			var listResponse : KalturaCaptionAssetListResponse = e.data as KalturaCaptionAssetListResponse;
			
			if (listResponse.objects && listResponse.objects.length) {
				for each (var ccItem : KalturaCaptionAsset in listResponse.objects )
				{

			{
				sendNotification( NotificationType.ALERT, {message: "Application is unable to access your file system.", title: "Error saving localized settings"} );
			}

			var ccFileToLoad : KalturaCaptionAsset;
			for each (var ccObj : KalturaCaptionAsset in _closedCaptionsDefs.availableCCFiles)
			{
