removing mouseListener on pageflip
I have searched high and low for a sloution to this problem:
I have attempted to insert the code for removing the mouseListener, on unloding the pageflip, in order to load it again...to no avail.
Basically, I have 6 buttons on my main movie, one of which loads the pageflip. The others unload the pageflip, while loading other swf's.
The code that worked (i'm loading through levels), but disabled one of the "unload" buttons entirely after clicking on it once was:
Code:
btn_5.onRelease = function() {
unloadMovieNum(6);
Mouse.removeListener(_level6.mousecontroll);
delete this.onRelease;
};
The code that did nothing was:
Code:
function removeML() {
_level6.Mouse.removeListener(level6.mousecontroll);
}
Does anyone know what I'm doing wrong?
I appreciate any response.
Thank you.
bluej2