Flex:将数据从预加载器传递到应用程序?
我想跟踪下载和初始化我的 Flex 应用程序的客户体验。 (a) 有没有办法将数据从预加载器传递到应用程序?我想传递下载所需的时间和初始化所需的时间。 (b) 或者: 应用程序级别是否有与预加载器事件相对应的事件: 1.下载完成 2. 初始化完成(与应用程序创建完成相同)
I would like to track the customer experience in downloading and initializing my flex app.
(a) Is there a way to pass data from preloader to the application? I would like to pass the time it takes to download and the time it takes to initialize.
(b)Alternatively:
Is there an event at the application level that corresponds to the preloader events:
1. Download complete
2. Initialization complete (same as Application creationComplete)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
“显示应用程序的下载进度”
根据该文档,我会做这样的事情:
这是我的想法的一个例子(我没有编译这段代码,更多的是为了让我了解我在说什么)。
将其设置为 Application.mxml 中的预加载器并侦听 APPLICATION_COMPLETE 事件:
The "Showing the download progress of an application" article in the livedocs should help.
Based on that documentation, I would do something like this:
Here is an example of what I'm thinking (I've not compiled this code, it's more to give an idea of what I'm talking about).
Set that as your preloader in your Application.mxml and listen for the APPLICATION_COMPLETE event: