Flex -creationComplete 和 ApplicationComplete 事件之间的区别?
各位,
我不明白这两个事件之间的区别。
他们有什么区别?
用eg 进行解释将永远受到赞赏。
谢谢。
Folks,
I didn't get the difference between those two event.
What is the difference between them ?
Explanation with e.g will always be appreciated.
Thanks.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(4)
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7ee6.html
每个组件都会在应用程序启动期间分派一条creationComplete消息 - 如果它要在启动时创建。否则,每个组件都会在实际创建消息时调度该消息。
从上面的文档链接:
*编辑以反映除应用程序启动上下文之外的其他时间调度creationComplete事件。
http://help.adobe.com/en_US/flex/using/WS2db454920e96a9e51e63e3d11c0bf69084-7ee6.html
Each component dispatches a creationComplete message during application startup - if it is meant to be created at startup. Otherwise each component will dispatch the message whenever it is actually created.
From the documentation link above:
*Edited to reflect other times when creationComplete events get dispatched, besides just the context of application startup.
请参阅此链接完整的解释。此外,
creationComplete
由每个 Flex 组件分派,但applicationComplete
仅由Application
本身分派一次。See this link with the full explanation. In addition,
creationComplete
is dispatched by every Flex component butapplicationComplete
dispatched only one time byApplication
itself.创建完成和应用程序完成都是 Flex 应用程序生命周期的一部分。有关更多信息和示例,您可以访问以下链接:
http://technobytz.com/flex-preinitialize。 html
Both the Creationcomplete and application complete is part of the flex application life cycle. For more information and examples you can go to the following link:
http://technobytz.com/flex-preinitialize.html
另一个重要的区别是,在调度 applicationComplete 之前,您的应用程序没有对阶段的引用
Another important difference is your application doesn't have a reference to the stage until the applicationComplete is dispatched