I seem to be having an issue with the transition onComplete functionality. Using the debugger it seems that the onComplete function is fired a soon as the transition starts? I get the print statement immediately when the code runs and not after the transition.
[lua]local function splashComplete()
Runtime:addEventListener(“enterFrame”, gameEnterFrameHandler)
callUnload = true
print(“splashComplete”)
end
function init( )
Runtime:removeEventListener(“enterFrame”, gameEnterFrameHandler)
transition.to(logo, {time=5000, alpha=1, onComplete=splashComplete()})
–transition.to(logo, {delay=2, time=250, alpha=0,onComplete = splashComplete()})
end[/lua] [import]uid: 6636 topic_id: 3192 reply_id: 303192[/import]
[import]uid: 6636 topic_id: 3192 reply_id: 9388[/import]