Flash (AS3) - Mass 选项卡启用
我正在构建一个 Flash 应用程序,在一个框架上我有许多控件,按下选项卡将突出显示并允许选择(可访问性)。
当我选择其中一个控件时,背景在其顶部有一个 alpha 形状(最初设置为 0),它会使原始屏幕稍微变暗,并在前面(顶部)出现一个带有信息的新控件(此框可以是关闭并且原始屏幕从暗淡的 alpha 状态恢复到正常状态)。
我的问题是,我想停止原始屏幕上的控件通过选项卡(我只想按选项卡来突出显示新的窗口按钮)。
我知道我可以在每个控件上使用 tabEnabled
,但是是否可以简单地将顶级控件 tabEnabled
设置为 false
并使其禁用其子级的所有选项卡索引。
由于顶层下方的每个影片剪辑控件内有各种不同的级别或子控件,因此我只想设置顶层。我是否必须编写一个递归函数来完成如此简单的功能?
谢谢
I'm building a flash application and on one frame I have a number of controls that pressing tab will highlight and allow to be selectable (accessibility).
When I select one of the controls the background has an alpha shape over the top of it (initially set to 0), it will slightly dim the original screen and a new control appears in front (on top) with information (this box can be closed and the original screen is tweened from it's dimmed alpha state back to normal).
My issue is, I would like to stop the controls on the original screen to be tabbed through (I only want the pressing of tab to highlight the new windows buttons).
I know I can use tabEnabled
on each single control, but is it possible to simply set a top level controls tabEnabled
to false
and for it to disable all the tab indexes of its own children.
Because of the variety of differing levels or child controls within each movie clip control beneath my top level I want to just set the top level. Would I have to write a recursive function to complete such simple functionality?
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
tabChildren = false ;)
tabChildren = false ;)