Hello all!
I've got a symbol that I want to loop 3 times on the main stage.
I think I've figured some of this out but don't know how to write the code (I'm working on learning!), or if there is a better way :-)
I was thinking of putting somethiing similar to the code below in the "onComplete" action of the symbol I want to loop (I know the code is wrong but I think it is a bit close):
var l_count = (0+1);
if (l_count <= 3) {
sym.play();
sym.setVariable("l_count", $l_count + 1)
} else {
sym.stop();
}
Is this close, or is there a better way to go about this?
thanks for your help!
James