FocusManager code error (Flash mx.managers package)
Just a quick note of an error in the Flash mx class library, the FocusManager class (mx.managers.FocusManager) has an error on line 728.
727: if (getFocusManagerFromObject(o) != this) 728: o == undefined;
Because 728 won’t actually result in any useful computation, It appears the line should read…
727: if (getFocusManagerFromObject(o) != this) 728: o = undefined;
However, the following lines (731 - 735) make this code redundant, as you can see… (with line 728 intact)
727: if (getFocusManagerFromObject(o) != this)
728: o == undefined;
729:
730: // trace("actual focus is " + o);
731: if (o == undefined)
732: {
733: o = form;
734: // trace("using form " + o);
735: }
Just another one of the wonderful wierdnesses in the MX library. Do I win a prize? (Ed: Have a peanut you monkey.)
Add comment November 9th, 2006


