开发者

Flex wrapper title

开发者 https://www.devze.com 2023-03-16 18:03 出处:网络
I need to change browser title via flex. How can I change the broser title with flex in execution time?

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 ...");

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号