Open source version of the Scratch 2.0 project editor. This is the basis for the online and offline versions of Scratch found on the website.
Find a file
Chris Willis-Ford 5156e7414d Add initial version of Gradle build files
Use `gradle build` to build the default variant, currently `New`.
Use `gradle build -Pvariant=Old` to build the `Old` variant.
`New` targets Flash 11.6 and `Old` targets Flash 10.2
2015-07-29 11:18:29 -07:00
.idea Add initial version of Gradle build files 2015-07-29 11:18:29 -07:00
gradle/wrapper Add initial version of Gradle build files 2015-07-29 11:18:29 -07:00
libs Moved basic extension support into scratch-flash 2015-06-26 10:57:43 -07:00
src Merge pull request #866 from LLK/fix_empty_png 2015-07-23 15:22:08 -04:00
tests Fixed tests/build.js by adding as3corelib.swc 2015-06-29 13:13:56 -07:00
.gitignore Add initial version of Gradle build files 2015-07-29 11:18:29 -07:00
.travis.yml change format for slack 2015-06-16 16:39:50 -04:00
build-common.xml Fixes for git-commit-id macro 2015-07-15 13:34:01 -07:00
build.gradle Add initial version of Gradle build files 2015-07-29 11:18:29 -07:00
build.properties Initial commit 2014-05-12 10:24:39 -06:00
build.xml Bump "new" build from Flash 11.4 to Flash 11.6 2015-07-15 14:35:36 -07:00
config.groovy Add initial version of Gradle build files 2015-07-29 11:18:29 -07:00
CONTRIBUTORS Initial commit 2014-05-12 10:24:39 -06:00
COPYING Initial commit 2014-05-12 10:24:39 -06:00
gradlew Add initial version of Gradle build files 2015-07-29 11:18:29 -07:00
gradlew.bat Add initial version of Gradle build files 2015-07-29 11:18:29 -07:00
package.json Added package caching and fixed 'main' in package.json. 2014-05-15 09:56:44 -06:00
README.md Wording changes 2015-02-19 12:46:43 -07:00
scratch-flash.iml Add initial version of Gradle build files 2015-07-29 11:18:29 -07:00
TRADEMARK_POLICY Initial commit 2014-05-12 10:24:39 -06:00

Scratch 2.0 editor and player Build Status

This is the open source version of Scratch 2.0 and the core code for the official version found on http://scratch.mit.edu. This code has been released under the GPL version 2 license. Forks can be released under the GPL v2 or any later version of the GPL.

If you're interested in contributing to Scratch, please take a look at the issues on this repository. Two great ways of helping Scratch are by identifying bugs and documenting them as issues, or fixing issues and creating pull requests. When submitting pull requests please be patient -- the Scratch Team is very busy and it can take a while to find time to review them. The organization and class structures can't be radically changed without significant coordination and collaboration from the Scratch Team, so these types of changes should be avoided.

It's been said that the Scratch Team spends about one hour of design discussion for every pixel in Scratch, but some think that estimate is a little low. While we welcome suggestions for new features in our suggestions forum (especially ones that come with mockups), we are unlikely to accept PRs with new features that we haven't deeply thought through. Why? Because we have a strong belief in the value of keeping things simple for new users. To learn more about our design philosophy, see this forum post, or this paper.

Building

To build the Scratch 2.0 SWF you will need Ant, the Flex SDK version 4.10+, and playerglobal.swc files for Flash Player versions 10.2 and 11.4 added to the Flex SDK. Scratch is used in a multitude of settings and some users have older versions of Flash which we try to support (as far back as 10.2).

After downloading playerglobal11_4.swc and playerglobal10_2.swc, move them to <path to flex>/frameworks/libs/player/<version>/playerglobal.swc. E.g., playerglobal11_4.swc should be located at <path to flex>/frameworks/libs/player/11.4/playerglobal.swc.

The build.properties file sets the default location for the Flex SDK. Create a local.properties file to set the location on your filesystem. Your local.properties file may look something like this:

FLEX_HOME=/home/joe/downloads/flex_sdk_4.11

Now you can run Ant ('ant' from the commandline) to build the SWF.

If the source is building but the resulting .swf is producing runtime errors, your first course of action should be to download version 4.11 of the Flex SDK and try targeting that. The Apache foundation maintains an installer that lets you select a variety of versions.

Please note that the Scratch trademarks (including the Scratch name, logo, Scratch Cat, and Gobo) are property of MIT. For use of these Marks, please see the Scratch Trademark Policy.

Debugging

Here are a few integrated development environments available with Flash debugging support: