flex tabnavigator 选项卡点击事件
我有一个
,它有一些
标签作为孩子。我希望选项卡在单击它们时调度一个事件。我尝试了 NavigatorContent 中的“单击”事件,但它没有执行任何操作。有人有这方面的经验吗? 谢谢
I have a <mx:TabNavigator>
which has some <s:NavigatorContent>
tags as children . I want the tabs to dispatch an event when I click them . I tried the "click" event in NavigatorContent but it didn't do anything . anyone has any experience with it?
thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
我相信您想要
change
事件。它继承自
ViewStack
容器:http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/containers/ViewStack.html#event:changeI believe you want the
change
event.It is inherited from the
ViewStack
container: http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/mx/containers/ViewStack.html#event:change你好
我相信使用演出活动可能会达到您想要的效果?
我希望在显示特定内容时触发一个事件,并且我希望为选项卡导航器的每个导航器内容执行不同的操作。
希望它对某人有帮助:)
Hi
i believe using the show event might do what you want?
i wanted an event triggered when the particular is shown, and i wanted a different action for each navigatorcontent of my tabnavigator.
hope it helps someone :)