Question

When I try to convert between date and string in Flash CS4, I use DateFormatter, I import mx.formatters.DateFormatter, but it tells me "Definition mx.formatters.DateFormatter could not be found", how to solve it, thank you!

Was it helpful?

Solution

The issue is that the DateFormatter is part of the Flex SDK and not part of Flash CS4. You need to include the Flex SWC file in your actionscript settings.

I found a nice little tutorial that explains everything you need to know with screenshots.

http://actionscriptexamples.com/2008/10/26/using-the-flex-sdk-with-flash-cs4/

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top