Titanium Community Questions & Answer Archive

We felt that 6+ years of knowledge should not die so this is the Titanium Community Questions & Answer Archive

Firing an Event at the End of a Transition

If I close a window with a transition effect, such as:

win.close({
  transition: Ti.UI.iPhone.AnimationStyle.FLIP_FROM_LEFT
});

Is there a way to trigger an event when this transition is complete? If I attach it to 'close' it fires immediately when close() is called.

— asked December 2nd 2010 by John Williams
  • events
  • transitions
0 Comments

2 Answers

  • can you trigger the other event based on the 'open' or 'focus' of the window that will be visible when this one is closed?

    — answered December 2nd 2010 by Aaron Saunders
    permalink
    0 Comments
  • Not sure you can, but you could add a timeout with 500ms as I think the animation lasts.

    — answered December 2nd 2010 by Dan Tamas
    permalink
    0 Comments
The ownership of individual contributions to this community generated content is retained by the authors of their contributions.
All trademarks remain the property of the respective owner.