How to Make an Image Disappear When Touched

I want to create a Start Up screen with the text “press start” flashing, but thats not what i need help with.

I want to simply make the image disappear when i tap on it.
here is the image code:

local start = display.newImage("start.png")

Thanks! [import]uid: 25129 topic_id: 5692 reply_id: 305692[/import]

A simple way:

[code]local function disapear ( event )
transition.to(start, {time = 1000, alpha = 0} )
end

image:addEventListener(“touch”, start)[/code]

Consider the reading of this topics of docs:

http://developer.anscamobile.com/content/application-programming-guide-event-handling

You may also remove the object instance:

http://developer.anscamobile.com/reference/index/objectremoveself [import]uid: 25931 topic_id: 5692 reply_id: 19495[/import]

Pretty cool, but The Image is still taking up some memory or space right can you just take it away like make it not invisible but not actualy there? [import]uid: 23689 topic_id: 5692 reply_id: 39543[/import]

local start = display.newImage('start.png')  
  
function start:tap()  
self:removeSelf()  
self = nil  
end  
  
start:addEventListener('tap', start )   
  

[import]uid: 24641 topic_id: 5692 reply_id: 39576[/import]

If you like the fade effect given by fabioperez, here’s a modification (that will release the object from memory):

[blockcode]
local start = display.newImage(‘start.png’)

function start:touch( event )
local removeObj = function()
display.remove( self )
self = nil
end
transition.to( self, {time = 1000, alpha = 0, onComplete=removeObj } )
end

start:addEventListener(“touch”, start )
[/blockcode] [import]uid: 52430 topic_id: 5692 reply_id: 39590[/import]