how to remove object after transition is done

thank you guys for trying to help me but I found out how to fix the code, I tried to use 'display.remove(obj) and it worked fine:

1-transition.to(object, {time = green.speed, y = -60, onComplete = function(obj) display.remove(obj) end})

this works fine,

I have another question, can I call to functions with ‘onComplete’ ?

Yup.

local function t ()      print("!") end   local n = display.newCircle(0,0,50)   transition.to(n,{x=400, onComplete = t}) -- bear in mind, to pass in parameters you'll need closures, google it.

Hi 

86lemonade68

sorry for the mistake, I meant can I call two functions with ‘onComplete’ ?