January 27th, 2013, 11:51 AM
|
#1 (permalink)
|
|
Junior Member
Thread Author (OP)
Join Date: Jan 2013
Posts: 25
Device(s):
Carrier: Not Provided
Thanks: 1
Thanked 0 Times in 0 Posts
|
in touchevents how do i shortin this up a bit
hey i need to make this 21 times in my touchevent.
my question is how/or whats the best way to replace the 0,32,416,480,
with 21 sets of numbers?
thanks
if (event.x >= 0 && event.x <= 32 &&
event.y >= 416 && event.y <= 480) {
if (markercancel==true){
setmarker=false;
markercancel=false;
}else{
markercancel=true;
markerset=1;
setmarker=true;
}
}
|
|
|