Action Based on Variable State Change?
March 4, 2008 12:00 AM
Hello everyone,This is actually a continuation of my work from yesterday, but I wanted to post it under a different subject as it's quite a different solution I'm searching for now.I'm wondering if it is possible to create an action in Lectora that executes when a variable is changed.I have a series of Flash movies that are software tutorials meant to be used inside of a Lectora GUI and "wrapper". There is a text field in Lectora that can be toggled on and off. Because the text field shows the narration script, different blocks of text must be displayed at different times. We need the text to stay in Lectora so the instructional designer can edit it herself instead of needing the programmers to format and flow it.If I publish the content as HTML and dig through the javascript, I am able to find the name of the text fields as they are named on export and can influence them via Flash with javascript actions. However, this is incredibly impractical when there will be likely hundreds of text blocks in the entire course.I already have an action in Flash that updates a variable in Lectora called CurrentTxt (and it is equal to Txt01, Txt02, etc.). This currently tells Lectora which text field to show when the Text Display button is toggled.What I want to do is create an action that shows the proper text field (and the general text display background graphic in the GUI) whenever this variable is updated. I seem to remember there being an "on change" sort of event, but I can't figure out how or where this was accessed, and if I'm even remembering something that's really available (or thinking about ActionScript listeners :P).It seems silly that there wouldn't be a way to do this, as it's a very powerful way to add interactivity to the content.Any insight you can provide would be greatly appreciated. Unfortunately, I'm trying to save this project, and it's on a bit of a tight deadline.Thanks!Jeremy
Discussions have been disabled for this post