fireEvent not catched in time

You must Login before you can answer or comment on any questions.

Hi, I have a problem with fireEvent. I have to display a progress bar that is animated by events that are called in a loop. Note that the loop that call fireEvent is in a different JS file, not on a same windows. The problem is that the first 2 or 3 events are catched (and the progress bar move), then the event are catched only when the loop is done, not usefull. How to avoid this ?

Regards

1 Answer

I think the Animation is blocked by the Loop, try Ti.API.info(progress); within your Animation Event to see if the Event is called properly.

— answered 12 months ago by Alexander Bauer
answer permalink
2 Comments
  • in fact I have tested it like this but showing a counter instead. and as I said, only a few events are received during the loop, all others are received adter the loop. It's like async events...

    — commented 12 months ago by Armindo Da Silva

  • Try calling the callback directly, I think it would be better if you Share Code.

    — commented 12 months ago by Alexander Bauer

Your Answer

Think you can help? Login to answer this question!