Hey guys,

   I have a Flex 3 app that employs dynamic resource management - pretty
much a cut-n-paste job from the Adobe sample - with the ComboBox to
switch languages. I did all the copylocale rigmarole and it's all
working perfectly with the languages I've set up.

   However, when I try to call a DateFormatter with a full month (MMM or
MMMM) in the formatString it crashes and burns with the following error:

TypeError: Error #1009: Cannot access a property or method of a null
object reference.
     at
mx.formatters::DateBase$/http://www.adobe.com/2006/flex/mx/internal::ext\
ractTokenDate()

This is probably referring to the DateBase.monthNamesLong array;
formatting is not an issue with M or MM.  Am I perhaps missing something
in the creation of my resource files? This is a sample of the command I
used:

mxmlc -locale=es_ES -source-path=locale/{locale}
-include-resource-bundles=LanguageResource,collections,containers,contro\
ls,core,effects,logging,messaging,rpc,skins,styles,utils
-output=src/Resources_es_ES.swf

But it even dies when the locale is set to en_US.

Help? :)


Reply via email to