Titanium Community Questions & Answer Archive

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

Animation of Buttons

I want to click a button image, and have it animate and play a sound. For example, click on a button…it plays some quick "fire" around the button with some sound and then the event (transition occurs). I've got the sound part down (although there is a delay on the first occurrence), but not sure about the animation.

Does anyone have a "best practice" for something like this?

Thanks

— asked July 31st 2010 by Mark Smillie
  • animation
  • button
  • iphone
0 Comments

1 Answer

  • Did you check the animation examples in Kitchen Sink?

    Basically, you can use any view's animate method or use the Titanium.UI.Animation objects for more advanced animations and sequences. They also fire an event for when the animation completes, so you can chain or reverse animations etc.

    — answered August 1st 2010 by Goran Skledar
    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.