Code: Select all
on arrowKey the key
case "left"
...
exit switch
case "right"
...
exit switch
end arrowKey
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller
Code: Select all
on arrowKey the key
case "left"
...
exit switch
case "right"
...
exit switch
end arrowKey
Code: Select all
on arrowKey the_key
## No space in parameter names!
switch the_key
case "left"
...
BREAK
## Keep correct "switch" syntax, remember Murphys law ;-)
case "right"
...
BREAK
end switch
end arrowKey