Flex wrapper title
I need to change browser title via flex.
How can I change the broser title with flex in execution time?
I'm setting the title like this:
<mx:Ap开发者_开发知识库plication (xxx) pageTitle="ConfigApp.getTitle()}" (xxx) >
You can use the BrowserManager class for this. It has a function called setTitle() which does exactly what you want.
The BrowserManager can also handle a lot more interactions between Flex and the browser. I wrote a more elaborate answer on this topic earlier, which you can find here: Bookmarks in Flex
This works for me:
import mx.managers.BrowserManager; import mx.managers.IBrowserManager; import mx.events.BrowserChangeEvent;
private var bm:IBrowserManager;
bm = BrowserManager.getInstance(); bm.setTitle("... Page title xxx ...");
精彩评论