Thank you for visiting the BlackBerry Support Community Forums.
BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)
BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.
"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."
- Kevin Michaluk, Founder, CrackBerry.com
Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.
09-22-2012 02:35 PM
I have a button when clicked (onClicked) invokes the play() function for an animation. This worked perfectly except only once. When I click on the button a second time or more nothing happens. Button visibly appears to receive focus ok (although I guess with a touch screen you don't really need to set focus).
I cannot find any documentation that says OnClicked only works once or once an animation has stopped it can not be played again.
What am I missing - either in my code or in my understanding?
09-22-2012 03:06 PM
I'm thinking that once a transition has occurred you cannot redo that transition unil you return to the original state. However, I have no idea how to do that.
In my case, I just happen to be back where I started from but cascades doesn't know that!
I added a reverse transition to get me back to my orignal state (which is where I was anyways).
Now, as far as I can tell it does both transitions forward and back. Ignores the first click. Then, does the transitions back and forward. It happens so fast I am not really sure that it does them in reverse. But its so funny I can't stop laughing. I will change some properties to slow down the transition.
Meanwhile, how do I restore the original state. Reload the image? Save some properties and restore them?
09-22-2012 06:50 PM
I found a removeAnimation or removeAllAnimations that seems to work. I added a second button to do the reset and as soon as I did that the first button worked as expected(?) without doing the remove animations.