recommend event for me

in my program
I display a Ball 20 times (1sec/times)

I want…
Balls are disappear in 2 sec after appear

help me. [import]uid: 42761 topic_id: 7936 reply_id: 307936[/import]

transition.to(ball, {time=2000, alpha=0}) [import]uid: 14018 topic_id: 7936 reply_id: 28221[/import]

[lua]function removeIt(obj)
print(“bye bye ball”)
obj:removeSelf()
end

transition.to(ball, {time=2000, alpha=0, onComplete=removeIt})[/lua] [import]uid: 6645 topic_id: 7936 reply_id: 28265[/import]

thank you for answer [import]uid: 42761 topic_id: 7936 reply_id: 28578[/import]