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:
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?