wait until after a transition?

I have a simple transition that scrolls up some text from the bottom of the screen. I’d like to wait until the transition has completed to show a button.

My code to actually do the transition and show the button looks like this:

transition.to(done, { time=500, y=160 } )
myScreen:insert(done)
button_myButton.isVisible = true
myScreen:insert(button_myButton)

How do I wait the .5 second before showing the button?

(I guess I could do it with a timer, but isn’t there a more efficient way?)

Thanks,

Sean.
[import]uid: 4993 topic_id: 568 reply_id: 300568[/import]

Never mind. I found the onComplete param.

Sean. [import]uid: 4993 topic_id: 568 reply_id: 1110[/import]