Copy link to clipboard
Copied
Gidday
I'm playing around with the AS3XLS lib so I can import Excel files into an AIR app.
I've almost got it working - only problem is I'm getting compile-time error like...
1046: Type was not found or was not a compile-time constant: DateFormatter.
... for the following classes:
import mx.formatters.DateFormatter;
import mx.formatters.NumberBase;
import mx.formatters.NumberBaseRoundType;
import mx.formatters.NumberFormatter;
I thought it was related to the flex lib not being installed, but I have the flex swc in my lib path, and use other Flex in the project.
Any idea why the error is appearing?
Cheers!
Depends on which ide you are using besides Flash.
I use Flashdevelop and can simply mark any imported class, right click>go to declariation and it will open the source for me.
If you dont have anything besides Flash, make a copy of your swc-file, rename the copys file format to zip and manualy navigate through the library.
Copy link to clipboard
Copied
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/formatters/DateFormatter.html
states that newer flex versions should use spark.formatters
Copy link to clipboard
Copied
Thanks Mocca
Still no go. Can Spark formatters be used in Flash Pro CS 6?
Copy link to clipboard
Copied
Does the DateFormatter class exist in your version of the flex sdk?
Copy link to clipboard
Copied
Rookie question - how do I find that out? I think it's Flex 4.6
Copy link to clipboard
Copied
Depends on which ide you are using besides Flash.
I use Flashdevelop and can simply mark any imported class, right click>go to declariation and it will open the source for me.
If you dont have anything besides Flash, make a copy of your swc-file, rename the copys file format to zip and manualy navigate through the library.
Copy link to clipboard
Copied
Cheers Mocca
Find more inspiration, events, and resources on the new Adobe Community
Explore Now