Hello list;

I am getting the error "Unable to resolve class for ResourceBundle" in
my project every time FlexBuilder does an automatic build, or when I
chose "Build Project" if automatic builds are disabled. The only way to
get the build to succeed is to chose "Project->Clean". This works every
time.

I've tried using the compiler option "-incremental=false", but it has no
effect.

I've created a very simple project that illustrates the problem.

Localization.mxml

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
layout="absolute" xmlns:local="*">
     <local:MyCanvas/>
</mx:Application>

MyCanvas.mxml:

<?xml version="1.0" encoding="utf-8"?>
<mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml"; width="400"
height="300">
     <mx:Label text="@Resource( bundle='strings', key='Hello' )"/>
</mx:Canvas>

../locale/en_US/Strings.properties:

Hello=Hello World

(the "locale" directory is in the parent directory of the project to
avoid the "overlapping class-path" warning.)

In the project's settings I have added a "source path" that points to
the "../locale/en_US" directory.

To see the problem, do a "clean" and then make a change in
Localization.mxml. Save the file and let FlexBuilder do an automatic
build. You should see the "unable to resolve class for ResourceBundle:
strings_properties" error.

Any ideas?

Thanks.
Tobias.


Reply via email to