Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Flex : Unable to open 'locale/en_US'

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?

like image 571
simplfuzz Avatar asked Jun 22 '09 18:06

simplfuzz


Video Answer


2 Answers

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}

like image 90
Srikanth Suryawanshi Avatar answered Sep 28 '22 03:09

Srikanth Suryawanshi


Have you added a "locale" directory containing an "en_US" directory at the root of your Flex project, to be used for storing your locale-specific properties? For example, in a project supporting English- and French-localized strings, your Flex project structure might look something like this:

-- YourProject
   |-- libs
   |-- locale
       |-- en_US
           |-- resources.properties
       |-- en_FR
           |-- resources.properties
   |-- src
       |-- [Your source files...]

Sounds like that might be what's happening. Give it a try and post back if it doesn't work for ya.

like image 43
Christian Nunciato Avatar answered Sep 28 '22 01:09

Christian Nunciato