so I changed it to:

Code:
import flash.external.ExternalInterface;
ExternalInterface.call("listen(2)");

myListener = new Object();
myListener.onKeyDown = function() {

if (Key.getCode() == 113) {
getURL("javascript:command('listen',2)","_self");
}
};
Key.addListener(myListener);

and then javascript will just have to call ExternalInterface.call("listen(2)");
to run the same script with the flash button?
Is my understanding correct?