弹出弹性窗口
当我单击按钮时,它应该弹出我的模块,当我单击外部时,它会隐藏或删除它。 这是我的代码:
private var Showup:IFlexDisplayObject;
Showup = PopUpManager.createPopUp(this, samplemodule, false);
Showup.addEventListener(FlexMouseEvent.MOUSE_DOWN_OUTSIDE, Removewindow);
private function Removewindow(e:FlexMouseEvent):void
{
PopUpManager.removePopUp(Showup);
}
我的问题是,在 samplemodule
中我有很多按钮。 当我单击任何按钮时,相应的模块应该加载到中间部分..但它不加载。
请告诉我错误或替代选项!
When I click the button, it should popup my module, when i click outside it will hide or remove it. This is the code I have:
private var Showup:IFlexDisplayObject;
Showup = PopUpManager.createPopUp(this, samplemodule, false);
Showup.addEventListener(FlexMouseEvent.MOUSE_DOWN_OUTSIDE, Removewindow);
private function Removewindow(e:FlexMouseEvent):void
{
PopUpManager.removePopUp(Showup);
}
My problem is, in samplemodule
I have lot of buttons. When I click any button the corresponding module should load to middle portion.. but it does not load.
Please tell me the mistake or an alternative option!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
不太确定您遇到什么问题,弹出窗口的关闭还是居中。 我认为这是居中。 如果是这样,请尝试添加:
Not quite sure what you are having trouble with, the close or the centering of the popup. I think it is the centering. If so, try adding:
请
在示例模块(弹出画布)主显示对象中添加标签作为标签。
当您移出弹出窗口并单击时,这将删除弹出窗口。
Please add
tag inside you samplemodule (Popping canvas) main Display object as tag.
This will remove the popup when you are moving outside the popup and clicking.