Discuss Scratch

New to Scratch
3 posts

Local webserver for Scratch editor

Hi all, we are looking to serve up the Scratch editor with one or two specific projects that we have students use. I've found a few threads on here and gotten much of the way there, but am stuck with a few items. I'm fine implementing the project in any of them, but can't seem to get over the finish line.

METHOD 1 - Using SB2 to SWF generator from http://junebeetle.github.io/converter
ISSUE: I can get the project and editor served via local web server, but the sprite library is completely empty
QUESTION: Is there a way to populate the library? Either with existing sprites, or my own that I would like the students to use? Having them upload sprites to the project each time is not feasible.

Screenshot of New Sprite button - http://andrewbinns.com/scratch/NewSprite.png
Screenshot of Empty Sprite Library =( - http://andrewbinns.com/scratch/SpriteLibrary.png

METHOD 2 - Using Post #6 from https://scratch.mit.edu/discuss/topic/42691 (essentially using an <object> tag to call it)
ISSUE: I can get the project to load, but not the editor.
QUESTION: What did I do wrong?

Screenshot of Project by itself with no editor - http://andrewbinns.com/scratch/ProjectOnly.png

METHOD 3 - Using Post #2 from https://scratch.mit.edu/discuss/topic/42691
ISSUE: I can't get it to load at all. HTML is pasted below (note, all references are to temporary Internet site. Will be moved to local site once complete).
QUESTION: What did I do wrong?

Screenshot of not working editor/project - http://andrewbinns.com/scratch/NotWorking.png

<!DOCTYPE html PUBLIC “-//W3C//DTD XHTML 1.0 Strict//EN” "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd“>
<html xmlns=”http://www.w3.org/1999/xhtml“ lang=”en“ xml:lang=”en“>
<title>SWFObject 2 static publishing example page</title>
<meta http-equiv=”Content-Type“ content=”text/html; charset=iso-8859-1“ />
<script type=”text/javascript“ src=”http://www.andrewbinns.com/swfobject.js“></script>

<script type=”text/javascript“>

var flashvars = {
project: ”http://www.andrewbinns.com/Adventure.sb2“,
autostart: ”false“

var params = {
bgcolor: ”#FFFFFF“,
allowScriptAccess: ”always“,
allowFullScreen: ”true“,
wmode: ‘window’,
menu: ‘false’

var attributes = {};

swfobject.embedSWF(”http://www.andrewbinns.com/Scratch.swf“, ”flashContent“, ”100%“, ”100%“, ”10.2.0“,”http://www.andrewbinns.com/expressInstall.swf“, flashvars, params, attributes);


<div id=”flashContent“ width=”500px“ height=”500px“>
Get <a href=”http://www.adobe.com/go/getflash">Adobe Flash Player</a>, otherwise this Scratch movie will not play.


Thank you!!
Mr. Irving

Last edited by Mr_Irving (March 20, 2017 17:28:01)

1000+ posts

Local webserver for Scratch editor

So ive gotten the editor work from a local webpage (download and unzip from my server at dl.captainwebservices.com/scratch/scratch.zip) but not the project to autoload. I'll look more at it tomorrow, its currently 10:33 PM where i am

Last edited by DatOneLefty (March 21, 2017 02:34:06)

Hey! Check out one of my websites!

Make a fun countdown
Play my game!

Check out my GitHub

Posts: bf97b44a7fbd33db070f6ade2b7dc549
Donate BTC: 1B1QuYiDHSkrw4KJjRvDbuLeeHU8pQ9b3s

Powered by DjangoBB

Standard | Mobile