SWF/Audio Control
June 7, 2006 12:00 AM
Anyone up for a minor challenge?The lesson I'm making has (at least) one audio per page. However, we compressed the audio down to a .swf file. Now, to make this work online (SCORM course), non of the General checkboxes are marked (so, NOT init. Vis, NOT always on top, NOT auto start, NOT size, etc.) except "Preload for HTML Publish". Now, I have an action on the .swf(animation) ON: Show, Play, Target: Self(whatever it is). I also have a condition of a custom variable "SoundOn" need to be equal to 1. (there is text in the same place on every page with the action On: Show, Show, Target: .swf file with the text always initally visible).Here's the problem. I have a button at the top level of the lesson (right under the AU) which toggles the variable SoundOn from 1 to 0 (so, On Click, Modify Varibale, SoundOn, Value: 0, Mod type: set var. Contents, CONDITION SoundOn Equal To 1) there is another action to show a copy of this button with a line through it (audio off!) on mouse click. So, you click the audio on/off button, var. SoundOn changes to 0, new button is diplayed on top of the old one. Clicking on this button changes VAR(SoundOn) back to 1 and hides itself. Testing this is Lectora works beautifully. It doesn't turn the audio off immediately, but it will not play on the next page(s). Excatly how I want it. I publish to SCORM or HTML (just to test) and it no longer works. The new graphic shows up, but the functionality of it no longer works. The audio plays no matter what. I'm about to add some testing code to see what VAR(SoundOn) is set to in an HTML file to see if it is resetting on each page or something to that effect. I have the feeling it has something to do with the .swf/animation file not reacting correctly. If anyone has dealt with this before, that would be great! Thanks ahead of time.
Discussions have been disabled for this post