This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2013-01-31 06:01:17

WindozeNT
Scratcher
Registered: 2010-06-05
Posts: 1000+

Getting the Scratch SWF to play offline

I'm trying to get the Flash player to work locally instead of on the Scratch server. When loading the file directly, through EMBED or OBJECT tags, or by using JavaScript, I am unable to get the SWF to work and load a locally-saved project. The URL for the player is http://scratch.mit.edu/static/misc/Scratch.swf and downloads without error. Accessing it through that URL shows the player, but accessing it when saved locally produces a white screen and nothing else. It will not go past that point but Flash seems to have completely loaded it. I can't access the ../static/misc/ directory because it will produce a 403 Forbidden error and the project viewer page only references the SWF file. I decompiled the SWF and looked at the source, and it appears the SWF makes no calls to any external file outside of the SB project file (to my knowledge).
I downloaded the JAR for the Java player and it plays offline perfectly, it's just the Flash player giving me problems. How can I make the Flash player work completely offline?

EDIT: I've noticed that giving the parameters to the SWF when accessing it directly by using query strings a la PHP work when using the server's copy, but the exact same code doesn't work on the local file. What does the SWF file need to work, or are there URLs hardcoded into the SWF itself causing it to not work?

Last edited by WindozeNT (2013-01-31 06:41:31)


http://i48.tinypic.com/rlyo80.png
Ever since Misc was killed, I've pretty much stopped going to Scratch Forums...

Offline

 

#2 2013-01-31 09:18:33

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Getting the Scratch SWF to play offline

You have to run it on a local server.


Posts: 20000 - Show all posts

Offline

 

#3 2013-02-01 01:41:02

WindozeNT
Scratcher
Registered: 2010-06-05
Posts: 1000+

Re: Getting the Scratch SWF to play offline

veggieman001 wrote:

You have to run it on a local server.

That got it working! Why does the SWF rely on a server in order to run?


http://i48.tinypic.com/rlyo80.png
Ever since Misc was killed, I've pretty much stopped going to Scratch Forums...

Offline

 

#4 2013-02-01 09:46:48

veggieman001
Scratcher
Registered: 2010-02-20
Posts: 1000+

Re: Getting the Scratch SWF to play offline

I don't know, actually.


Posts: 20000 - Show all posts

Offline

 

Board footer