Global variables in JS

Problem: Hi, Is it possible to have global variables that are used by multiple JS-codes activated by different events? I want to use the same array over multiple slides. Seems like the non-JS-part of AP does not support arrays. Thanks

ActivePresenter Version: 8

OS: Win10


Hi Rolf,

You can assign it as a proprty of prez object. For example:

\\ in a event
prez.myVar = [1, 2, 3];

\\ in another event


Thanks, Toan, that helped a lot.

Best, Rolf