Problem:
Hi, I use an identical piece of JS-code with two different arrays. The code chooses one out of 5 possible object names and then places the object with that name on the canvas. This works fine with prez.A but not with prez.B, of which no objects are placed. I made sure that the object names and the strings in the respective array are identical for A- and B.objects. To create the five B-objects in AP I copied the five A-objects and renamed them. Is that maybe a problem?
Best, Rolf
prez.A = ["2Aa", "3Ab", "1Ac", "1Ad", "1Ae"];
prez.B = ["2Ba", "3Bb", "3Bc", "2Bd", "1Be"];
var indexA = Math.floor(Math.random()*5);
prez.object(prez.A[indexA]).left(98).top(109);
var indexB = Math.floor(Math.random()*5);
prez.object(prez.B[indexB]).left(98).top(409);
ActivePresenter Version: 8
OS: Win10
Notes: