Search code examples
actionscript-3flashapache-flexairflash-builder

Flex breaking AS3 focus functionality in SWC


I've got a flashbuilder air/flex app that used SWC's for all of it's graphic/window content that I've inherited and have run into a problem that i do not know how to solve.

The SWC has multiple text inputs which the user can tab through. However, when that SWC is loaded in flash builder pressing tab only causes the focused text field to lose focus and nothing appears to gain the focus next.

I've manually captured the tab keypress via a keyDown event listener inseide the SWC's AS3, however even setting stage.focus or setSelection() has no effect when running inside the flashbuilder app.

Is there something i can do to tell air/flex/flashbuilder to allow the focus events of the SWC?


Solution

  • I've closed this question as i ended up having to write my own input tab/focus manager from the ground up as a workaround.