Welcome, Guest. Please login or register.
Did you miss your activation email?
31 Jul 2010, 11:37:36 UTC
Forum home
+  flexdeveloper.eu Forum
|-+  Flex and ActionScript 3.0
| |-+  Flex 4 Framework (Moderators: flexy, JMWhittaker, Jan K, thewarpedcoder, James)
| | |-+  Hard time compiling filetile example app
« previous next »
Pages: [1] Print
Author Topic: Hard time compiling filetile example app (Read 713 times)
sky4net
Newbie FD
*
Posts: 2


« on: 23 Feb 2010, 15:15:30 UTC »

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!
Logged
sky4net
Newbie FD
*
Posts: 2


« Reply #1 on: 23 Feb 2010, 15:28:10 UTC »

The problem was magically solved by grabbing the latest version of Flex 4 SDK, namely
Adobe Flex 4 SDK v4.1.0.14345 from http://opensource.adobe.com/wiki/display/flexsdk/download?build=4.1.0.14345&pkgtype=1
Logged
flexy
flexdeveloper.eu
Guru/Addict FD
*****
Posts: 3,155


Recovering Coffee Addict & Adobe Expert


WWW
« Reply #2 on: 23 Feb 2010, 15:36:09 UTC »

Thanks for posting your resolution.

A check for a newer SDK is never a bad first move... well done for taking the initiative.
Logged

Pages: [1] Print
« previous next »
Share this on: Twitter Twitter Del.icio.us del.icio.us Digg Digg
Jump to:

©2006-2010 Flexdeveloper.eu/Jodie O'Rourke. All rights reserved.
Adobe®, Adobe® Flash™, Adobe® AIR™ and Adobe® Flex™ are registered trademarks of Adobe Systems Incorporated in the United States and other countries. All rights reserved.

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC