Loading text from an external source
December 12, 2007 12:00 AM
Lectora's not really very good for what you want to do. You could force it in to performing how you require, provided that you publish to HTML and write some custom javascript to do the substitutions for you. The problem with this solution is that you would probably be better off not using Lectora, but just hand coding a solution in pure HTML.A more sensible alternative would be to embed a flash component in a page and have an external XML file and handle all of the branching and text replacement in Flash. You can modify a Lectora variable from Flash if you need to communicate the outcome of the navigation back to Lectora for feedback by using getURL("javascript: VarvariableName.set(new value)")(see post) and/or navigate away from the page to some feedback by using getURL(“javascript:trivPrevPage()”); (see other post)Another good idea for a branching scenario is to implement it in Captivate and then embed the Flash output. Captivate is pretty good at branching simulations and is well designed for implementing this sort of thing, but again it doesn't like reading from external text files.BTW, doing this in Lectora does sound like the idea of a slightly deranged person, but I hope this helps.
Discussions have been disabled for this post