How do I Capture and Event Only Once, and then Stop From Re-Occurring

How do I Capture and Event Only Once, and then Stop From Re-Occurring

Hey Everyone, I'm trying to figure out how to do the following:


capture a mousemove event  over a div once (which triggers a function), and then once it has occurred  prevent that event from occurring again.


is it possible to do this? the code so far is simple:



$().ready(function() {

$('#theDiv').mouseover(function() {

  myFunction();

  });

})


much Thanks in Advance!