Hello ,sorry my english ,…
When finish the transaction.to I need remove the object MyBox[x], but I have error into function Borrar with event.target.removeSelf(), but if use the event.target:removeSelf() into the function Calavera its OK, but I not see the transition, thanks
[code]
function Borrar (event)
event.target:removeSelf() ERROR-----
end
function Calavera (event)
transition.to( event.target, {time=2500, delay=50 , xScale=40,yScale=40 , onComplete=Borrar } )
–event.target:removeSelf()
end
for nTable=1, 10, 1 do
MyBox[nTable] = display.newImage(“images/Myimage.png”)
MyBox[nTable]:addEventListener(“touch”, Calavera)
end
[/code] [import]uid: 79875 topic_id: 31064 reply_id: 331064[/import]
