I was wondering if there's any semi-easy way I get the Flash player running offline (i.e. on projects stored locally). I've decided I like it best in general, and since 2.0 will by Flash-based, it makes all the more sense to make that my "target" platform. (To be clear, I'm talking about 1.4 version though, not the prototype.) I know I've seen instructions for hosting Scratch projects on your own site (which is basically equivalent to what I want), but they were targeted at the Java player.
I did make a brief attempt at doing this on my own, but I just ended up with a black rectangle.
Offline
Okay, the main problem is that as far as I could tell, there's no way to get it working without a web server. So you'll need a little web server of some kind. I used TinyWeb, which is a free Windows web server that only requires minimal setup.
Then, whatever folder you can configured to be the root directory for the web server, put three things in it:
* PlayerOnly.swf (right-click, Save as...)
* Your project saved as test.sb
* A text file named index.html containing this text:
<html><head><title>Flash Player</title></head><body><hr> <object id="flashplayer" style="display: inline; visibility: visible; position: relative; z-index: 1000;" type="application/x-shockwave-flash" data="PlayerOnly.swf" height="387" width="482"> <param name="allowScriptAccess" value="sameDomain"> <param name="allowFullScreen" value="true"> <param name="flashvars" value="project=test.sb"> </object> <hr></body></html>
Make sure your web server is running, then open your browser and type "localhost" into the address bar. If everything worked, you should see two lines, and your project between them.
If you only see two lines, or if you get an error, something didn't work.
One thing that seemed to be important is that I used a full path when I told tinyweb what to use as the root directory. Meaning "C:\blah\blah\blah\my folder\", not ".\my folder". If I did it the second way the web page would appear, but the player wouldn't work. If you don't mind doanloading an extra thing, there's a frontend called TinyBox, that will take care of this for you.
P.S. Your project doesn't really have to be named test.sb, but if not you'll need to change the name near the end of the html file to match.
Good luck.
Last edited by ManaUser (2012-05-26 11:03:42)
Offline