int controls = ControlButtons.CONTROL_PLAY | (useStopButton ? ControlButtons.CONTROL_STOP : 0) | (usePauseButton ? ControlButtons.CONTROL_PAUSE : 0);
int repetitions = main.intAttribute("repetitions");
myFolderParser = new FolderParser(new Dimension(myPage.getPreferredSize().width, (int) (myPage.getPreferredSize().height * 0.6)), 1, repetitions, controls);
if (!myFolderParser.setSource(myStimuliFolder))
throw new TestException(myStimuliFolder.getAbsolutePath() + " Cannot be used as the source folder.");
myFolderParser.setInnerStimuli(0);
visitedPages = new boolean[myFolderParser.getInnerStimuliCount()];
Arrays.fill(visitedPages, false);
m_visitedPageCount = 0;