开发者

Set title of a titleWindow using AS3

I am using a titl开发者_如何学CeWindow as a container for a popup (flex 3.5). I want to set the title of the window using a variable. Any idea, how do we do that?


What is the type of your variable? Also, do you want to set this in ActionScript or MXML?

If you want to set it in MXML, just do:

<mx:TitleWindow title="{myVariable}" />

In ActionScript its just:

titleWindow.title = myVariable;

If your variable is not a String, you'll need to call toString() prior to setting it.


titleWindow.title = "myTitle"

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜