Two ways to set browser title by Flex
This article is to share with you about the two ways to set the browser title in Flex. The editor thinks it is very practical, so I share it with you. I hope you can get something after reading this article. Let's take a look at it.
In the process of learning Flex, you may return to the problem of setting the browser title in Flex. There are two ways to set the browser title in Flex, which I will share with you.
Flex sets browser title
There are two ways to set the page browser title Title under Flex:
1 (recommend this method). Use the BrowserManager class to set up Title:
BrowserManager.getInstance () .setTitle ("* information systems")
You can write the above line of code in the initialization function of the system
two。 Set the pageTitle attribute under the Apllicaaction tag:
Compared with the two ways of setting browser title by Flex, it seems that the level of * * method is higher, that is, if you use two ways to set Title to different text at the same time, the effective method is still * method. (it is estimated that this is related to the initialization order of the Applcaition program, because even if a title is set in the pageTitle property, it is invalidated after the initialization function is set again.)
There is also the possibility that one of these methods may fail in different environments (mainly browsers), but at least one will work if you set the title to the same one in both ways. (I don't know if it's due to the default setting of the page title.)
These are the two major ways to set browser titles in Flex, and the editor believes that there are some knowledge points that we may see or use in our daily work. I hope you can learn more from this article. For more details, please follow the industry information channel.