这快把我逼疯了。我在Flash (不是Flex3)中使用ActionScript3。我有一个SimpleButton类的实例。我有一个不想在用户单击我的SimpleButton时失去焦点的TextField。据我所知,ActionScript2和Flex类'Button‘都有一个叫做"focusEnabled“的可设置/可获取属性。我似乎找不到与Flash ActionScript3的SimpleButton相当的东西。我确实找到了IFocusManager和IFocusManagerComponent的链接,但这两个链接对我来说似乎都不可用。干杯。
发布于 2010-10-08 03:06:32
使用click事件将焦点设置到文本字段怎么样?这样您就不必担心SimpleButton是否具有focusEnabled属性。
代码应该只是
stage.focus = myTextField;https://stackoverflow.com/questions/3882900
复制相似问题