每当显示屏幕(状态的子级)时可以使用什么事件来了解 - flex
我知道事件“show”适用于视图堆栈,即我可以使用此事件(捕获它并进行一些处理)来了解我的视图堆栈子项何时显示在屏幕上。但是,当我尝试对某个状态的子级使用相同的事件时,它不起作用(即在其事件处理程序中设置的断点永远不会被命中)。类似地,creationComplete 仅在第一次访问屏幕时才起作用。 任何帮助将不胜感激。
谢谢
I know the event "show" works for View stack i.e. I can use this event (capture it and do some processing) to know whenever my view stack child gets displayed in screen. But when I am trying to use the same event for a child of a state it doesn't work (i.e. breakpoint set at its event handler never gets hit). Similary, creationComplete only works when the screen is visited for the first time.
Any help would be greatly appreciated.
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您是否尝试过在 EnterState 事件上添加侦听器?
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/states/State.html?filter_coldfusion=9&filter_flex=3&filter_flashplayer=10&filter_air =1.5#事件:进入状态
Have you tried to add a listener on the enterState event?
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/states/State.html?filter_coldfusion=9&filter_flex=3&filter_flashplayer=10&filter_air=1.5#event:enterState