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)
Offline
You have to run it on a local server.
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?
Offline