Looks like this has been fixed in the 3.5 sdk, thanks engineers
if (_defaultButton)
_defaultButton.emphasized = true;
--- In [email protected], "djhatrick" <djhatr...@...> wrote:
>
> TypeError: Error #1009: Cannot access a property or method of a null object
> reference.
> at
> mx.managers::FocusManager/focusInHandler()[C:\autobuild\3.4.0\frameworks\projects\framework\src\mx\managers\FocusManager.as:601]
>
>
>
> There's nothing in the debugger but this error, happens a lot,
>
>
> // restore the default button to be the original one
> if (defButton && defButton != _defaultButton)
> {
> defButton.emphasized = false;
> defButton = _defaultButton;
> _defaultButton.emphasized = true;
> }
>