Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Hosting Scratch 2.0 SWF on your own server.
- __init__
-
Scratcher
1000+ posts
Hosting Scratch 2.0 SWF on your own server.
…how can I send it to you? It's an AppleScript - based Mac application, so it will only work if you have a Mac. You have to download the Flex mxmlc compiler or it won't work.I don't have a mac but I'd like it anyways…
https://dbinbox.com/__init__
- develop_now
-
New Scratcher
2 posts
Hosting Scratch 2.0 SWF on your own server.
I programmed a converter that displays a dialog where you choose an sb2 and then it saves it to swf.@junebeetle
I would love to tinker around with this converter! Could you please send me it at (removed by moderator - please don't share personal contact information)?
Last edited by Paddle2See (Feb. 24, 2015 23:28:29)
- junebeetle
-
Scratcher
100+ posts
Hosting Scratch 2.0 SWF on your own server.
Yes, sure!I programmed a converter that displays a dialog where you choose an sb2 and then it saves it to swf.@junebeetle
I would love to tinker around with this converter! Could you please send me it at (removed by moderator - please don't share personal contact information)?
Last edited by Paddle2See (Feb. 24, 2015 23:29:28)
- xooxlor
-
Scratcher
76 posts
Hosting Scratch 2.0 SWF on your own server.
It actually probably wouldn't violate the Scratch license, but it might violate the Flex one. I'm not really sure. I'm not really clear on what you can and can't distribute…you can distribute text… place the sourcecode on pastebin then we compile it ourselfs
- junebeetle
-
Scratcher
100+ posts
Hosting Scratch 2.0 SWF on your own server.
You're right… thanksIt actually probably wouldn't violate the Scratch license, but it might violate the Flex one. I'm not really sure. I'm not really clear on what you can and can't distribute…you can distribute text… place the sourcecode on pastebin then we compile it ourselfs

I will put the source online once my website is running.
- junebeetle
-
Scratcher
100+ posts
Hosting Scratch 2.0 SWF on your own server.
Our school district has a terrible internet connection. To have 120 students using Scratch on an unreliable WAN connection is just the worst.You're a genius
Question: How can we upload Scratch 2.0 to our local LAN webserver rather than the scratch.mit.edu server? This was easy enough with Scratch 1.4 and the applet tag.
Many people are looking for a way to convert an sb2 to an swf. That's the wrong idea. scratch.swf is a complete editor AND viewer. It simply loads sb2 files via flashvars.
- Download the Scratch 2.0 offline editor. (http://scratch.mit.edu/scratch2download/)
- Save your project – make sure you put a sb2 extension on it. If your project is online, you can pull down the sb2 as well.
- Download scratch.swf, swfobject.js, expressInstall.swf – you'll need to host these locally.
- Edit the code below. Change lightning.sb2 to the name of your file. I'm not going to give a lesson on swfobject – there's tons of documentation on it.
I've deactivated our WAN to make sure it works. scratch.swf will attempt to dial home for crossdomain.xml and language settings but those are not critical.
<script type=“text/javascript”>
var flashvars = {
project: “lightning.sb2”,
autostart: “false”
};
var params = {
bgcolor: “#FFFFFF”,
allowScriptAccess: “always”,
allowFullScreen: “true”,
wmode: ‘window’,
menu: ‘false’
};
var attributes = {};
swfobject.embedSWF(“scratch.swf”, “flashContent”, “100%”, “100%”, “10.2.0”,“expressInstall.swf”, flashvars, params, attributes);
</script>
<div id=“flashContent” width=“482px” height=“387px”>
Get <a href="http://www.adobe.com/go/getflash">Adobe Flash Player</a>, otherwise this Scratch movie will not play.
</div>

- junebeetle
-
Scratcher
100+ posts
Hosting Scratch 2.0 SWF on your own server.
sites.google.com/site/junebeetle23
- jenekbumburum
-
Scratcher
100+ posts
Hosting Scratch 2.0 SWF on your own server.
It actually probably wouldn't violate the Scratch license, but it might violate the Flex one. I'm not really sure. I'm not really clear on what you can and can't distribute…Can you ask Adobe?
- junebeetle
-
Scratcher
100+ posts
Hosting Scratch 2.0 SWF on your own server.
It won't violate any licenses. I've checked now. You can download it from my site: sites.google.com/site/junebeetle23It actually probably wouldn't violate the Scratch license, but it might violate the Flex one. I'm not really sure. I'm not really clear on what you can and can't distribute…Can you ask Adobe?
- junebeetle
-
Scratcher
100+ posts
Hosting Scratch 2.0 SWF on your own server.
OK. I've got it figured out. sites.google.com/site/junebeetle23
- FateForWindows
-
Scratcher
71 posts
Hosting Scratch 2.0 SWF on your own server.
+2000000000000000000000000000000 (1 nonillion)WOW+222200+1
- finn55
-
Scratcher
79 posts
Hosting Scratch 2.0 SWF on your own server.
How the…
Last edited by finn55 (June 14, 2015 12:39:49)
- liam48D
-
Scratcher
1000+ posts
Hosting Scratch 2.0 SWF on your own server.
It's his VPN speed.How the…

- junebeetle
-
Scratcher
100+ posts
Hosting Scratch 2.0 SWF on your own server.
You can see how I did it here. Apologies for the horrid design, I coded that site a while back.Nice job!
And a very good project.
So… if I understand the source of your website, you set the variables in the flash object from the HTML? I didn't know you could do that!
- Discussion Forums
- » Advanced Topics
-
» Hosting Scratch 2.0 SWF on your own server.











