Update.  I was able to get fix the issue with a minor change to the original 
reply.  I had to set the title to the string explicitly.

Thanks again.

private var applicationName:String = "User status and admin option";

private function initApp():void
{
    browserManager = BrowserManager.getInstance();
    browserManager.setTitle(applicationName);
    browserManager.addEventListener(BrowserChangeEvent.APPLICATION_URL_CHANGE, 
uRLChange);
}
                        
private function uRLChange(event:BrowserChangeEvent):void
{
    browserManager.setTitle(applicationName);
}




--- In [email protected], "ynotob" <t...@...> wrote:
>
> Thanks, I'll give that a try, appreciate the detailed response.
> 
> Do you know if it is fixed in more recent SDK releases?  
> 
> I've been meaning to upgrade the SDK for a while but have delayed because I'm 
> not sure how painful / painless the process is.
> 
> --- In [email protected], "Flex Boy" <cato1@> wrote:
> >
> > Yea I know, it's a bug in the historymangager(sdk 3.2), you have to set the 
> > pagetitle manual after pressing the tab..
> > 
> > work around:
> > 
> > private var browserManager:IBrowserManager;
> > 
> > private function initApp():void
> > {
> > browserManager = BrowserManager.getInstance();
> > browserManager.setTitle('your page title');
> > browserManager.addEventListener(BrowserChangeEvent.APPLICATION_URL_CHANGE, 
> > uRLChange);
> > }
> > 
> > private function uRLChange(event:BrowserChangeEvent):void
> > {
> >    browserManager.setTitle(browserManager.title);
> > }
> > 
> > 
> > --- In [email protected], "ynotob" <tony@> wrote:
> > >
> > > I've added a TabNavigator to a flex application.
> > > 
> > > The application is launched from html that is generated by a java server 
> > > page (main.jsp).  The generated html includes a html page title.  
> > > 
> > > Up until I added the TabNavigator to the application, the generated html 
> > > page title would display as expected when the flex application is run in 
> > > the browser.
> > > 
> > > Now that I've added a TabNavigator, the html page title shows as expected 
> > > until the flex application shows the TabNavigator.  Then the page title 
> > > changes to that of the jsp (main.jsp) along with the full url to main.jsp.
> > > 
> > > Any idea of how to stop the TabNavigator from changing my page title?
> > > 
> > > Tony
> > >
> >
>


Reply via email to