3 Replies Latest reply on May 16, 2011 1:34 PM by Flex harUI

    Setting focus on TextInput in Mobile app throws StyleableTextField exception

    TucsonJava Level 1

      I have a small mobile application (flex 4.5) in which I want to set a TextInput field to have focus when the View is finished being created. So in the creationComplete handler I just call setFocus on the TextInput field. However, this throws a null object exception in the StyleableTextField setFocus method. It appears the stage field is null. Has anyone else ran into this? Or, it there some special conditions that must be met before this can occur without an error?