mute audio of captivate files
November 12, 2008 12:00 AM
Load the captivate swf inside a flash file and then Import the flash published swf inside Lectora and folloe the below Instruction to mute/unmute audio right from Lectora:Coding inside Flash :
//
Function for Audio ONOFF state
var mySound = new Sound(); var mute:Boolean var AudioControl:Function = function (prop, oldVal, newVal, stateOFMute) { if (newVal == stateOFMute) { mySound.setVolume(100); } else { mySound.setVolume(0); } return newVal; }; watch("mute", AudioControl, "false"); //
Java Script or Lectora Code:
#Flash swf object#.setFlashVar( 'mute', "true" ); or #Flash swf object#.setFlashVar( 'mute', "false" );
This works fine.
Discussions have been disabled for this post