nick wrote:
Hi!
There's actually a way to share scratch projects on your website or in a folder on a CD or computer without posting them to scratch.mit.edu first. To do it, you need to download the following files to the directory on your website (or a folder on your computer):
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>replacing testproject.sb with the name of the project you want to view. This will allow you to either view scratch projects offline (in a folder) or online (on a webserver).
You can view an example of this in action here:
http://web.media.mit.edu/~nbushak/test.html
Additional methods of embedding Scratch projects are detailed here:
http://info.scratch.mit.edu/Publishing_ … r_websites
Also, we release new versions of ScratchApplet.jar occasionally for bug fixes. If you're using this a lot, it may be a good idea to stay updated by periodically downloading new versions of ScratchApplet.jar from the website.
Nick
Nick, I have been trying to download the things you gave to us, but I don't know what to open it with. What should I open the soundbank and ScratchApplet with?
Many thanks,
Plipplop29
When gf clicked say [Plipplop29 is awesome!!!!!!!!!!!!!!!!!!] for (1000000000000) secs think [Plipplop29 is awesome!!!!!!!!!!!!!!!!!!] for (1000000000000) secs say [bye]
Offline
plipplop29 wrote:
nick wrote:
Hi!
There's actually a way to share scratch projects on your website or in a folder on a CD or computer without posting them to scratch.mit.edu first. To do it, you need to download the following files to the directory on your website (or a folder on your computer):
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>replacing testproject.sb with the name of the project you want to view. This will allow you to either view scratch projects offline (in a folder) or online (on a webserver).
You can view an example of this in action here:
http://web.media.mit.edu/~nbushak/test.html
Additional methods of embedding Scratch projects are detailed here:
http://info.scratch.mit.edu/Publishing_ … r_websites
Also, we release new versions of ScratchApplet.jar occasionally for bug fixes. If you're using this a lot, it may be a good idea to stay updated by periodically downloading new versions of ScratchApplet.jar from the website.
NickNick, I have been trying to download the things you gave to us, but I don't know what to open it with. What should I open the soundbank and ScratchApplet with?
Many thanks,
Plipplop29When gf clicked say [Plipplop29 is awesome!!!!!!!!!!!!!!!!!!] for (1000000000000) secs think [Plipplop29 is awesome!!!!!!!!!!!!!!!!!!] for (1000000000000) secs say [bye]
You don't open them.... They just stay in the same folder as your project.
when gf clicked think [Why doesn't he/she put those Scratch blocks in his/her signature :/] for (10) secs
Last edited by Splodgey (2012-02-21 15:44:12)
Offline
Spence wrote:
That is a good idea, but, how do you make an Htm file and put it on that code. I'm not that good with computers.
first use some thing like note pad copy and paste the code , make the needed changes and change .txt or what ever it says to .htm
Offline
poppins wrote:
I have just looked at the comments about embedding Scratch projects in a website and it is all working beautifully, so thank you for that. My question is... is there anyway that the project notes can be included in the applet, as the children I am working with are writing instructions for the user.
Any help would be appreciated. Thank you.
just add your text in to the .html
like this:<html>
<body>
<applet id="ProjectApplet" style="display:block" code="ScratchApplet" codebase="." archive="ScratchApplet.jar" height="387" width="482">
<param name="project" value="xopets.sb" />
</applet>
</body>
</html>
hi
Offline
kevin_karplus wrote:
The "Is there anyway I can convert Scratch projects to exe files?" should be on the FAQ, as it has been asked several times. The answer is "no", but there are ways to incorporate scratch programs on arbitrary web sites.
there is
Offline
gagetman wrote:
kevin_karplus wrote:
The "Is there anyway I can convert Scratch projects to exe files?" should be on the FAQ, as it has been asked several times. The answer is "no", but there are ways to incorporate scratch programs on arbitrary web sites.
there is
That was like in 2007 before they had many scratch mods (If any at all)
Offline
java.lang.ClassFormatError: Incompatible magic value 538976288 in class file ScratchApplet
at java.lang.ClassLoader.defineClass1(Native Method)
at java.lang.ClassLoader.defineClassCond(Unknown Source)
at java.lang.ClassLoader.defineClass(Unknown Source)
at java.security.SecureClassLoader.defineClass(Unknown Source)
at sun.plugin2.applet.Applet2ClassLoader.findClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass0(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
at sun.plugin2.applet.Plugin2ClassLoader.loadCode(Unknown Source)
at sun.plugin2.applet.Plugin2Manager.createApplet(Unknown Source)
at sun.plugin2.applet.Plugin2Manager$AppletExecutionRunnable.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Exception: java.lang.ClassFormatError: Incompatible magic value 538976288 in class file ScratchApplet
..What
Offline
each time I go to the web sight I made it shows a error on the applet and I don't know what to do.
Offline
nick wrote:
Hi!
There's actually a way to share scratch projects on your website or in a folder on a CD or computer without posting them to scratch.mit.edu first. To do it, you need to download the following files to the directory on your website (or a folder on your computer):
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>replacing testproject.sb with the name of the project you want to view. This will allow you to either view scratch projects offline (in a folder) or online (on a webserver).
You can view an example of this in action here:
http://web.media.mit.edu/~nbushak/test.html
Additional methods of embedding Scratch projects are detailed here:
http://info.scratch.mit.edu/Publishing_ … r_websites
Also, we release new versions of ScratchApplet.jar occasionally for bug fixes. If you're using this a lot, it may be a good idea to stay updated by periodically downloading new versions of ScratchApplet.jar from the website.
Nick
How would I put the two downloaded files on the "directory" of my site? I'm making it completely out of javascript and it would be about the same as this, but it would have some CSS in it. So I guess my question is this: how would I make a directory with only HTML? Also, just for the learning expirience, what exactly is a directory?
Offline
Safety Torch:
Tim Tim, things are looking grim grim,
But lucky for you you,
I have come with a solution!
It's your lucky day!
FLASH PLAYER!
<object width='483' height='387' type='application/x-shockwave-flash' data='http://scratch.mit.edu/static/misc/PlayerOnly.swf'><param name='allowScriptAccess' value='sameDomain'><param name='allowFullScreen' value='true'><param name='flashvars' value='project=http://scratch.mit.edu/static/projects/GeonoTRON2000/2535353.sb'></object>
Replace http://scratch.mit.edu/static/projects/GeonoTRON2000/2535353.sb with your project URL!
Offline
PullJosh wrote:
nick wrote:
Hi!
There's actually a way to share scratch projects on your website or in a folder on a CD or computer without posting them to scratch.mit.edu first. To do it, you need to download the following files to the directory on your website (or a folder on your computer):
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>replacing testproject.sb with the name of the project you want to view. This will allow you to either view scratch projects offline (in a folder) or online (on a webserver).
You can view an example of this in action here:
http://web.media.mit.edu/~nbushak/test.html
Additional methods of embedding Scratch projects are detailed here:
http://info.scratch.mit.edu/Publishing_ … r_websites
Also, we release new versions of ScratchApplet.jar occasionally for bug fixes. If you're using this a lot, it may be a good idea to stay updated by periodically downloading new versions of ScratchApplet.jar from the website.
NickHow would I put the two downloaded files on the "directory" of my site? I'm making it completely out of javascript and it would be about the same as this, but it would have some CSS in it. So I guess my question is this: how would I make a directory with only HTML? Also, just for the learning expirience, what exactly is a directory?
I sorta need to know this right away, so... Bump!
Offline
How do I post a scratch game on another website? What type of file should I convert it to?
Offline
I want my students to be able to show their Scratch projects on their Dreamweaver websites. I have downloaded the gm and jar files and set up a webpage with a table in it, pasted in the code and pointed to an sb file, which is in the directory but when I view in IE the scratch project says "loading" and stops there. Can anybody help with this? We can't embed from the Scratch website as our techs won't let the students upload or download from the site in school.
Thank you
Offline
HayesSchool wrote:
I want my students to be able to show their Scratch projects on their Dreamweaver websites. I have downloaded the gm and jar files and set up a webpage with a table in it, pasted in the code and pointed to an sb file, which is in the directory but when I view in IE the scratch project says "loading" and stops there. Can anybody help with this? We can't embed from the Scratch website as our techs won't let the students upload or download from the site in school.
Thank you
First of all, DREAMWEAVER?!?! Second of all, the problem that you are most likely having is that the player cannot find the correct file. The easiest way to embed the Flash player without such troubles is to share the project and use this code:
<object width="483" height="387" type="application/x-shockwave-flash" data="http://scratch.mit.edu/static/misc/PlayerOnly.swf"> <param name="allowScriptAccess" value="always"> <param name="allowFullScreen" value="true"> <param name="flashvars" value="project=http://scratch.mit.edu/static/projects/{USERNAME}/{PROJECT ID}.sb?version=1"> </object>
Offline
Thank you very much for responding so quickly.
Why - what's wrong with Dreamweaver? Not that I chose it - I just do as I'm told!
By share do you mean on the the Scratch website? That's what our techs won't allow.
Offline
HayesSchool wrote:
Thank you very much for responding so quickly.
Why - what's wrong with Dreamweaver? Not that I chose it - I just do as I'm told!
By share do you mean on the the Scratch website? That's what our techs won't allow.
There's nothing wrong with Dreamweaver, I just really want it. And yes, I mean the scratch website. You can also upload it to another website, and change the URL to the newly uploaded file.
Last edited by SciTecCf (2012-07-18 07:28:40)
Offline
HayesSchool wrote:
I want my students to be able to show their Scratch projects on their Dreamweaver websites. I have downloaded the gm and jar files and set up a webpage with a table in it, pasted in the code and pointed to an sb file, which is in the directory but when I view in IE the scratch project says "loading" and stops there. Can anybody help with this? We can't embed from the Scratch website as our techs won't let the students upload or download from the site in school.
Thank you
Maybe this player can work with a local file. Judging from the way it's set up, it shouldn't depend on the website.
Offline
coolhogs wrote:
Is there a way to make an app from a Scratch project?
Like an App Store app? Or a .app file?
Offline
stevetheipad wrote:
coolhogs wrote:
Is there a way to make an app from a Scratch project?
Like an App Store app? Or a .app file?
An app store app...
Offline
coolhogs wrote:
stevetheipad wrote:
coolhogs wrote:
Is there a way to make an app from a Scratch project?
Like an App Store app? Or a .app file?
An app store app...
You'd have to recode it in Objective-C.
Offline
Hello
I'm trying to embed my project on a google site. nick's method doesn't work, or I'm doing something wrong. I'm no pro at coding, so could someone please give me simple instructions?
I have downloaded the soundbank and Scratch Applet files, but the game won't appear. There isn't even a space where it should be.
Please don't tell me to post my project on the website, I know it's a possibility but I'd rather not.
Offline
nick wrote:
Hi!
There's actually a way to share scratch projects on your website or in a folder on a CD or computer without posting them to scratch.mit.edu first. To do it, you need to download the following files to the directory on your website (or a folder on your computer):
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>replacing testproject.sb with the name of the project you want to view. This will allow you to either view scratch projects offline (in a folder) or online (on a webserver).
You can view an example of this in action here:
http://web.media.mit.edu/~nbushak/test.html
Additional methods of embedding Scratch projects are detailed here:
http://info.scratch.mit.edu/Publishing_ … r_websites
Also, we release new versions of ScratchApplet.jar occasionally for bug fixes. If you're using this a lot, it may be a good idea to stay updated by periodically downloading new versions of ScratchApplet.jar from the website.
Nick
WOW, thanks it worked, it was really easy, I used one of my games and it turned out working well!
Offline
stevetheipad wrote:
coolhogs wrote:
Is there a way to make an app from a Scratch project?
Like an App Store app? Or a .app file?
I am wondering the same as coolhogs, but I think he means App Store, I mean .app.
Offline