This focus issue is a tough one


gidday guys

 

this 1 has been bugging me day.

 

if select row in datagrid, click out of air desktop app program, desktop etc, click air app, error:

 

typeerror: error #1009: cannot access property or method of null object reference.

    @ fl.controls::textinput/setfocus()

    @ fl.managers::focusmanager/activatehandler()

 

i set following deselect row, error still occurs:

 

data_grid.addeventlistener(event.deactivate, deselectrow, false, 0, true);

           

private function deselectrow(event:event):void

{           

      data_grid.selectedindex = null;

}

 

anyone had happen before , know of fix?

 

cheers

normally non-selection list assigned -1, not null.  don't know if part of problem or not.



More discussions in ActionScript 3


adobe

Comments

Popular posts from this blog

Warning, the Safe Path is not accessible vm3 - Joomla! Forum - community, help and support

uppercase letters in url - Joomla! Forum - community, help and support

Joomla! Update is not offering Joomla 3 - Joomla! Forum - community, help and support