[_] Obscure ActionScript 3 question
Tom Gidden
tom at gidden.net
Thu Jul 3 13:47:57 BST 2008
[_], I've got a bunch of SimpleButtons which I'm moving about, alpha-fading in and out, and so forth. I've set stage.stageFocusRect=false, to get rid of the yellow focus rectangle (which clashes unacceptably), but this means the keyboard events don't activate the focussed buttons. If stageFocusRect is true, it works fine. Anyway, failing any insight or tricks on that, I can pick up the keyboard events elsewhere through bubbling. In AS2, I understand you can then just call stage.focus.onPress(). In AS3, is there an equivalent way of faking a press, rather than the messy (and garbage- collection-fouling) approach of storing the event handlers separately? Tearing hair out at this point... TIA, -- Tom Gidden http://gidden.net/tom