Quantcast
Channel: Adobe Community : All Content - Edge Animate
Viewing all articles
Browse latest Browse all 9897

Next button in symbol, start animation from the timeline and after 3 sec playReverse

$
0
0

Hello,

 

I have a next button in a symbol. When I click on the button I would like to start the animation from the timeline.

It wil starts at one second. But if the timeline is after 3 seconds I would like to play the animation backwards (if you click on the same button).

I tried it with the code below but it starts always at 1 second.

 

 

var pos = sym.getPosition() //

 

if (pos <= '1000'){

         sym.getComposition().getStage().play(1001);

}

 

else if (pos <= '3000'){

          sym.getComposition().getStage().playReverse(2999);

}

 

Can anybody help me with the code?

 

Thanks!


Viewing all articles
Browse latest Browse all 9897

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>