Discuss Scratch
- Discussion Forums
- » Open Source Projects
- » Scratch 2.0: How do I load local projects
- fezzinate
-
Scratcher
100+ posts
Scratch 2.0: How do I load local projects
I've successfully set up my dev environment for Scratch, and it's been a lot of fun tinkering with it, but I haven't found a way to load projects from my local disk. Can anyone help me out with this?
-Dan
-Dan
- _nix
-
Scratcher
1000+ posts
Scratch 2.0: How do I load local projects
Welp. This is the problem I knew I ran into ages ago..
I'd also like to know this – putting the SWF on a server (read: python -m SimpleHTTPServer) doesn't seem to work.
Time to search the source code!
EDIT: Okay, so putting it on a server will actually prevent loadProject from working:
..but it doesn't work when it's offline, anyways.. hmm..
EDIT #2: Removing that extra check fixed it! Tested on a local server it works fine. You'll want to remove that
I'd also like to know this – putting the SWF on a server (read: python -m SimpleHTTPServer) doesn't seem to work.
Time to search the source code!
EDIT: Okay, so putting it on a server will actually prevent loadProject from working:
if (projectToInstall != null && (app.isOffline || app.isExtensionDevMode)) {
EDIT #2: Removing that extra check fixed it! Tested on a local server it works fine. You'll want to remove that

Last edited by _nix (Dec. 6, 2016 00:17:12)
- Discussion Forums
- » Open Source Projects
-
» Scratch 2.0: How do I load local projects

