My function(short form)

var x

function start_program()
{ mouse_mode = 0;
wait(1);
freeze_mode = 1;
media_play("intro.wmv",NULL,100);
wait(999);
wait(999);
wait(999);
wait(999);
wait(999);
wait(999);
wait(999);
wait(999);
wait(39);
media_stop(x);
freeze_mode = 0;
set(loadingscreen_panel, SHOW);
...
}

I know it is not a really clean programming code, but it works! laugh
Where do i have to paste the 'if (key_space) then media_stop'?
After media_play? need help please...:(