Hi,

My localized application defines the following ResourceBundle for
retrieving localized strings (the [Bindable] is to get rid of warning
messages):

[Bindable]
[ResourceBundle("FDS")]
private var rb:ResourceBundle;

I then successfully use rb in my MXML code, except in
<mx:Application>, where I get a compiler message (missing parenthesis...):

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
                pageTitle="{rb.getString('page_titre')}">

I suspected it might be a timing issue, relative to when the
ResourceBundle rb actually gets instantiated, so I tried setting
pageTitle in the creationComplete function instead:

<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"; 
                creationComplete="onCreationComplete()">
...
private function onCreationComplete() : void
{
    Alert.show( "Setting browser title" );
    Application.application.pageTitle = rb.getString('page_titre');
}

But even though the Alert is displayed and I get no compiler message,
the title still doesn't get displayed, even if I hard-code it! I tried
calling onCreationComplete() from Application.initialize(), but get
the same result.

Any hint as to what I'm doing wrong would be appreciated. Thanks,

Chris.

Reply via email to