Bug 1289 : syntax error in Button Example code
Last modified: 2009-10-19 09:44




Status:
RESOLVED
Resolution:
INVALID -
Priority:
P2
Severity:
normal

 

Reporter:
Bernard
Assigned To:
REAS

Attachment Type Created Size Actions

Description:   Opened: 2009-07-12 08:05
page: http://processing.org/learning/topics/buttons.html

"over" in example should be "over()"



-------------------------------------------------------
CURRENTLY:

boolean pressed()
{
if(over) {
locked = true;
return true;
}
else {
locked = false;
return false;
}
}

-------------------------------------------------------
SHOULD BE:

boolean pressed()
{
if(over()) {
locked = true;
return true;
}
else {
locked = false;
return false;
}
}
Additional Comment #1 From Bernard 2009-07-12 08:22
Hey Casey, I'm wrong. This is not a bug. Please delete. :)