【问题标题】:targetting the next container child in flex针对 flex 中的下一个容器子项
【发布时间】:2011-11-25 19:36:54
【问题描述】:

我在运行时在 flex 中创建了几个按钮。当我使用event.currentTarget 属性单击一个按钮时,我可以更改其属性,例如 x、y、标签等,也可以获取其索引。现在我也可以找到下一个子索引,但是如何使用它的索引更改下一个子索引的属性。

目前我正在使用getElementIndex(Button(event.currentTarget)).x 更改其 x 坐标。需要更改旁边按钮的坐标。

【问题讨论】:

    标签: actionscript-3 apache-flex actionscript


    【解决方案1】:

    您可以在按钮的parent 上使用getChildAt(index + 1)

    【讨论】:

      猜你喜欢
      • 2020-12-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-11-09
      相关资源
      最近更新 更多