Oke,
I’ve made a prototype for my mc’s.
MovieClip.prototype.knoppen = function() {
this.onEnterFrame = function() {
this.symall.hitTest(_root._xmouse, _root._ymouse, true) ? this.nextFrame() : this.prevFrame();
};
};
using my mc’s in AS1 like this: sym01.knoppen(), sym02.knoppen() etc.
Working like a charm.
But I want a onRelease in my protoype. It should be like this
MovieClip.prototype.knoppen = function() {
this.onEnterFrame = function() {
this.symall.hitTest(_root._xmouse, _root._ymouse, true) ? this.nextFrame() : this.prevFrame();
};
this.onRelease = function() {
this.gotoAndStop(15);
};
};
Now my question. It keeps on “entering frame” so my gotoAndStop(15) won’t work. How can I prevent this from happening?