开发者

Setting the Panel Owner

I've got an application that allow开发者_开发技巧s a panel to popup to allow the user to edit some properties.

How do I set the panel owner so that it is on top of all the other components on the page without actually disabling them like you do with an alert box?


Use the PopUpManager to display something on top of everything else. I used a function like this to create the Popup before:

protected function createPopUp(className:Class):void{
  var win : IFlexDisplayObject = PopUpManager.createPopUp(Application.application as DisplayObject, className, false) as IFlexDisplayObject;
  PopUpManager.centerPopUp(win);
}

You can see it in action with the Flextras Calendar API Explorer. Click any button on the top bar.

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜