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
I tried it, but it said 'error. Click for details. The detail were: There was an error while executing the application. Click "Details" for more information. Can anyone help?
Offline
Hello! I need some help, I want to share a scratch project with some friends, but this project requires turbo mode in the flash player. Seeing as the flash player only works for members (and as they are not) is there any way to embed this WITH the flash player?
*please note* I am not a scripter, so dumbing the process down would help a bit
Also: I am working on a mac, it WOULD be possible to do it on a PC, but it would not be easy for me to do so.
I need a reply by the 29th at the latest, as this game is being released for halloween
I hope to upload this to facebook, but if that is not possible, then googledocs.
Last edited by zackman94 (2011-10-23 23:04:29)
Offline
[blocks]
<when green flag clicked>
<say[ How do you make a .htm file? I clicked save as on Microsoft Word but in file type optins there is no .htm ? Please help!
[/blocks]
Offline
loopylew456 wrote:
Is there anyway I can convert Scratch projects to exe files?
You can change scratch projects into .exe searching the scratch site search bar this:
"scratch to .exe"
Hope this helps!
Offline
loopylew456 wrote:
Is there anyway I can convert Scratch projects to exe files?
Link to "Scratch2Exe: http://chirp.scratchr.org/
Information about it: http://www.chirp.scratchr.org/blog/?page_id=8
Offline
bannanaman wrote:
[blocks]
<when green flag clicked>
<say[ How do you make a .htm file? I clicked save as on Microsoft Word but in file type optins there is no .htm ? Please help!
[/blocks]
Don't use word use notepad. (start, all programs, accessories, notepad or just type notepad in the search an hit enter - or click run first on windows xp)
Offline
If you want to simply get the html for your scratch project, post it online and then hit Embed (above the spot that shows your other projects). Copy and past the code you want into your website or whatever you want it for. The top code is a picture that you can click to go to the project on the Scratch website. The bottom one is for putting the game right in your website (again, you could use the html for something else, but I use it for my website). The only problem with the bottom one is that it only works in some website making things.
My website has the bottom one (the applet) if you want to see it: joshuapullen.com
Offline
PullJosh wrote:
If you want to simply get the html for your scratch project, post it online and then hit Embed (above the spot that shows your other projects). Copy and past the code you want into your website or whatever you want it for. The top code is a picture that you can click to go to the project on the Scratch website. The bottom one is for putting the game right in your website (again, you could use the html for something else, but I use it for my website). The only problem with the bottom one is that it only works in some website making things.
My website has the bottom one (the applet) if you want to see it: joshuapullen.com
But if you didn't want it on the scratch website. (maybe you only want certain people to access it) or it's bigger than 10MB then...
Offline
There are many reasons not to share a project on the Scratch website. I have followed the directions given here and have been able to put Scratch projects on my website successfully. However, I still have the following questions:
1. What can I do to prevent the project from starting automatically? When my webpage loads, the project starts as if the green flag has been clicked. This is not the desired behavior.
2. The <applet> tag has been deprecated for a very long time. How can I put Scratch on my website using the preferred <object> tag?
Thanks for any and all help.
Offline
When I try it I only get half the applet screen.
EDIT: But that's just when I launch the file from my computer. How do you get the whole folder to a directory with Weebly? And sometimes it won't even load. Gosh, I hate the java player.
Last edited by Venazard (2012-01-13 00:37:29)
Offline
Thanks for the nice presentation..
Offline
Venazard wrote:
When I try it I only get half the applet screen.
EDIT: But that's just when I launch the file from my computer. How do you get the whole folder to a directory with Weebly? And sometimes it won't even load. Gosh, I hate the java player.
This is not the problem of the Java player!
I think you forgot the width=... and height=...
Don't say anything bad to Java
Last edited by ZeroLuck (2012-01-13 10:35:31)
Offline
ZeroLuck wrote:
Venazard wrote:
When I try it I only get half the applet screen.
EDIT: But that's just when I launch the file from my computer. How do you get the whole folder to a directory with Weebly? And sometimes it won't even load. Gosh, I hate the java player.This is not the problem of the Java player!
I think you forgot the width=... and height=...
Don't say anything bad to Java
Except when the player is poorly written and runs off unnecessary logo files that just adds laggieness (yes, I made that word up .)
Last edited by MathWizz (2012-01-13 10:41:40)
Offline
attitudex2 wrote:
1. What can I do to prevent the project from starting automatically? When my webpage loads, the project starts as if the green flag has been clicked. This is not the desired behavior.
Yes, me too. Why do they autorun? Is there any way to disable that? I really can't have the project start before the green flag is clicked.
Offline
ZeroLuck wrote:
Venazard wrote:
When I try it I only get half the applet screen.
EDIT: But that's just when I launch the file from my computer. How do you get the whole folder to a directory with Weebly? And sometimes it won't even load. Gosh, I hate the java player.This is not the problem of the Java player!
I think you forgot the width=... and height=...
Don't say anything bad to Java
I did put the height and width in the .htm document. That didn't answer my question about uploading it this way through Weebly. And I do not like the java player, and that is my opinion.
Offline
rshapiro wrote:
attitudex2 wrote:
1. What can I do to prevent the project from starting automatically? When my webpage loads, the project starts as if the green flag has been clicked. This is not the desired behavior.
Yes, me too. Why do they autorun? Is there any way to disable that? I really can't have the project start before the green flag is clicked.
What I do is I just put a Play icon before the entire project. So, when they click it, it begins.
Offline
Venazard wrote:
rshapiro wrote:
attitudex2 wrote:
1. What can I do to prevent the project from starting automatically? When my webpage loads, the project starts as if the green flag has been clicked. This is not the desired behavior.
Yes, me too. Why do they autorun? Is there any way to disable that? I really can't have the project start before the green flag is clicked.
What I do is I just put a Play icon before the entire project. So, when they click it, it begins.
Thanks for this but can you explain further? What do you mean by a Play icon? As well, I'd like to put more than one project ion the page and don't want them all starting at the same time; I need to play them individually.
Offline
rshapiro wrote:
Venazard wrote:
rshapiro wrote:
Yes, me too. Why do they autorun? Is there any way to disable that? I really can't have the project start before the green flag is clicked.What I do is I just put a Play icon before the entire project. So, when they click it, it begins.
Thanks for this but can you explain further? What do you mean by a Play icon? As well, I'd like to put more than one project ion the page and don't want them all starting at the same time; I need to play them individually.
I mean "Play icon" as a sprite in front of a title. You know, the white triangle. It would use the same concept as a Youtube video for example. You can start when you press Play. Does that help, or am I still unclear?
Offline
bannanaman wrote:
[blocks]
<when green flag clicked>
<say[ How do you make a .htm file? I clicked save as on Microsoft Word but in file type optins there is no .htm ? Please help!
[/blocks]
HTM is the same as a HTML file. However, Word uses something called "rich text" which means it doesn't really save into program language formats. What you really want to do is create your code in a "plain text" editor. I recommend Notepad++ which will colour code your code for you, making reading it easier.
Offline
Venazard wrote:
rshapiro wrote:
Venazard wrote:
What I do is I just put a Play icon before the entire project. So, when they click it, it begins.Thanks for this but can you explain further? What do you mean by a Play icon? As well, I'd like to put more than one project ion the page and don't want them all starting at the same time; I need to play them individually.
I mean "Play icon" as a sprite in front of a title. You know, the white triangle. It would use the same concept as a Youtube video for example. You can start when you press Play. Does that help, or am I still unclear?
Ah, I see. I thought you meant on the web page itself. Unfortunately, I have 50 student projects to post and to go add this to all of them would be impossible with the time constraints I have. Thank you, though.
If there is any command I could add to the page or some config file I could change, that would be the perfect solution.
Offline
nick wrote:
Hi!
Htm and test the code, it works fine but the applet is very small, how increase their size?, I tried to change into the labels "heignt" and "wide", but still the same size.
Thanks for your help
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
Offline
How do I make it where people can't open or copy files from the CD but can still play the game?
when gf clicked repeat until <(timer) > [10]> go to [mouse-pointer v] end think [Scripts in your posts!] for (3) secs
Offline
pamayat wrote:
nick wrote:
Hi!
Htm and test the code, it works fine but the applet is very small, how increase their size?, I tried to change into the labels "heignt" and "wide", but still the same size.
Thanks for your help
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
Why did you post this without you saying anything?
Offline