选项卡索引不适用于 Flash 中的图像、面板和组标签

发布于 2024-12-07 20:13:25 字数 269 浏览 0 评论 0原文

我正在编写代码来订购多个标签上的选项卡,例如“img”,“Panel”,“LinkBut​​ton”,... 和饼图。当我运行 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

柠檬色的秋千 2024-12-14 20:13:25

我的猜测是您正在寻找 tabEnabledtabIndex,它们都是 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.

早茶月光 2024-12-14 20:13:25

我终于能够实现 IFocusMangerComponent 以获得图像焦点。尽管“选项卡索引”在类中可用,但如果您想让选项卡在图像上工作,您必须简单地在 .as 文件中实现 IFocusMangerComponent ,如下所示。 (无需实现新类中的功能)

import mx.controls.Image;
导入 mx.managers.IFocusManagerComponent;

  public class FocusableImage extends Image implements IFocusManagerComponent
  {
            public function FocusableImage()
            {
                      super();
            }
  }

然后在代码中而不是使用 var image = new Image() ,您必须使用

var image = new FocusableImage() 
   image.tabEnabled = true;
   image.tabFocusEnabled = true;
   image.tabIndex = 1;

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;

  public class FocusableImage extends Image implements IFocusManagerComponent
  {
            public function FocusableImage()
            {
                      super();
            }
  }

then in the code instead of using var image = new Image() , you have to use

var image = new FocusableImage() 
   image.tabEnabled = true;
   image.tabFocusEnabled = true;
   image.tabIndex = 1;
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文