3 Replies Latest reply on Oct 14, 2008 8:11 AM by Devendran

    Cann't see cursor blinking

    Ganesh_Rocking_the_Stage
      function run (event:Event) {
      my_txt.stage.focus=my_txt;
      }



      my_txt.addEventListener(Event.ENTER_FRAME,run)

      Cann't see cursor blinking
        • 1. Re: Cann't see cursor blinking
          Devendran Level 1
          In Authoring Environment Some time it will happen.
          Check your SWF in either Browser or using the StandAlone Player

          But You need little correction for better performance.

          EnterFrame will be called multiple times. So once your Work is done remove the unwanted function call.
          i have modified the code little.


          • 2. Re: Cann't see cursor blinking
            Rothrock Level 5
            Hey. Ganesh. You keep publishing the same question over and over and over. And you keep getting the same answers. Why don't you try some of them!

            ONE LAST TIME!

            If the swf doesn't have the focus you won't see the blinking cursor it is that simple. If the swf does have the focus you will see the cursor. There is no other answer!

            The code Devendran has given you is functionally the same as:

            stage.focus=my_txt;

            There is no need to add an enter frame event handler and then delete it after one frame.
            • 3. Re: Cann't see cursor blinking
              Devendran Level 1
              Yes Rothrock you are correct.
              I don't know what he is doing with that EnterFrame, So i just kept it as it is.