选项卡索引不适用于 Flash 中的图像、面板和组标签
我正在编写代码来订购多个标签上的选项卡,例如“img”,“Panel”,“LinkButton”,... 和饼图。当我运行 Flash 程序时,选项卡索引根本不起作用。它仅适用于饼图和“链接按钮”标签,不适用于“img”、“Panel”、“Group”标签。我还尝试在这些字段上“启用选项卡”,但没有帮助。另一方面,当我禁用饼图上的选项卡和链接按钮时,选项卡仍然处于启用状态。
我已经搜索了很多,但还没有找到解决方案。如果有人能帮助我,我会非常感激 我正在开发Flash 10.0.0.0,sdk 4.1
I am writing code to order the tab on multiple tags like "img","Panel","LinkButton",...
and pie charts. when I run my flash program, the tab indexing does not work at all. it just works on pie chart and "link button" tags, not on "img","Panel","Group" tags. I also have tried to "enable tab" on those fields , but no help.on the other hand when I disable tab on the pie chart, and link button, still the tab is enabled.
I have searched a lot and could not find a solution yet. appreciate a lot if someone could help me
I am working on Flash 10.0.0.0 , sdk 4.1
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我的猜测是您正在寻找 tabEnabled 和 tabIndex,它们都是 flash.display.InteractiveObject 的属性
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/InteractiveObject.html?filter_flash=cs5&filter_flashplayer=10.2&filter_air=2.6
您可能还想看看 Stage.focus
http://help.adobe.com /en_US/FlashPlatform/reference/actionscript/3/flash/display/Stage.html#focus
如果您可以提供有关您的问题的更多详细信息,我将尽力帮助您提供更直接的答案。
My guess is that you are looking for tabEnabled and tabIndex, both properties of flash.display.InteractiveObject
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/InteractiveObject.html?filter_flash=cs5&filter_flashplayer=10.2&filter_air=2.6
You might also want to take a look at Stage.focus
http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/flash/display/Stage.html#focus
If you can give more details about your issue I'll try to help you with a more direct answer.
我终于能够实现 IFocusMangerComponent 以获得图像焦点。尽管“选项卡索引”在类中可用,但如果您想让选项卡在图像上工作,您必须简单地在 .as 文件中实现 IFocusMangerComponent ,如下所示。 (无需实现新类中的功能)
import mx.controls.Image;
导入 mx.managers.IFocusManagerComponent;
然后在代码中而不是使用 var image = new Image() ,您必须使用
I was finally able to implement the IFocusMangerComponent in order to get the focus for image. although the "tab index" is available in the class, if you want to get the tab to work on image, you have to simply implement IFocusMangerComponent as following in .as file. (no need to implement the functions in the new class)
import mx.controls.Image;
import mx.managers.IFocusManagerComponent;
then in the code instead of using var image = new Image() , you have to use