Flash Navigation
September 11, 2007 12:00 AM
Kind of like John's idea but it should be more generic so that it is re-useable for ANY course.So my suggestion would be to set a permanent Lectora variable (MyHomePage) for the course at the root of the course like this (Action Name>init Home Page, On> Show, Action> Modify Variable> MyHomePage,Value> VAR(MyHomePage) and then set the value for that variable when you enter the Home Page (whatever you want that to be - Menu or whatever) like this (Action Name>set Home Page, On> Show, Action> Modify Variable> MyHomePage,Value> javascript:document.location.The first action ensures that the variable will be available to all pages as long as it is inherited so that it's value can be queried by Flash and the page navigated to by getting the value of the variable (which stores the home page URL).In Flash you would want to change the actionscript slightly to : getURL("javascript:trivExitPage(VarMyHomePage.value,true)"); This way Flash looks to the HMTL source for tha value of the variable (which is your home page) and then passes that value to the Lectora action so that the host course navigates to the home page. The nice thing about this is that the target page (home page) can be changed whenever you want to change it by setting it's value in the host course...
Discussions have been disabled for this post