Ok here’s the problem…I have an mc (controlled by the arrow keys) and when it intersects this other movie clip (a doorknob in this case), I have the following script:
onClipEvent (enterFrame) {
if (this.hitTest(_root.character)) {
if (_root.key.found == true) {
_root.gotoAndStop(2);
} else {
_root.denied.nextFrame();
}
}
}
So that’s all great and wonderful…it works but here’s the problem…_root.denied is actually a msg box that pops up if you haven’t found the key and then there’s an OK button at the bottom of it which allows the user to close the msg box. Unless I move my character AWAY from the movie clip (doorknob) it just hittested with, as soon as I press ok my character is still touching the doorknob. So flash immediately reavaluates and the msg box _root.denied pops up again…so you pretty much can’t close it until you’ve completely moved the character out of the hittest area with the door knob. So what I want to know is how I can script it to only do it once and it will not pop up again at least until I have moved completely away and then back again. Basically just so it won’t keep popping up after I’ve pressed okay the first time and it’s still touching the door knob.
Thanks,
Fargate :thumb: