the eventListener you have asigned to the joy display objects listen to a function called abortTouch and not the function called toggleJoy() so there will not happen mouch conciddering this piece of code.
I must also say that the expression --joy.isVisible = not(joy.isVisible) is something I have never seen before, do you mean:
–joy.isVisible = false ? isVisible is a boolean expression while alpha is a grade of opacity
I know that these lines is commented out but just felt like clearing out this
If you have a display obj like you have here you make either a table or a function-listener on the object and make it listen for an event like touch or tap and then attach it to a function. If joy should fire the toggleJoy() function you should do like this:
[lua]
local joy = display.newImageRect(“logo1.png”, 250, 250)
joy.x = display.contentCenterX
joy.y = display.contentCenterY
local function toggleJoy(e)
if e.phase == “began” then
if joy.alpha == 1 then
joy.alpha = joy.alpha - 0.5
elseif joy.alpha < 1 then
joy.alpha = 1
return true
end
end
end
joy:addEventListener(“touch”, toggleJoy)
[/lua]
This shows how to use .alpha but if you like to use the bool isVisible you can do this instead:
(I use two displayObjects that works as a switch for eachother)
[lua]
local joy = display.newImageRect(“logo1.png”, 250, 250)
local joy2 = display.newImageRect(“logo2.png”, 250, 250)
joy.x = display.contentCenterX
joy.y = display.contentCenterY * 0.5
joy2.x = display.contentCenterX
joy2.y = display.contentCenterY * 1.5
joy.isVisible = true
joy2.isVisible = false
local function toggleJoy(e)
if e.phase == “began” then
if joy.isVisible == true then
joy.isVisible = false
joy2.isVisible = true
elseif joy.isVisible == false then
joy.isVisible = true
joy2.isVisible = false
return true
end
end
end
joy:addEventListener(“touch”, toggleJoy)
joy2:addEventListener(“touch”, toggleJoy)
[/lua]
If you like you can download the code here:
www.hideawayspa.no/hendrix/kurs/buttons.zip
Hope this helps you out
NB!
Keep in mind that in real life I would do the if conditions more robust this is just to point out a way to do it very stripped down 
