Thanks for the info.

--- In flexcoders@yahoogroups.com, "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> That's a compile-time property for setting up the default html
> templates.  You can't use binding or set it at run-time.
> 
>  
> 
> You can use BrowserManager in Flex 3
> 
>  
> 
> ________________________________
> 
> From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
> Behalf Of gers32
> Sent: Wednesday, October 17, 2007 5:32 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Problem setting localized Application.pageTitle
> 
>  
> 
> 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
> <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
> <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