Flex : Unable to open 'locale/en_US'

simplfuzz picture simplfuzz · Jun 22, 2009 · Viewed 14.3k times · Source

Using Flex Builder :
I have created a new Actionscript Project. I want to use mx.controls.Button class in it, so I did the following :

  1. Added '-locale=en_US -source-path=locale/{locale}' to the Actionscript compiler arguments
  2. Added 'framework.swc' to the library path

But now I get this error: unable to open 'locale/en_US' I looked up and I do have the following directory inside my Flex Builder 3 installation:
./sdks/3.0.0/frameworks/locale/en_US

How to fix it?

Answer

Srikanth Suryawanshi picture Srikanth Suryawanshi · Nov 2, 2010

I had the same problem

Try using this compiler argument:

-locale en_US de_DE -source-path+=../locale/{locale}

change de_DE to your locale name.

Above answer worked well.. just add +=../locale{locale}