0 Replies Latest reply on Sep 18, 2011 7:27 AM by brownheezo

    USB/mount drive detection issue (using AIR 2)


      I'm creating a drive mount listener in Flash Builder.  For the most part, it works well.  Lately, I have had a problem actually getting the event of a drive being mounted.



          var s:StorageVolumeInfo=StorageVolumeInfo.storageVolumeInfo;
           s.addEventListener(StorageVolumeChangeEvent.STORAGE_VOLUME_MOUNT,USBM ounted);


      Then the handling method:


          private function USBMounted(e:StorageVolumeChangeEvent):void
              Alert.show("Drive Unmounted");


      My two questions:
      - Has anyone ever used this method to read all drives being mounted (CD, SD card, etc)?
      - Is there any way to get this to work using a USB hub?