Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 92406

Next button in symbol, start animation from the timeline

$
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.

I have a code that works when the button is not in a symbol.

 

var pos = sym.getPosition()

 

if (pos <= '1000'){

          sym.play(1001);         

}

 

else if (pos <= '2000'){

          sym.play(2001);

 

I've tried different things but I can't get it to work. Like this:

var pos = sym.getPosition()

 

if (pos <= '1000'){

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

}

 

Can anybody help me with the code?

 

Thanks!


Viewing all articles
Browse latest Browse all 92406

Trending Articles



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