Multimedia Fusion Tutorial - VI (Final)
Converting to a Web Application!

Time to convert your previous game into a web game that your friends can easily play through their web browser (Internet Explorer, Firefox, etc). Just start MMF as usual and open your file then on the top drop down menu choose File - Build - Internet Application. Your game.cca file will now be converted to game.ccn. If you compare the size of the 2 files you will notice that the web ready game.ccn is considerably smaller because the graphics and sound have now been compressed for web delivery.

The game.ccn file is now ready but you also have to make a web page with the proper code so that it will be compatible with all the major browsers and for those that don't have the Vitalize plugin so that they can be prompted to install it (a one time installation that my require admin rights) .


Below is the typical web page <HTML> code template for a MMFusion game. You can copy and paste it into notepad and make the necessary modifications then SAVE AS, changing the type to All files (*.*), and name the file game.html. Make sure both this file and your gamename.ccn file are both in the same folder.

MMF Web Template:
<html>
<head><title>My Game</title></head>
<body>


<OBJECT ID="Vitalize4242" WIDTH=640 HEIGHT=480
CLASSID="CLSID:EB6D7E70-AAA9-40D9-BA05-F214089F2275" CODEBASE="http://www.clickteam.com/vitalize3/vitalize.cab#Version=3,5,116,0">
<PARAM NAME="URL" VALUE="gamename.ccn">
<PARAM NAME="TaskPriority" VALUE="50">
<PARAM NAME="BackColor" VALUE="0,0,0">
<PARAM NAME="ProgressBar" VALUE="160,236,320,8">
<PARAM NAME="ProgressBarColor" VALUE="255,255,0">
<PARAM NAME="ProgressBarBorderColor" VALUE="0,0,0">
<EMBED type="application/x-cnc" width=640 height=480
Pluginspage="http://www.clickteam.com/vitalize3/plugin.html"
CheckVersion=3,5,116,0
TaskPriority=50
BackColor=0,0,0
ProgressBar=160,236,320,0
ProgressBarColor=255,255,0
ProgressBarBorderColor=0,0,0
src="gamename.ccn"
</EMBED>
</OBJECT>

</body>
</html>

Clicking on the game.html file should now launch your web browser and play your game! Congratulations on sticking with the tutorial and realize that you've only scratched the surface of what is possible with this powerful program!


Tips:
Make sure your page.html and gamename.ccn file are both in the same folder, even when uplaoded to the web server. And remember that your friends will likely require the Vitalize plugin download on their computer to play your game. Plugins usually require admin rights to complete the installation.

Challenges:
Convert your game to web form! If it's good the teacher will put you in the gallery!

Links:
Vitalize Plugin