If you want: (circ.isPlaying()) and (rect.isPlaying()) and (roundedRect.isPlaying())
then you write : (circ.isPlaying()) && (rect.isPlaying()) && (roundedRect.isPlaying())
O.k. thanks. But is there an answer to the question as to whether global variables will make a big difference in the speed of my website?
Well, i don't see your composition. setVariable() and getVariable() are available.
Using compositionReady, you write:
var Rec = sym.getComposition().getStage().getSymbol("Rec");
This var[iable] will available on (and only on) compositionReady ==> local variable.
sym.Rec = sym.getComposition().getStage().getSymbol("Rec"); ==> will be "global".
console.log(sym.Rec.isPlaying()); ==> will return false or true.
About speed: downloading speed? Running speed? Please give a link (post or private message).