AIR 应用程序启用 = false 未处理(Busyindicator)
在我的 AIR 应用程序(带有 mate-Framework)中,我做了以下事情:
- 单击按钮
- ,调用我的模型“onApplicationBusy”中的方法
- ,在 arraycollections 中应用一些过滤器。
在我的 onApplicationBusy 中有这样的代码:
FlexGlobals.topLevelApplication.enabled = false;
FlexGlobals.topLevelApplication.
我跟踪每一步,并且所有方法都按正确的顺序调用。 但我的应用程序永远不会被禁用。
为什么。有没有一种方法可以达到这个目的。
我尝试 InvalidateDisplayList 或 ValidateNow 或 callLater。但所有尝试都行不通。也许我在错误的地方尝试过?
我假设,我的应用程序在应用过滤器(10.000 行有 4 个值)时非常繁忙,以至于无法处理禁用的属性。
如果我在不应用过滤器的情况下调用该方法,则一切正常。 如果我只调用 disbaled 属性但不再启用该应用程序,则应用过滤器后该应用程序将显示为已禁用。对我来说太晚了。
我最初想要的是一个清晰的行为,当应用程序繁忙时和不忙时(准备好单击按钮和所有这些东西)。
如果您可以帮助我或知道一种方法,我如何显示繁忙的应用程序,请帮助我 谢谢 坦率
In my AIR application (with mate-Framework) i did follwing things:
- click on a button
- call a method in my model "onApplicationBusy"
- apply some filter in arraycollections.
In my onApplicationBusy there is this code:
FlexGlobals.topLevelApplication.enabled = false;
FlexGlobals.topLevelApplication.
I trace every step and all methods are called in right order.
But my application never becomes disabled.
Why. Is there a method for this purpose.
I try InvalidateDisplayList or ValidateNow or callLater. But all tries won't work. Probably i try it on the wrong place?
I assume, my application is so busy while applying filters (4 values for 10.000 lines) that the disabled property can't processed.
If i call the method without applying the filters all works fine.
If i call just the disbaled property but never enable the app again, the app will shown as disabled after applying the filters. for me too late.
What i origin want is a clear behavior, when the app is busy and when not (ready for clicking on buttons and all this stuff).
If you can help me or know a method, how can i shown a busy application, please help me
Thanks
Frank
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
好吧,setTimeout 方法解决了我的问题。我想,我必须等待下一次屏幕刷新。
为什么 callLater 不起作用,当我必须实现这些函数时,因为我的 filterFunction 运行时资源太少?
坦率
All right, the setTimeout Method solve my issue. I assume, I have to wait for the next screen refresh.
Why callLater won't work and when i have to implement those functions, because i have too less ressources while my filterFunction is running?
Frank
我正在使用 FlexGlobals.topLevelApplication.stage.mouseChildren = false |真的;
值得注意的是,我第一次尝试设置 mouseEnabled 标志,但发现当 mouseEnabled = false 时,各种视觉元素根本不会更新。
I'm using FlexGlobals.topLevelApplication.stage.mouseChildren = false | true;
Worth noting that I first tried setting the mouseEnabled flag but found various visual elements would not update at all while mouseEnabled = false.