Win a copy of Java Challengers this week in the Java in General forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • paul wheaton
  • Devaka Cooray
  • Jeanne Boyarsky
  • Tim Cooke
  • Liutauras Vilda
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Piet Souris
  • salvin francis
  • Mikalai Zaikin
  • Himai Minh

Why isn't updateQuestion executing on changeAnimation(onAnimationEnd() )?

Joe McMillan
Posts: 22
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Note: cross-posted from stack overflow:
I'm creating an animation for my trivia game. Once the user selects an answer(either true or false) for each statement, the question will slide to the left and display the next question.

The functionality is working fine, however, I'm confused on one concept.

When I call changeTheQuestion(invokes animation) and updateQuestion(set's the new text of question and set's the new text of counter) like this:

...everything works fine. However, when I move the updateQuestion() call to onAnimationEnd() of changeTheQuestion(), it doesn't update the question:

What may be causing this? Thanks!
Once upon a time there were three bears. And they were visted by a golden haired tiny ad:
Thread Boost feature
    Bookmark Topic Watch Topic
  • New Topic