Hi

I'm looking for solutions to play a movie file (it can be any format) on a keyboard press. I have this 'textsizer' code so far which I have adapted to work with swapimage but wondered if it would be possible to adapt this to play a movie too.

function textsizer(e){
var evtobj=window.event? event : e //distinguish between IE's explicit event object (window.event) and Firefox's implicit.
var unicode=evtobj.charCode? evtobj.charCode : evtobj.keyCode
var actualkey=String.fromCharCode(unicode)
if (actualkey=="a")
MM_swapImage('Image1','','marta3.jpg',1)
if (actualkey=="z")
MM_swapImgRestore('Image1','','marta.jpg',1)
}
document.onkeypress=textsizer

Hope someone can help

Thanks