FAQ
Cover
\
Build
\
Source
\
Bugs
\
Reference
\
Libraries
\
Tools
The bugs database has moved
here
.
Bug 1289 : syntax error in Button Example code
Last modified: 2009-10-19 09:44
P
roject:
processing
trash
Version:
unspecified
Co
m
ponent:
android
book
core
libraries
pde
reference
tools
web
Status:
RESOLVED
Resolution:
INVALID -
Pr
i
ority:
P2
Severity:
normal
Platform
All
O
S:
All
Windows
Mac OS
Linux
Other
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. :)