3 Replies Latest reply on Oct 16, 2008 12:54 PM by kglad

    input text field setfocus doesn't show the blinking cursor

    sonum_us
      Pl help me....

      I want automatically get focus on the textfield when the flash movie first loads.

      The following code used for selection of text as well as automatically get focus on the textfield. But second option is not working.


      Selection.setFocus("_root.txtVal");
      Selection.setSelection(0,0)

      this.onMouseUp = function(){

      var beginIndex:Number = Selection.getBeginIndex();
      var endIndex = Selection.getEndIndex()
      var aa=_root.txtVal.text;
      txtVal=eval(Selection.getFocus()).text.slice(beginIndex,endIndex)
      if(txtVal==aa)
      {

      gotoAndPlay("v1")
      delete this.onMouseUp;
      }
      }

      Thankx
      Sonum