1 Reply Latest reply on Mar 8, 2008 10:00 PM by Zealouse

    onKillFocus

    Zealouse Level 1
      Thought I'd ask here:
      Any work arounds that any one knows about

      I have a text feild that if the user clicks out side of it will killfocus...I also need to do this same thing with a combo box...
      I thought of using a mouse even but the user has the option to enter in there own data or select it from the combo box so this would be multiple mouse hits...thanks

      mdiline.onSetFocus = function(oldFocus) {
      trace("in");
      my_cb.open();

      };

      mdiline.onKillFocus = function(oldFocus) {
      trace("out");
      Selection.setFocus("someother text");
      };


      ERRORS:
      in
      256 levels of recursion were exceeded in one action list.
      This is probably an infinite loop.
      Further execution of actions has been disabled in this movie.
        • 1. Re: onKillFocus
          Zealouse Level 1
          Can any one tell me how to killfocus with script that works?
          I've tryed about everything I can think of using script and everytime I shift focus it bombs out the player...
          error:
          256 levels of recursion were exceeded in one action list.
          This is probably an infinite loop.
          Further execution of actions has been disabled in this movie.

          So no matter how I script a redirect select focus it bombs out.

          mytext.onKillFocus = function(oldFocus) {
          trace("out");
          Selection.setFocus("someother text");
          };

          Sometimes you've just got to kill focus without removing the acual object or using the mouse....how do you do that?