//user has selected some files public function fileRefListener_onSelect(fileRefList:FileReferenceList){ var list:Array = fileRefList.fileList; var tempList = new Array(); for(var i=0; i< list.length; i++){ var sizeFile = list[i].size/1024/1024; //in MB if((sizeFile > maxFilesize) || (sizeFile >= 150)){ //150 MB is Flash Player limit per file /**********************************************************************************************************/ frWindow.content.feedback_txt.htmlText = "<p align='center'>Maximo 150 MB: El fichero excede del tamaño ("+Math.ceil(sizeFile)+" MB)"; /**********************************************************************************************************/ }else{ if (list[i].type == ".rar") { tempList.push(list[i]); } else if (list[i].type == ".zip") { tempList.push(list[i]); } else if (list[i].type == ".ace") { tempList.push(list[i]); } else if (list[i].type == ".iso") { tempList.push(list[i]); }else{ /**********************************************************************************************************/ frWindow.content.feedback_txt.htmlText = "<p align='center'>El tipo de fichero no esta permitido: Seleccione | *.rar | *.zip | *.ace | *.iso | *.bin | *.7z |"; /**********************************************************************************************************/ }//end if }//end if }//for filesToUpload = filesToUpload.concat(tempList); frWindow.content.fileList_grid.dataProvider = filesToUpload; checkGridItems(); }//end func