Hi,
I didn’t use pool and place all my slides in the main presentation and used a random list of numbers to move from one to another.
On my first slide - on load - I have this script
var slideNumbers = [3,4,5,6,7,8,9];
var obj = prez.object(“Scenarios”);
var draw = 0;
var num = 0;
for (i = 0; i < 4; i++)
{
draw = getRandomInt(0,slideNumbers.length-1)
num = i + 1;
prez.variable(“slide”+num,slideNumbers[draw]);
//window.alert(prez.variable(“slide”+num))
slideNumbers.splice(draw,1)
//window.alert(slideNumbers)
}
if (obj)
{
obj.text("SlideIDs: " + prez.variable(“slide1”)+ ", " + prez.variable(“slide2”)+ ", " + prez.variable(“slide3”)+ ", " + prez.variable(“slide4”));
}
function getRandomInt(min, max) {
min = Math.ceil(min);
max = Math.floor(max);
return Math.floor(Math.random() * (max - min + 1)) + min;
}
Then on my start button I have
prez.showSlideAt(prez.variable(“slide1”),0)
Then on my continue button on each slide
I have prez.showSlideAt(prez.variable(“slide”+prez.variable(“slideViewCount”))
and I add one to the variable slideviewcount before this
Then once I have viewed enough - the button goes to the last slide.
Hope this helps,
You can see it in action here:
All the best,