Ok, assuming I have made the .jar file using Java. Now how do I embed it into my website and with what specifications. (I'm using Dreamwiever CS4).
Thanks All.
Printable View
Ok, assuming I have made the .jar file using Java. Now how do I embed it into my website and with what specifications. (I'm using Dreamwiever CS4).
Thanks All.
MMF2 generated a HTM file beside the JAR file. Copy and paste the code from the HTM file into the source of the website to embed the application.
Dreamwiever automatically embeds it into the site so I don't have to worry about that as much. My biggest issue is figuring out why none of the games I make run..
Quote:
Originally Posted by Ausomeman
I think you just answered your own question :)Quote:
Originally Posted by Ausomeman
Dreamweaver probably doesn't embed it correctly. Copy the HTML from the file MMF2 generates into your webpage's HTML, and see if that works.
Remember you need to upload the JAR file alongside your webpage, too..
When I run the Java file without uploading it, it won't run either.
It won't run itself, try to open the HTM file that was generated by MMF2.
Check the version of Java run by your browser - do other Java applets/MMF Java games work?
Here's one: http://www.clickteam.info/davidn/games/jason.htm
Heh, wrong forum Jamie. ;)Quote:
Originally Posted by Jamie
Oops, edited!
Hey, I ran the HTM file. It comes up with the HTML page and I see a black box. It says click to target or something like that. Any ideas? Is my version messed up, or does MMF2 not run on Windows 7?
MMF2 runs fine in W7.
Marv
Did you try clicking on it?Quote:
Originally Posted by Ausomeman
I tried clicking on it. It still will not run.
Do you have a URL we can see and comment on whats going on?
www.zionoxis.com
Ok, the first game on the page is just a simple background, though it will not load. It loads java, then a white screen (I don't know how to do a loading bar for java.) but it stays instead of loading anything.
The second link actually loads the game.
Hmm
Can you try something for me?
Make a simple web applet
Upload it and the HTML file MMF produced for you
Put the link up here.
Also check and make sure your using build 249 of MMF.
extract of working game page:
<applet code=Application/CApplet.class archive="Game.jar" width=640 height=480></applet>
<body class="twoColLiqLt">
<script type="text/javascript" src="Game.htm"></script>
</body>
extract of non working game page:
<body class="twoColLiqLt">
<applet code=Application/CApplet.class archive="Index.jar" width=640 height=480></applet>
<a href="BallPlatform.html">Click Here for working Game...</a>
</body>
</html>
there is a missing source link in the non working page. is this the cause???
I don't know. All the code looks the same, yet they do not run.
I named one of my games index.jar and the other game.jar.
The game.jar runs and the index.jar does not. I cannot figure out why this is so....
Could be something silly like case sensitivity?
What i was pointing out is that there is this in the working game page:
<script type="text/javascript" src="[color:#000099]Game.htm[/color]"></script>
wheras the non working page doesn't have it at all.
I actually found out that it was not only case sensitivity, but also that a few of my extensions were not supported. I really need to print off the list of working extensions. :/
Or, just change the build type to the type you're going to use, and insert a new object. The dialog will show only compatable objects.
You can't even build java or flash apps if the extensions/features aren't supported. It will give you an error message. Reason being is because MMF2 has no idea what code to use for java to be the equivilant of the executable version.