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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Cascades Development

Reply
Super Contributor
JeffLemon
Posts: 391
Registered: ‎01-13-2011
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
Please use plain text.
Developer
kylefowler
Posts: 479
Registered: ‎05-17-2009
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
Please use plain text.
Super Contributor
JeffLemon
Posts: 391
Registered: ‎01-13-2011
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
Please use plain text.
Super Contributor
JeffLemon
Posts: 391
Registered: ‎01-13-2011
My Carrier: NA

Re: Animation playing after a previous animation?

Bump

--------------------------------------------------------------------------------------------------
BlackBerry Apps: Instruments | ARTPAD | Piano | Drums | Xylophone
Please use plain text.