# Key input messes up ActionScript

**URL:** <https://forum.kirupa.com/t/key-input-messes-up-actionscript/130127>\
**Category:** Uncategorized\
**Created:** [December 1, 2004, 7:36pm UTC](https://forum.kirupa.com/t/key-input-messes-up-actionscript/130127 "2004-12-01T19:36:29Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![wutwjd](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/wutwjd/32/758_2.png) [@wutwjd](https://forum.kirupa.com/u/wutwjd)\
**Post date:** [December 1, 2004, 7:36pm UTC](https://forum.kirupa.com/t/key-input-messes-up-actionscript/130127/1 "2004-12-01T19:36:29Z")

</div>

Hello, all. I have a small problem that’s been driving me nuts, hopefully someone can answer it and deliver me from this insanity.

This question would perhaps be best asked by showing an example first:

```auto

var newMovie_mc;

back_mc.onPress = function() {
 newMovie_mc = attachMovie("Blob", "Blob1", _root.getNextHighestDepth());
 
 newMovie_mc.onEnterFrame = function() {
  newMovie_mc._x = _xmouse;
  newMovie_mc._y = _ymouse;
 }
}

back_mc.onRelease = function() {
 newMovie_mc.removeMovieClip();
}

back_mc.onReleaseOutside = function() {
 newMovie_mc.removeMovieClip();
}

```

When a user presses back\_mc, a “Blob” movieclip is created and, through its onEnterFrame event, the “Blob” is supposed to follow the mouse around.

This is all good and dandy. But when I press any key on the keyboard after having instantiated the “Blob”, the onPress event of the back\_mc seems to fire off again.

Why is it doing this? Is there some weird thing going on with Flash that I’m not aware of?
