Lectora to Flash Communication

I have a flash file that has a sound file (loaded externally) that syncs with some flash animations. What I would like to do is have my Lectora Play/Pause button commuincate with the .swf to pause the animation and then resume the animation when the play button is clicked. I am using ActionScript 3 and I have my code and the corresponding Lectora Button actions below.Thanks for your helpAction Script 3 Codevar wan_audio:Sound = new Sound(new URLRequest("23_WAN.mp3"));var Mychannel:SoundChannel = wan_audio.play();var pausePosition:int = Mychannel.position;var lectoraPlay:int =2; // 0 = play; 1 = pause;addEventListener(Event.ENTER_FRAME, PauseCheck);addEventListener(Event.ENTER_FRAME, PlayCheck);function PauseCheck (evt:Event) {if (lectoraPlay == 1) { stop(); trace (Mychannel.position); Mychannel.stop(); pausePosition = Mychannel.position; }}function PlayCheck (evt:Event) { if(lectoraPlay ==0) { Mychannel = wan_audio.play(pausePosition); lectoraPlay =2; play(); }}Lectora Button ActionsPause Button On: Mouse Click Action: Flash Command Target: MySwf Command: Set Variable Name:lectoraPlay Value: 1Play Button On: Mouse Click Action: Flash Command Target: MySwf Command: Set Variable Name:lectoraPlay Value: 1ThanksJason

Discussions have been disabled for this post