Hi good people on the Edge
Can any kind person help with writing a script snippet.
Both mysymbolname and mybtn are symbols that reside on the stage. The script required must target the timeline of mysymbolname and play from mylabelname when mybtn is clicked on. How can I then set a setTimeout function to play the timeline of mysymbolname from position mylabelname after someTimeT seconds?
In plainer English, the button when clicked will stop mysymbolname timeline and play will commence from mylabelname after some time has elapsed.
So far, I have tried without success:
sym.getSymbol(“mysymbolname”).stop();
setTimeout(function(){sym.getSymbol(“mysymbolname”).play(“mylabelname”)},someTimeT);
As an aside, mysymbolname timeline has triggers set to play the timeline after a defined time has passed using a setTimeout function.
Will the command
sym.getSymbol(“mysymbolname”).stop();
Override these setTimeout function triggers and bring mysymbolname timeline to a complete stop? So that the setTimeout function will not trigger play of the timeline? I think this will be necessary when targeting mysymbolname timeline when mybtn is clicked.
Any ideas most welcome.