Skip to main content
Inspiring
March 17, 2009
Question

Deleting a function

  • March 17, 2009
  • 2 replies
  • 294 views
Is there a way to stop a function working ie;

mc_mc.onRelease = function() {
stop other functions on the same time lime
}
? I'm sure there is... its Flash there must be, I just dont know and have never had use for this before. Any help would be great.
Cheers
Martin

This topic has been closed for replies.

2 replies

Ned Murphy
Legend
March 18, 2009
You're welcome
Ned Murphy
Legend
March 17, 2009
My usual approach to this is to use a boolean variable as a conditional within a function. The button would set that variable to false.

var allowProcessing = true;

mc_mc.onRelease = function() {
allowProcessing = false;
}

function whatever(){
if(allowProcessing){
// process
}
}
Inspiring
March 17, 2009
aah of course ! Thanks Ned your a star !!!

Martin