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!