[flexcoders] Resource bundles and static vars

2009-06-01 Thread Tim Rowe
I'm trying to resolve an issue whereby we have a heap of structures defined in static arrays, and one of the params is a string of text. Ideally this string would come from a resource bundle to allow localization on the string. The problem is that though I've tried a variety of methods, I

Re: [flexcoders] Resource bundles and static vars

2009-06-01 Thread Manish Jethani
Try putting a breakpoint in SystemManager's installCompiledResourceBundles() function. That's where the resource bundles are set up. It's possible that your class is being loaded before the resource bundles are set up, and that's why you're getting null. Manish On Tue, Jun 2, 2009 at 5:08 AM,

RE: [flexcoders] Resource bundles and static vars

2009-06-01 Thread Gordon Smith
...@yahoogroups.com] On Behalf Of Manish Jethani Sent: Monday, June 01, 2009 5:18 PM To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] Resource bundles and static vars Try putting a breakpoint in SystemManager's installCompiledResourceBundles() function. That's where the resource bundles are set up

RE: [flexcoders] Resource bundles and static vars

2009-06-01 Thread Tim Rowe
10:26 AM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Resource bundles and static vars Reources are not loaded into the ResourceManager early enough for use at static initialization time. If you want a resource-based public static foo, do something like private static var

RE: [flexcoders] Resource bundles and static vars

2009-06-01 Thread Gordon Smith
[mailto:flexcod...@yahoogroups.com] On Behalf Of Tim Rowe Sent: Monday, June 01, 2009 5:34 PM To: flexcoders@yahoogroups.com Subject: RE: [flexcoders] Resource bundles and static vars That's exactly along the line I was looking at the problem being, though could only cofirm this through observed