Discuss Scratch

__init__
Scratcher
1000+ posts

Hosting Scratch 2.0 SWF on your own server.

junebeetle wrote:

…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__
junebeetle
Scratcher
100+ posts

Hosting Scratch 2.0 SWF on your own server.

Cool
develop_now
New Scratcher
2 posts

Hosting Scratch 2.0 SWF on your own server.

junebeetle wrote:

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.

develop_now wrote:

junebeetle wrote:

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)?
Yes, sure!

Last edited by Paddle2See (Feb. 24, 2015 23:29:28)

xooxlor
Scratcher
76 posts

Hosting Scratch 2.0 SWF on your own server.

junebeetle wrote:

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.

xooxlor wrote:

junebeetle wrote:

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
You're right… thanks
I will put the source online once my website is running.
junebeetle
Scratcher
100+ posts

Hosting Scratch 2.0 SWF on your own server.

j90009000 wrote:

Our school district has a terrible internet connection. To have 120 students using Scratch on an unreliable WAN connection is just the worst.
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.

  1. Download the Scratch 2.0 offline editor. (http://scratch.mit.edu/scratch2download/)
  2. 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.
  3. Download scratch.swf, swfobject.js, expressInstall.swf – you'll need to host these locally.
  4. 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>
You're a genius
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.

junebeetle wrote:

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.

jenekbumburum wrote:

junebeetle wrote:

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?
It won't violate any licenses. I've checked now. You can download it from my site: sites.google.com/site/junebeetle23
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
Gaza101
Scratcher
500+ 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.
FateForWindows
Scratcher
71 posts

Hosting Scratch 2.0 SWF on your own server.

TeslaTech wrote:

tagggz wrote:

MegaApuTurkUltra wrote:

djdolphin wrote:

+1
+222200
WOW
+2000000000000000000000000000000 (1 nonillion)
finn55
Scratcher
79 posts

Hosting Scratch 2.0 SWF on your own server.

DigiTechs wrote:

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.

finn55 wrote:

DigiTechs wrote:

How the…
It's his VPN speed.
junebeetle
Scratcher
100+ posts

Hosting Scratch 2.0 SWF on your own server.

Gaza101 wrote:

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!
Galleigo
Scratcher
500+ posts

Hosting Scratch 2.0 SWF on your own server.



the meme is real

Powered by DjangoBB