Problem with transitions being cancelled - how to track?

Hi everyone,

Right now i have a problem of a transition being cancelled. I am not sure why exactly.

There is a lot of thing in my code so i will describe the general worfklow.

The workflow is as follow:

 - home scene

     => initialisation of ads (net request)

 - play scene

     => request ads display

     => initialisation of some data loaded from files stored in document directory

 The transition of animation is being run at the same time and sometimes it’s done completely sometimes not.

Does someone has XP about what could technically make a transition to be cancelled ?

I know it cancels because my callback on onCancel is being called.

Thanks for reading.

I’ve always found that the transition.cancel functions can be a bit problematic, but it would also help if you provided a bit of your coding and showed us exactly how you are implementing the transition function and trying to cancel it.

However, just to let you know, when I did get problems with the transition function I was doing soething like: 

transition.to(thisObject, {x = 200, y = 200, time = 100})

And then when I tried to cancel it the cancel did not work. But one thing that fixed this was putting the transition into a variable, like this : 

objectTransition = transition.to(thisObject, {x = 200, y = 200, time = 100})

And then when I called the cancel function, I called : 

transition.cancel(objectTransition)

This just seemed to work for me for some reason.

I’ve always found that the transition.cancel functions can be a bit problematic, but it would also help if you provided a bit of your coding and showed us exactly how you are implementing the transition function and trying to cancel it.

However, just to let you know, when I did get problems with the transition function I was doing soething like: 

transition.to(thisObject, {x = 200, y = 200, time = 100})

And then when I tried to cancel it the cancel did not work. But one thing that fixed this was putting the transition into a variable, like this : 

objectTransition = transition.to(thisObject, {x = 200, y = 200, time = 100})

And then when I called the cancel function, I called : 

transition.cancel(objectTransition)

This just seemed to work for me for some reason.