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 :
- Added ‘-locale=en_US -source-path=locale/{locale}’ to the Actionscript compiler arguments
- 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?
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:
Sounds like that might be what’s happening. Give it a try and post back if it doesn’t work for ya.