Spot the mistake?

HI, within lectora I need to pause and restart mp3's that are being drawn into swf's using load.sound. The sound needs to be controled from within Lectora. I created the following code in the flash file:


import flash.external.*;


ExternalInterface.addCallback("asPause",asPause);


function asPause(test:String):Void {


mySound.stop();


pausePosition = mySound.position/1000


}


ExternalInterface.addCallback("asPlay", asPlay);


function asPlay () {

mySound.start(pausePosition);


}


and then within lectora i have the following action placed upon a button to designed to pause the sound:


On; Mouse Click

Action: Flash Command

Target: name of flash file

Command: Call Function

Name; asPause

Value: asPause


But this is not working, what am i doing wrong?

Discussions have been disabled for this post