This content has been marked as final.
Show 2 replies
-
1. Re: Change animation duration using code
Aubrey Scarza Sep 2, 2014 3:30 AM (in response to NYG-vibeke)TimJaramillo helped with something like this before Re: Playback Speed of a Symbol
or if that doesn't make sense there's more of a sellotape fix on this thread Re: Is there a way to set playback speed?
-
2. Re: Change animation duration using code
joel_pau Sep 2, 2014 6:58 AM (in response to NYG-vibeke)Hi,
You can also create dynamically triggers. Dynamically means create triggers using code as you can create dynamically symbols.
Here is a case (pictures below).
var newTrigger = sym.getLabelPosition("limite");
Symbol.bindTriggerAction(compId, symbolName, "Default Timeline", newTrigger, function(sym, e) {
sym.$("Text").css("color", "blue");
sym.playReverse();
});
Here is the timeline:
So, when "limite" is reached the text color change to blue and the composition play reverse.





