PDA

View Full Version : Exception when tabbing


hoken30
09-20-2009, 11:33 PM
Hi, running into an issue where I get the following exception when trying to tab between two fields, I'm only using two states. Let me know if you need me to post the source code or anything:

TypeError: Error #1009: Cannot access a property or method of a null object reference.
at mx.core::Window/get visible()[E:\dev\3.0.x\frameworks\projects\airframework\src\ mx\core\Window.as:898]
at mx.managers::FocusManager/isEnabledAndVisible()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\ managers\FocusManager.as:610]
at mx.managers::FocusManager/isValidFocusCandidate()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\ managers\FocusManager.as:845]
at mx.managers::FocusManager/getIndexOfNextObject()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\ managers\FocusManager.as:911]
at mx.managers::FocusManager/getNextFocusManagerComponent()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\ managers\FocusManager.as:1008]
at mx.managers::FocusManager/setFocusToNextObject()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\ managers\FocusManager.as:954]
at mx.managers::FocusManager/keyFocusChangeHandler()[E:\dev\3.0.x\frameworks\projects\framework\src\mx\ managers\FocusManager.as:1266]

Appreciate any help.

wvxvw
09-21-2009, 12:38 AM
I think you should file this bug here:
http://bugs.adobe.com/jira/secure/Dashboard.jspa
If you're not registered, you'll have to register. And hope this will get fixed soon. (Or maybe this issue was already fixed, in which case you'll need to upgrade to the version, where it was fixed).

Alianncox
01-08-2011, 12:48 PM
Hi!, I know I'm very late with the answer. But I had the same problem. There isn't much to find on the net about this problem.
But this is what I found:

If the textfields are in a form of group, you have to set it focusable:
focusEnabled="true"