Calling a function on a delay

Hi Folks,

I have the following 2 functions, i am calling bubbleClockOn on an touch event, which works fine. I want to call the function bubbleClockOff after 5 sec after the completion of the transition. How do i do that? Currently it is being called immediately

[code]
local function bubbleClockOn()
print (“bubbleClockOn”)
clockBubbleGroup.isVisible = true
transition.from(clockBubbleGroup, {time = 2200, x = 200, y = 100,transition = easingx.easeOutElastic, onComplete=bubbleClockOff()})

end

function bubbleClockOff()
print (“ended bubbleClockOff”)
transition.from(clockBubbleGroup, {time = 1200, alpha = 0})
clockBubbleGroup.isVisible = false
end

[/code] [import]uid: 120979 topic_id: 21418 reply_id: 321418[/import]

try this

[code]
transition.from(clockBubbleGroup, {time = 2200, x = 200, y = 100,transition = easingx.easeOutElastic, onComplete=function() timer.performWithDelay( 5000, bubbleClockOff ) end })
        [import]uid: 7911 topic_id: 21418 reply_id: 84797[/import]