/* Put all your code here. If you are programing with FourPages (3 frames, see this option in the "make a 3D web site" dialog) then you could also add extra content to the content and description HTML pages which the WebMaker creates for you automatically when you choose to make a 3D web site. User who is using Microsoft InterDev or any other professional tools will probably prefer to insert his code straight into the worldname_home.htm page instead of here. The reason is that when using such a software, you get a list of all the possible ActiveX functions (AutoComplete), which you do not see in this file. */ //Add your initialization code here (This function is called right after //the page has been loaded) function my_AfterInitialize() { } //This function is called after the world has finished downloading - notice //that the bitmaps are still missing. //You can add here initialization relevant to the world itself. function my_AfterLoadWorld(){ } //This function is called before each render. A render is a function which //displays the world inside the browser. The fuction is called about 30 times //a second depending on the computer speed and world complexity. function my_BeforeRender() { } //This function deals with the event of a user clicking on a polygon //which contains a link. The code which opens the link itself is in the //file worldname_home.htm inside the function morfit3dWorld1_ClickOnLinkedPolygon(). //Here you can add additional actions. //Each polygon can have three links. The three links are found in: // morfit3dWorld1.LinkedPolygonOne // morfit3dWorld1.LinkedPolygonTwo // morfit3dWorld1.LinkedPolygonThree // //You can also get the target frame for each link: // morfit3dWorld1.TargetFrameOne // morfit3dWorld1.TargetFrameTwo // morfit3dWorld1.TargetFrameThree // function my_ClickOnLinkedPolygon() { } //This function is called each time the mouse moves . (x,y) is the coordinate of //the mouse. You can know on //which polygon/object the mouse is pointing by //using the function : //var result=morfit3dWorld1.Engine_2D_point_to_3D(x,y); //result.handle2 is the polygon handle. function my_OnMouseMove( x, y) { } //This function is called when the user presses the left mouse button.See also //my_OnMouseMove() description. function my_OnLButtonDown( x, y) { } //This function is called when the user releases the left mouse button.See also //my_OnMouseMove() description. function my_OnLButtonUp( x, y) { } //This function is called when the user presses the right mouse button.See also //my_OnMouseMove() description. function my_OnRButtonDown( x, y) { } //This function is called when the user releases the right mouse button.See also //my_OnMouseMove() description. function my_OnRButtonUp( x, y) { } //This function is called when a file, usually a bitmap has been downloaded. //You can check if a certain bitmap/sound/model is available. filename is the //name of the file available. If you try to get a handle to an existing bitmap, //for example, which was not downloaded yet, you will get a null (0) handle which //could cause a JavaScript error.The list of all the files that the Morfit 3D //engine downloads is inside the text file worldname.wldi. function my_FileAvailable( fileName) { } //This function is called when all the files are available - which means that //download is complete. The list of all the files that the Morfit 3D engine //downloads is inside the text file worldname.wldi. function my_AllDataAvailable() { }