"Save Points" can be achieved via checking the getCurrPage() function. Here the code I used that performs pageCheck and redirects to the "start" page. It can easily be modified to redirect to a "save point" instead.philo wrote: ... If you mean like save points....
Code: Select all
function pageCheck() {
// If the current page != lastPage, redirect to "start"
var vLastPage = scriptVars.get("vLastPage");
if (vLastPage != "" && vLastPage != "start") {
if (vLastPage == guideSettings.getCurrPage()) {
overRide.setAudio("", "","","","","","","");
overRide.setPage("start");
return false;
}
}
scriptVars.put("vLastPage", guideSettings.getCurrPage());
return true;
}
Code: Select all
<Page id="Intro.3">
<javascript>
<![CDATA[
function pageLoad() {
if (!pageCheck()) {return false};
}
]]>
</javascript>
<Text></Text>
<Image id="images/4.jpg" />
<Button target="Intro.4">A</Button>
</Page>