Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Native Development

Reply
Highlighted
Developer
Posts: 112
Registered: ‎10-10-2010
My Device: Torch
My Carrier: Verizon

How to stop animation?

I'm using translateTransition on an image and the animation works pretty good but I'm trying to stop the animation with a button press with no luck.

 

Shouldn't it be mainAnimation.stop() ;

opposite of mainAnimation.play():  to start it.

 

I checked here...

http://developer.blackberry.com/native/reference/cascades/bb__cascades__translatetransition.html?f=t...

 

but I can't seem to find how to stop it.

 

 

______________________________________________
Android dev jumping ship to BB. Cascade newbie. Any help would be great. Miss the Visual Basic days.

Updated my pin
Developer
Posts: 16,992
Registered: ‎07-29-2008
My Device: Z10 LE, Z30, Passport
My Carrier: O2 Germany

Re: How to stop animation?

stop should work.
https://developer.blackberry.com/native/reference/cascades/bb__cascades__translatetransition.html?f=...
----------------------------------------------------------
feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
@SimonHain on twitter
Developer
Posts: 6,152
Registered: ‎07-05-2012
My Device: Playbook, Dev Alpha C, Z10 LE, Z30
My Carrier: Orange

Re: How to stop animation?

Posting your code could help.

 

Stop doesn't work if you are not specifying the root animation, or perhaps you are inadvertantly starting the animation again when you click the button, does it appear to jump?


If you've been helped click on Like Button, if you've been saved buy the app. Smiley Happy

Developer of stokLocker, Sympatico and Super Sentences.