I solved this
Code:
/////////////////////////////
	// Video section 
	var vid_handle=0;  // create a local var to hold the media handle
	vid_handle=media_play("testvid.wmv",NULL, 75); //play media and set var
	// loop only while var is valid 
	while(vid_handle)
	{
		if(key_any) // check if any key was pressed
                {
		media_stop(vid_handle); // stop vid
                 vid_handle=0; //!!!!!!!!!!!!!!!
                 }
		wait(1); // required wait avoids endless looping
	}
	///////////////////////////////////



add vid_handle =0; after the media_stop

for further help with George's templete I would suggest asking in a new thread or the template section. I do not support template code.

Have a great day
Mal

EDIT - HERE is a alternative to using the handle in the while() loop
Code:
/////////////////////////////
	// Video section 
	var vid_handle=0;  // create a local var to hold the media handle
	vid_handle=media_play("testvid.wmv",NULL, 75); //play media and set var
	// loop only while var is valid 
	while(media_playing(vid_handle))
	{
		if(key_any) // check if any key was pressed
                {
		media_stop(vid_handle); // stop vid
                 //vid_handle=0; //!!!!!!!!!!!!!!!
                 }
		wait(1); // required wait avoids endless looping
	}
	///////////////////////////////////


Last edited by Malice; 06/19/15 14:44.