I'm not sure if this will help, but...
1) add the entry below in your root app file:
[ResourceBundle("Strings")]
private var rb:ResourceBundle;
2) Then add the items below to your Flex compiler settings:
-locale=en_US -source-path=../config/locale/en_US // change the path to what u
have
My path looks like:
/dev/kronos/src/config/locale/en_US
/dev/kronos/src/kronosWeb/billing.mxml // this is the root app
Dimitrios Gianninas
RIA Developer
Optimal Payments Inc.
________________________________
From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of
tobiaspatton
Sent: Thursday, December 21, 2006 8:01 PM
To: [email protected]
Subject: [flexcoders] Unable to resolve class for ResourceBundle
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.
--
WARNING
-------
This electronic message and its attachments may contain confidential,
proprietary or legally privileged information, which is solely for the use of
the intended recipient. No privilege or other rights are waived by any
unintended transmission or unauthorized retransmission of this message. If you
are not the intended recipient of this message, or if you have received it in
error, you should immediately stop reading this message and delete it and all
attachments from your system. The reading, distribution, copying or other use
of this message or its attachments by unintended recipients is unauthorized and
may be unlawful. If you have received this e-mail in error, please notify the
sender.
AVIS IMPORTANT
--------------
Ce message électronique et ses pièces jointes peuvent contenir des
renseignements confidentiels, exclusifs ou légalement privilégiés destinés au
seul usage du destinataire visé. L'expéditeur original ne renonce à aucun
privilège ou à aucun autre droit si le présent message a été transmis
involontairement ou s'il est retransmis sans son autorisation. Si vous n'êtes
pas le destinataire visé du présent message ou si vous l'avez reçu par erreur,
veuillez cesser immédiatement de le lire et le supprimer, ainsi que toutes ses
pièces jointes, de votre système. La lecture, la distribution, la copie ou
tout autre usage du présent message ou de ses pièces jointes par des personnes
autres que le destinataire visé ne sont pas autorisés et pourraient être
illégaux. Si vous avez reçu ce courrier électronique par erreur, veuillez en
aviser l'expéditeur.