Hi,
I been having huge problems about transitions because apparently I can’t seem to cancel onComplete event on transitions. For example, in the ode:
local function whatever ( obj )
end
local trans = transition.to( something, { alpha = 0.0, time = 1000, onComplete = whatever } )
transition.cancel( trans )
function whatever will be called after 1 second even though the transition has been cancelled.
same thing apparently is happening with timers, for example:
local t = timer.performWithDelay( 1000, whatever )
timer.cancel ( t )
this will not prevent the timer to call the function whatever after 1 second.
since trans variable in above example is a table, i even tried to manually delete trans._onComplete and it doesn’t work (ie. the function will still be called after the transition time has expired).
is there any way to prevent the onComplete events from happening ?
thanks
n [import]uid: 48785 topic_id: 9914 reply_id: 309914[/import]