2 Replies Latest reply on Jun 10, 2012 9:57 PM by sarafarpit

    setFocus component

    sarafarpit

      ivaPop is an mxml component how to bring focus to its text input from index.mxml

       

       

      Function called in index.mxml

       

      protected function ivaPopbutton_clickHandler_flow():void

      {

      ivaPop=new ivaPopup();

      ivaPop.addEventListener(Event.CLOSE, closeHandlerivaPopup);

      PopUpManager.addPopUp(ivaPop, this, true)

      PopUpManager.bringToFront(ivaPop);

      ivaPop.setInitialFocus(username.text,ivatext.text,os1.text);

      }