9 Replies Latest reply on Dec 23, 2008 10:59 AM by kglad

    on focus and getCode() == ENTER

    hoppe11
      How can I trigger a function if my text field 'txt' is on focus and I press ENTER?

      var mc = _root.createEmptyMovieClip('mc', _root.getNextHighestDepth());
      var txt = mc.createTextField(instance, mc.getNextHighestDepth(), x, y, width, height);
      txt.type = 'input';