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://scratch.wik.is/Publishing_your_S … 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
With that, can you post projects over 10MB on your own site?
Offline
ah, nevermind what I was talking about back there with markdown. I use html now. Wow, I thought I could do that with markdown before. just, wow...
Offline
I continue to have errors like that discussed above. I want to post my Scratch ap on my own server, not on scratch.mit.edu. I put .sb, .gm, .jar and .html on my server, launch .html. It loads then hangs. Here's the URL that does not work. (Note: fixed! see below)
http://primepuzzle.com/blog/labomba.html
I see the following error message in my Java Console:
Problem reading project from URL: "http://primepuzzle.com/blog/LA BOMBA! - Scratch.sb in openurl"
(Note: I should have realized what was wrong based on this error message! See below!)
Any help on this would be greatly appreciated! If I can get past this problem, I'll be in business!
Update July 26, 2009!
I have solved my problem! I am sooooo happy. Using spaces in .sb file names is *not* recommended. Things work OK locally when you do this, but not remotely. So ... all I needed to do was change LA BOMBA! - Scratch.sb to labomba.sb and it worked. If you really want spaces in your .sb names, in the .html file use %20 everywhere you want a space. For example
<applet id="ProjectApplet" style="display:block" code="ScratchApplet" archive="ScratchApplet.jar" height="387" width="482">
<param name="project" value=LA%20BOMBA!%20-%20Scratch.sb>
</applet>
Last edited by TinycTim (2009-07-26 06:31:47)
Offline
Glad you fixed it, TinycTim! And thanks for posting all this helpful information so that others can benefit from your experience.
Offline
Dear Lightnin -
Thanks back to you! It's always nice to get feedback like this, especially from a Scratch Team person. I'm a total newbie to Scratch, but already fascinated. I am actually a veteran computer programmer but this Scratch language is, what can I say, something else! I've just managed to write two embarrassingly minimal Scratch programs and it took me quite a while to get them to work. I still don't know how I managed to get an ask and a say block into a script for my sprite but I did.
http://primepuzzle.com/blog/say.html
Offline
Hi Nick
This worked well, but I wanted my .sb file to be centered on the web page. I've just found the solution:
<p align="center"><applet id="ProjectApplet" style="display: block;"
code="ScratchApplet" codebase="./" archive="ScratchApplet.jar"
height="387" width="482"><param name="project" value="testproject.sb">
</applet></p>
Jen
Last edited by Jennaroni (2009-08-01 07:15:18)
Offline
There are no longer separate pages for your images and your album. ... Other than that, the only thing that's required is a valid e-mail address. ..... They help you organize your creations and work basically the same way as folders. ..... I don't want people to be able to share my creations on other websites
Offline
http://scratch.mit.edu/forums/viewtopic.php?id=248
This will tell you how to Embed your project
Offline
is there any way to make the .sb file larger when displaying on a web page with this method? ie - when you set the width over the movie size, it's just white space - it doesn't "stretch" the movie like it might do a .swf file. i'm imagining this is set in the .jar file - is the .jar code open source?
any thoughts on enlarging the output movie would be great - i'd also like to hide the top controls but that's perhaps another issue...
thanks!
Offline
http://dav09.webs.com/h1.htm im not sure what 2 do?
Last edited by dav09 (2009-10-03 06:18:07)
Offline
indefinite number of ways, but the web is most easy in both outreach and audience. A creators ultimate objective is visibility by maximum viewers. But most essentially, to reach the right audience forums are the most appropriate tools.
Offline
techblob wrote:
is there any way to make the .sb file larger when displaying on a web page with this method? ie - when you set the width over the movie size, it's just white space - it doesn't "stretch" the movie like it might do a .swf file. i'm imagining this is set in the .jar file - is the .jar code open source?
any thoughts on enlarging the output movie would be great - i'd also like to hide the top controls but that's perhaps another issue...
thanks!
If you have an embedded project on another website you can edit the HTML code to change the width and Height, have a look at this code:
<applet id='ProjectApplet' style='display:block' code='ScratchApplet' codebase='http://scratch.mit.edu/static/misc' archive='ScratchApplet.jar' height='387']width='482'><param name='project' value='../../static/projects/jacool/702268.sb'></applet> <a href='http://scratch.mit.edu/projects/jacool/702268'>Learn more about this project</a>
Last edited by jacool (2009-10-20 09:14:04)
Offline
You may try TV if you are looking for other than web. :-)
Offline
May have been answered in the last 7 pages, but can't find it. I need a simple way to put a Scratch project in a folder or on CD so that someone without Scratch can see it.
Also, can these made into files that can be inserted into PowerPoint or Keynote? Thanks.
Offline
http://dav09.webs.com/Emailed/a.htm what will i do here? i have them all saved to my site and in the same folder(im using webs)
Last edited by dav09 (2009-10-24 13:38:27)
Offline
I really like this great form and can get lots of good idea about my html knowledge
[link removed by moderator]
Last edited by cheddargirl (2009-10-27 01:29:48)
Offline
There is a way to turn scratch to a exe!!! here is the address:
http://chirp.scratchr.org/dl/ChirpCompiler-setup.exe
or
http://www.chirp.scratchr.org/blog/?page_id=5
Last edited by Commico (2009-11-09 20:49:02)
Offline