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!
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
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/