I've got a flex application that is dependent on a class that slightly abstracts flex's resourceManager. The (pure AS3) class I'm using extends EventDispatcher, and deals with runtime loading of localization information as well as returning the translated tokens. I can't use the base resourceManager, as I don't want it to return null if the token is not found.
/endexposition
My problem comes when I attempt to make my getString function bindable.
[Bindable(event="bundleLoaded")]
public function getString...
The "bundleLoaded" event is dispatched appropriately. This function works correctly in 90% of the applications I'm involved in the development of. However, for ONE application, I get the following obfuscated error:
1084: Syntax error: expecting rightbrace before s. Resource=(ProjectName) Path=(null) Location=line 301
The application compiles and works (minus the bindings, obviously) before I add the [Bindable...] line, but after I add that line it refuses to compile correctly. There is nothing even mildly interesting located on line 301 of any of the application or support classes.
Any tips? Anyone have a similar experience?