The Movie Player script is the actual script used for the Movie Player template. It is written in JScript for a HTML page. There are two 3D windows needed, one for the actual animation, and one for the movie player control. For both these windows the onCreate event needs to be used. For the control the onModeInstanced and onScriptReady events also need to be handled to intialise this web page.

Below the OnCreate handlers for both 3D windows are defined. Both handlers load a choreography and create and initialise the script.

<SCRIPT Language="JScript" for="arctic" event="OnCreate()">

	// Create a new script to hold the chor
	hMain = arctic.world.newScript("main")

	// timer stuff to update the slider button
	bMainTimerReady = true;
	StartSliderTimer();

	// Load choreography
	 arctic.doc.loadChor("AlienSong/AlienSong.chor") 
	 hChor = arctic.doc.chorFiles("AlienSong") 

	// Add the chor to the script
	 hMain.addChoreography("AlienSong") 

	// Start the script.
	hMain.start()

</SCRIPT>


<SCRIPT Language="JScript" for="movieplayer" event="OnCreate()">

	var hplayerscript = movieplayer.world.newScript("main")
	arctic.doc.loadChor("./ixSlider/ixslider.chor") 
	hplayerscript.addChoreography("ixslider")
	hplayerscript.start()

	// disallow camera handling
	movieplayer.world.camera.handling= 0;

	// disallow context menu
	movieplayer.window.allowContextMenu = false;

</SCRIPT>

 

©2000 arcticpigs. All rights reserved.
This is a draft version! The functionality of parts of the software are liable to change.