views:

2524

answers:

7

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?

+1  A: 

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.

Christian Nunciato
Yes it works. -dta
dta
A: 

good, it was solved!

You should have added a comment, rather than adding an answer.
dta
A: 

Put locales to sdks\3.2.0\frameworks\locale\en_US it works well also.

A: 

Having similar error. However, I do have the directories needed as well as property files in place. Any other ideas?

Steve
A: 

Hello, try using this compiler argument:

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

change de_DE to your locale name.

axpendix
A: 

Hello,

I have the same problem, but I have the "tree" with the correct locale folders, I created the folders in the SDK folder as well and finally I tried to add those settings in the compiler settings. Still, it won't work. I keep getting this "Error:unable to open ".

Any idea?

Diogo Coelho