Page 1 of 1

how to avoid new OnMouseUp happen from old OnMouseUp?

Posted: Wed Jun 26, 2019 8:16 pm
by Bugala
I have here a situation where i click from main menu to credits.

Thing is, in this credit menu there is another button in same location, and when i click to go to credits, it also clicks the credits pages button.


More technically, situation is that there exists two simplebuttons with OnMouseUp option.

I click on Button 2, and first it deletes these 2 buttons, then it creates a credit page that creates 6 new Simplebuttons with OnMouseUp-option.

However, even I dont do anything else, it already thinks this one button was pressed.


I can naturally move this button elsewhere or figure some other fix for it, but what I would really like to know is how should I fix this the clean way.

Is there a command to force clear all event calls for example?

That When Button 2 is pressed, I would first delete those two buttons, then Force clear all event, and after that create new buttons.

Re: how to avoid new OnMouseUp happen from old OnMouseUp?

Posted: Fri Jun 28, 2019 6:53 am
by jPV
How about a short example code of the problem? :)

Re: how to avoid new OnMouseUp happen from old OnMouseUp?

Posted: Fri Jun 28, 2019 1:23 pm
by Bugala
took example code out and realised the problem. It wasnt actually complaining about button being pressed, but about creation of a button with non existing function :oops: