Hi guys,
I had a lot of trouble while trying to compile FileTile.mxml from filetile example app for AIR2 (downloaded from:
http://code.google.com/p/filetile/) with Flex 4 SDK.
I've used Adobe Air 2 sdk for Linux (downloaded from:
http://labs.adobe.com/downloads/air2.html) and the Flax 4 SDK (downloaded from
http://labs.adobe.com/technologies/flex4sdk/) I've also tried the open-source version (downloaded from:
http://opensource.adobe.com/wiki/display/flexsdk/Download+Flex+4)
while running the amxmlc I get the following error:
$ amxmlc FileTile.mxml
Loading configuration file flex-4-x-sdk/frameworks/air-config.xml
FileTile.mxml(98): Error: Type was not found or was not a compile-time constant: StorageVolumeChangeEvent.
private function onVolumeMount(e:StorageVolumeChangeEvent):void
FileTile.mxml(110): Error: Type was not found or was not a compile-time constant: StorageVolumeChangeEvent.
private function onVolumeUnmount(e:StorageVolumeChangeEvent):void
I have tried importing those classes by adding:
import flash.events.StorageVolumeChangeEvent;
to mxml file, unfortunately with no success.
Could this error happen due to missing libraries? If so, where am I supposed to locate the libraries for mass storage device manipulation. Any assistance is greatly appreciated!