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
Super Contributor
Posts: 440
Registered: ‎01-13-2011
My Device: Playbook
My Carrier: NA

Animation playing after a previous animation?

I need an animation to play, and when it's finished I need another animation to play straight after.

 

I read about seqential animation in the docs, but it errors

 

SequentialAnimation::create(snareShadow).add(TranslateTransition::create().fromX(0).toX(100)).add(FadeTransition::create().from(1.0f).to(0.0f)).autoDelete().play();

 How can I do this?

--------------------------------------------------------------------------------------------------
BlackBerry Apps: Instruments | ARTPAD | Piano | Drums | Xylophone
Developer
Posts: 526
Registered: ‎05-17-2009
My Device: 9900
My Carrier: ATT

Re: Animation playing after a previous animation?

What is the error? I know SequentialAnimations work, since I've used them in the past but maybe something got broken or is just wrong here.
Like all of my posts
Super Contributor
Posts: 440
Registered: ‎01-13-2011
My Device: Playbook
My Carrier: NA

Re: Animation playing after a previous animation?

It doesnt build:

 

error: 'class bb::cascades::smileyfrustrated:equentialAnimation::Builder' has no member named 'autoDelete'

 

error: 'class bb::cascades::smileyfrustrated:equentialAnimation::Builder' has no member named 'play'

--------------------------------------------------------------------------------------------------
BlackBerry Apps: Instruments | ARTPAD | Piano | Drums | Xylophone
Super Contributor
Posts: 440
Registered: ‎01-13-2011
My Device: Playbook
My Carrier: NA

Re: Animation playing after a previous animation?

Bump

--------------------------------------------------------------------------------------------------
BlackBerry Apps: Instruments | ARTPAD | Piano | Drums | Xylophone