To embed a project into a web site refer to this thread
http://scratch.mit.edu/forums/viewtopic.php?pid=763#p763
(should have looked at the faq!)
And by the way scratch projects run in java not flash.
Offline
Ok before you can make it work you need to put these files into the directory that contains your projects
1. http://scratch.mit.edu/static/misc/ScratchApplet.jar
2. http://scratch.mit.edu/static/misc/soundbank.gm
(for soundbank.gm, if you're using firefox, right-click and select "Save Link As..." to download)
After copying these to a folder on your computer, put the .sb file in the same folder. Then, create a .htm file with the following contents:
Code:
<html>
<body>
<applet id="ProjectApplet" style="display:block" code="ScratchApplet" codebase="./" archive="ScratchApplet.jar" height="387" width="482">
<param name="project" value="testproject.sb">
</applet>
</body>
</html>
And there you go all you need is an online directory and very basic knowledge of html.
Offline
I can put it any simpler than this
Ok first download
1. http://scratch.mit.edu/static/misc/ScratchApplet.jar
2. http://scratch.mit.edu/static/misc/soundbank.gm
and then put the files on your website's main place where it keeps its files.
Have your scratch project ready.
And then open note pad and type this in.
and replace projectnamegoeshere with your project name.
<html>
<body>
<applet id="ProjectApplet" style="display:block" code="ScratchApplet" codebase="./" archive="ScratchApplet.jar" height="387" width="482">
<param name="project" value="projectnamegoeshere.sb">
</applet>
</body>
</html>
save this file as scratchproject.htm
Once you have done that upload the files you made all to your website
So go to the uploader
Make sure these files are uploaded
1. http://scratch.mit.edu/static/misc/ScratchApplet.jar
2. http://scratch.mit.edu/static/misc/soundbank.gm
And then upload your newly created scratchproject.htm file and make sure this file is beside the others.
and you are done.
when someone goes to www.yoursitename.com/scratchproject.htm
they will see the project you uploaded
I can't explain it any simpler. If you are creating your own website then you should at least be able to do this.
Last edited by archmage (2007-06-18 21:54:26)
Offline