I'm working on a way to set the focus to an invisible button, then run a
function off the button using onSetFocus. However, after that runs and all, I
want to kill the focus, but there is no Selection.killFocus command. There is
an onKillFocus command for buttons and textfields, but it doesn't seem like
there is a way to simply say Selection.killFocus("my_btn");
Is there a way to do this that I'm overlooking? Or am I out of luck?
bwm_razel - 31 Aug 2005 13:50 GMT
ACtually my code isn't even working for what I was talking about...can someone
help with this code perhaps?
_focusrect = false;
Selection.setFocus(my_btn);
my_btn.onSetFocus = function() {
trace ("THE BUTTON HAS FOCUS YOU MORON");
}
stop();
The trace isn't even working...I don't know why :S
mandingo - 01 Sep 2005 00:04 GMT
does your button have the ability to receive focus?
Include it in your tabIndex and then apart from that, I have never had success
in setting focus direct to a button on start... getting it on tab is not a
problem...