here you go

Code:
///////////////////////////////
#include <acknex.h>
#include <default.c>

///////////////////////////////
function main()
{
	
  vec_set(screen_size,vector(800,400,0));
  vec_set(screen_color,vector(50,1,1)); // dark blue
  vec_set(sky_color,vector(50,1,1)); // dark blue
  video_window(NULL,NULL,0,"My New Game");
  d3d_antialias = 1;
  shadow_stencil = 3;
/////////////////////////////
// Video section 
var vid_handle=0;  // create a local var to hold the media handle
vid_handle=media_play("this_vid.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
	wait(1); // required wait avoids endless looping
}
///////////////////////////////////
//  level_load("my_level.wmb");
//  vec_set(camera.x,vector(-250,0,50));
//  vec_set(camera.pan,vector(0,-15,0));

}



Note about videos, http://www.conitec.net/beta/amedia_play.htm
If I recall you may need to use a VFW format. OR maybe that was just a Virtual Dub requirement

Last edited by Malice; 06/01/15 13:55.