Adobe Air: scroller throws error when changes focus between different applications

前端 未结 4 1536
梦毁少年i
梦毁少年i 2021-01-21 06:04
TypeError: Error #1009: Cannot access a property or method of a null object reference.
    at spark.components::Scroller/focusInHandler()[E:\\dev\\4.y\\frameworks\\proje         


        
4条回答
  •  不知归路
    2021-01-21 06:59

    I was having this issue, and it turns out that it was caused by some buttons I had as item renderers in my grid. These buttons would change the view to a different section, and apparently keep focus after pressed, causing all sorts of trouble. I set them to focusEnabled=false, and it solved the problem.

提交回复
热议问题