This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.
  • Index
  •  » Advanced Topics
  •  » ITopic: Are there ways to share your creation other than the website?

#1 2007-05-15 11:29:39

ms-r
Scratcher
Registered: 2007-05-15
Posts: 2

ITopic: Are there ways to share your creation other than the website?

Hi,

I'd really like to use Scratch for development of sketches to use in my eLearning pieces for work. What would be ideal would be if Scratch allowed me to export to an swf flash file. It looks like I can only point people at the web site though which isn't ideal as I'd want to put content in that is confidential.

Is this something I can do now or something in development for the future?

Many thanks.

MS-R

Last edited by coolstuff (2010-07-14 17:33:20)

Offline

 

#2 2007-05-15 23:17:04

nick
Scratcher
Registered: 2007-03-05
Posts: 19

Re: ITopic: Are there ways to share your creation other than the website?

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

Offline

 

#3 2007-05-16 07:39:33

johnm
Scratcher
Registered: 2007-03-08
Posts: 100+

Re: ITopic: Are there ways to share your creation other than the website?

Hi!

In addition to what Nick wrote, you can also run your Scratch projects from a CD. Just put your projects plus the following files on a CD:

       Scratch.exe
       Scratch.image
       Scratch.ini
       ScratchPlugin.dll
       Mpeg3Plugin.dll
       license.txt

If will you need to run the CD on Mac's, you should also add the file:

       Scratch.app

which you can get from the Macintosh version of Scratch.

To run a project off the CD, double-click on Scratch.exe (or Scratch.app), then click the "open" button and pick your project.

I hope that helps!

  -- John

Offline

 

#4 2007-05-17 18:40:19

ms-r
Scratcher
Registered: 2007-05-15
Posts: 2

Re: ITopic: Are there ways to share your creation other than the website?

That's really helpful thank you. In an ideal world I'd love these presentations to be convertible to swf - not possible?

smile

Offline

 

#5 2007-05-17 21:49:23

Bridges-PdP
Scratcher
Registered: 2007-05-15
Posts: 9

Re: ITopic: Are there ways to share your creation other than the website?

Here's a bit more info along the lines of your SWF query.

http://scratch.mit.edu/forums/viewtopic.php?id=244


Scott

Offline

 

#6 2007-05-22 11:07:42

stephenbrim
Scratcher
Registered: 2007-05-21
Posts: 2

Re: ITopic: Are there ways to share your creation other than the website?

I could not download those file---got a fatal something error--any ideas

Offline

 

#7 2007-05-22 12:29:58

Robert-1478
Scratcher
Registered: 2007-05-22
Posts: 1

Re: ITopic: Are there ways to share your creation other than the website?

Hey,

i would like to use scratch for some of my projects, plus i have a few good ideas so could i be an idea manager or something. thank you.

   robert

Offline

 

#8 2007-05-22 12:30:06

redware
Scratcher
Registered: 2007-05-21
Posts: 92

Re: ITopic: Are there ways to share your creation other than the website?

Using the html for the applet works fine from my hard disk but not from my webserver (which is locked down to allow only ports 80 and 443). The applet appears with the loading bar which justs stands still. Am I doing something wrong ?

Offline

 

#9 2007-05-23 22:18:08

andresmh
Scratch Team at MIT
Registered: 2007-03-05
Posts: 1000+

Re: ITopic: Are there ways to share your creation other than the website?

I would suggest hosting the Scratch project on the Scratch website and just linking to it from your website. One of the members of the community (xyxzergames) was able to do it by following the instructions on:
http://scratch.wik.is/Publishing_your_Scratch_projects_on_other_websites

This is xyxzergames home page:
http://xyxzer.bravehost.com/scratchpad/Use%20Online.html


Andres Monroy-Hernandez | Scratch Team at the MIT Media Lab
on identi.ca and  twitter

Offline

 

#10 2007-05-24 05:03:39

redware
Scratcher
Registered: 2007-05-21
Posts: 92

Re: ITopic: Are there ways to share your creation other than the website?

Thanks, but that is a so-so solution. I am thinking of using scratch in a school computer club and some of the projects look like they get quite big. It would be nicc to host locally on a webserver and avoid eating up too much bandwidth.

The test web page (http://web.media.mit.edu/~nbushak/test.html) works fine. It is fine off my hard disk, but not off the server. Perhaps it is my browser configuration although I do notice a bit of additional javascript on the scratch server. Am I missing something ?

Offline

 

#11 2007-05-24 05:11:51

Janus
Scratcher
Registered: 2007-05-17
Posts: 2

Re: ITopic: Are there ways to share your creation other than the website?

Many thanks to Nick, embedding worked for me.
But… not able to get sound. Message = “No Sounbank . Which there was.
Do I need some additional code?

Offline

 

#12 2007-05-24 08:25:20

Janus
Scratcher
Registered: 2007-05-17
Posts: 2

Re: ITopic: Are there ways to share your creation other than the website?

Me again. I am OK with it now. I think the drum sound I used in the original one is not in the soundbank.

Offline

 

#13 2007-05-24 08:35:22

bibbleycheese
Scratcher
Registered: 2007-05-24
Posts: 2

Re: ITopic: Are there ways to share your creation other than the website?

I'm also trying to host Scratch programs on our webserver. We're a primary school, and it would be nifty to be able to showcase pupils work without having them all start their own  Scratch accounts.
I added the JAR and Soundbank files to our server and set up a test page in html.
The test page I created shows the bare scratch applet window, but gets stuck at the point of loading the testproject.sb file I put in the same web folder.
Any suggestions?  neutral

Offline

 

#14 2007-05-24 09:13:36

Duncan
Scratcher
Registered: 2007-05-15
Posts: 47

Re: ITopic: Are there ways to share your creation other than the website?

bibbleycheese wrote:

The test page I created shows the bare scratch applet window, but gets stuck at the point of loading the testproject.sb file I put in the same web folder.
Any suggestions?  neutral

Is this true for all browsers?  I initially had this problem (on a Mac) with FireFox although Safari would load it without a problem.  Without adjusting anything it seems to have automagically resolved the problem and now loads into FireFox etc. too.

Offline

 

#15 2007-05-24 16:56:56

bibbleycheese
Scratcher
Registered: 2007-05-24
Posts: 2

Re: ITopic: Are there ways to share your creation other than the website?

Here you are, a link to the web page I am working on http://www.crockhamhill.kent.sch.uk/scratch/index.htm
I've tried viewing this in Internet explorer and Firefox on different PCs and for me the result is the same - the Scratch applet launches, begins loading the .sb file, then sticks.
I don't know what I'm doing wrong here  sad  but maybe someone clever out there can spot my problem?
Interestingly enough, I've been trying to view uploaded projects on the main Scratch site this evening using a friend's AOL browser. We found the files seemed to get stuck, but would launch if you clicked the link for a particular file a second time.
I did wonder if there are variations in the way JAVA handles the applet, and whether in my situation Java was caching parts of downloaded files and causing a blockage?
Anyway, when I got home I tried refreshing the page but still no go. Am I doing something obviously wrong?

Offline

 

#16 2007-05-24 17:57:38

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: ITopic: Are there ways to share your creation other than the website?

Try 2 things:
1) eliminate the codebase="http://www.crockhamhill.kent.sch.uk" line
2) replace ../testproject.sb  with testproject.sb

I think the second thing is your problem---you are trying to go up a directory to find testproject.sb, and that isn't where it is.

Offline

 

#17 2007-06-18 19:17:24

Spence
Scratcher
Registered: 2007-06-18
Posts: 14

Re: ITopic: Are there ways to share your creation other than the website?

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.

Offline

 

#18 2007-06-27 21:19:43

flickenmaste
Scratcher
Registered: 2007-06-27
Posts: 10

Re: ITopic: Are there ways to share your creation other than the website?

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.mit.edu/pages/embed

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 see what u are saying but i still dont get how u make it into a HTML file.

Offline

 

#19 2007-07-09 05:00:15

Art
Scratcher
Registered: 2007-05-18
Posts: 2

Re: ITopic: Are there ways to share your creation other than the website?

I am have uploaded my sb file (SpaceInvaders.sb) to a web server along with invaders.html, soundbank.gm and ScratchApplet.jar

http://www.goglebe.co.uk/scratch/invaders.html

It just sticks on the loading screen. Any suggestions?

Please help!

Art

Offline

 

#20 2007-07-09 09:45:07

andresmh
Scratch Team at MIT
Registered: 2007-03-05
Posts: 1000+

Re: ITopic: Are there ways to share your creation other than the website?

I checked and you don't have your sb file in the same directory. I tried going here http://www.goglebe.co.uk/scratch/SpaceInvaders.sb and it returned "page not found"


Andres Monroy-Hernandez | Scratch Team at the MIT Media Lab
on identi.ca and  twitter

Offline

 

#21 2007-07-12 05:41:26

Art
Scratcher
Registered: 2007-05-18
Posts: 2

Re: ITopic: Are there ways to share your creation other than the website?

andresmh wrote:

I checked and you don't have your sb file in the same directory. I tried going here http://www.goglebe.co.uk/scratch/SpaceInvaders.sb and it returned "page not found"

The file is definitely there. I have checked with my ftp software. Does the webserver have to have .sb as a recognised MIME type before it will allow users to get the file?

Art

Offline

 

#22 2007-07-12 13:11:54

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: ITopic: Are there ways to share your creation other than the website?

have you checked to make sure that the .sb file is publically readable?  web servers can only access publically readable files.

Offline

 

#23 2007-07-13 11:50:00

andresmh
Scratch Team at MIT
Registered: 2007-03-05
Posts: 1000+

Re: ITopic: Are there ways to share your creation other than the website?

You shouldn't have to set the Mime Type to anything specific. Our website does set the MimeType but that is just so when an .sb file is clicked it opens in Scratch.


Andres Monroy-Hernandez | Scratch Team at the MIT Media Lab
on identi.ca and  twitter

Offline

 

#24 2007-07-14 04:06:55

loopylew456
Scratcher
Registered: 2007-07-14
Posts: 6

Re: ITopic: Are there ways to share your creation other than the website?

Is there anyway I can convert Scratch projects to exe files?

Offline

 

#25 2007-07-14 13:28:39

kevin_karplus
Scratcher
Registered: 2007-04-27
Posts: 1000+

Re: ITopic: Are there ways to share your creation other than the website?

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.

Offline

 
  • Index
  •  » Advanced Topics
  •  » ITopic: Are there ways to share your creation other than the website?

Board footer