Your syntax looks correct, except maybe for using "this" instead of "sym".
var test = sym.play(0);
If that's what you get in the console, but loop is not working, it may be best to post a link to an example file where it fails.
I just did a simple animation on a new file and the code worked perfectly.
On the file im having trouble with all my elements are grouped inside separated symbols, and this is what i think is causing my issue.
My timeline looks like this (idk if its helpful, i'm aware the trigger is missing in this snapshot. Lets pretend its sitting at the end of the timeline)
If I erase the symbols and animate each element on the stage's timeline the code works. Am I missing something or doing something wrong?
If you are playing your symbols and they stop at the end of their timeline, you need to send them back to the beginning of their timeline when you go back to the beginning of the main timeline that contains them.
Also, do the symbols play the first time?
Yes, they play perfectly the first time. Could you give me an idea how to reset every timeline?
I feel it can be achieved on the same trigger but I'm not 100% sure.
I'll try something like this
I'll see what happens
I just placed a trigger on each symbol with this code
Idk if there is a quicker/easier/cleaner way to do it tho
Sorry I was busy this weekend. Glad it worked!
Don't apologize. I consider myself lucky for getting a response on the weekend. Thank you very much!