Is there a bug in transit.to with using an onComplete listener?

Is there a bug in transit.to() with an onComplete listener?

because onTransitionComplete() is never being called.

local function onTransitionComplete(event)
print( “onTransitionComplete” )
end
transition.to( playfieldScreenGroup, {time=500, x=320, onComplete=onTransitionComplete} )
[import]uid: 295 topic_id: 1525 reply_id: 301525[/import]

Try this. I see the message in the Terminal and the circle move across the screen.

[code]
local playfieldScreenGroup = display.newGroup()

local c= display.newCircle(100, 100, 50)
c:setFillColor(255, 255, 0)

playfieldScreenGroup:insert©

local function onTransitionComplete(event)
print( “onTransitionComplete” )
end

transition.to( playfieldScreenGroup, {time=500, x=320, onComplete=onTransitionComplete} )
[/code] [import]uid: 7559 topic_id: 1525 reply_id: 4292[/import]

Thanks and I’m very sorry for wasting your time. Actually my code example above works as is alone but not when it was in my program because I WAS DOING SOMETHING INCREDIBLY STUPID! – FOR HOURS!

I had it in a similar BUT different function than I the one I was testing. It took a good night’s sleep and a fresh mind to spot MY STUPID MISTAKE almost instantly.

I’m very sorry. [import]uid: 295 topic_id: 1525 reply_id: 4306[/import]

No problem and I’m glad you got it working. Sometimes these little code snippets help others learn how to use Lua and the SDK. [import]uid: 7559 topic_id: 1525 reply_id: 4309[/import]

I want to say that I am one of those people that found this snippet helpful. It solved an issue I was going to have to face but hadn’t gotten to yet. Thanks! [import]uid: 6397 topic_id: 1525 reply_id: 4439[/import]