Flex 库可以做烤面包机风格的通知吗?
我正在构建一个 Air 应用程序,我需要的一项功能是屏幕右下角的烤面包机样式通知。在我开始编写自己的 toast 控制器之前,有人知道具有此类功能的现有库吗?我正在寻找一些东西,如果我将 UIComponent 传递给它,它只会管理 toast 通知的显示、隐藏和堆叠。
I'm building an Air app and one feature I need is toaster style notifications in the bottom right corner of the screen. Before I go ahead and start writing my own toast controller, does anyone know of an existing library for such functionality? I'm looking for something which will just manage displaying, hiding and stacking of toast notifications if I pass it a UIComponent.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我不知道什么是烤面包机风格的通知。但是,我认为您基本上是指“弹出窗口”,对吧?类似于 TweetDeck 的功能吗?
我不知道具体的库,但曾经有一个 Adobe AIR 示例应用程序可以执行此操作。这是有关它的一些文档。如果我没记错的话,那个应用程序在多个监视器系统中确实有一个错误。
I don't know what toaster style notifications are. But, I assume you mean, basically, "popups" right? Similar to what TweetDeck does?
I don't know of a specific Library, but there used to be an Adobe AIR sample app that did this. Here is some documentation on it. That app did have a bug in multiple monitor systems if memory serves me.
有趣的是,我正在做这件事。这是我发现您可能会觉得有用的库:http://code.google.com/p/ as3notificationlib/ 最后,这个库并没有完全满足我的要求,所以我只是创建了自己的版本,这实际上非常简单。希望有帮助。
Funny, I'm working on this very thing. Here's a library I found that you might find useful: http://code.google.com/p/as3notificationlib/ In the end that library didn't quite do what I wanted so I just created my own version, which was actually pretty easy. Hope that helps.
我正在使用这个库 http://code.google.com/p/flex-toasterlib/ 并且效果非常好。
只需确保将顶级应用程序的布局设置为“绝对”(对于 flex < 4)或“basicLayout”(对于 flex 4),以便允许通知显示在显示列表的顶部。
I'm using this library http://code.google.com/p/flex-toasterlib/ and it works very well.
Just make sure you set your top-level application's layout to "absolute" (for flex < 4) or "basicLayout" (for flex 4) in order to allow the notifications to be displayed on top of you display list.