Monday, November 2, 2009

EXIF Reader in Flex+AIR II


Now that files and folders can be selected, I move on to the next step, which contains the following substeps:

  • Validating the selected files/folders
  • Batch Loading the files
  • On every file load, get the EXIF info for that file and save it as XML
A.Validating the selected files/folders


For the purpose of validating and loading Files I have created a class called "EXIFReaderClass"


<mx:Button x="10" y="534" label="Run EXIFReader" width="482" click="startReading()"/>



private function startReading():void{
             objEXIFReader.init(fsTree.selectedPaths)
}

The selectedPaths contains all the selections from the FileSystemTree component.


The validation is done in the EXIFReader Class:












No comments: