GithubHelp home page GithubHelp logo

benleo / scratch-mobile Goto Github PK

View Code? Open in Web Editor NEW

This project forked from elfin8er/scratch-mobile

0.0 2.0 0.0 8.49 MB

License: GNU General Public License v2.0

Groovy 0.02% ActionScript 99.98%

scratch-mobile's Introduction

Scratch 2.0 Compiled For Mobile

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.

Based off of Scratch 2.0 by MIT: http://scratch.mit.edu

Scratch Forums Topic

Building

To build Scratch 2.0 for mobile 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.

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.

Create a local.properties file to set the required options. Your local.properties file may look something like this:

FLEX_HOME=/Users/elfin8er/Downloads/flexsdk
SCRATCH_HOME=/Users/elfin8er/Documents/Programming/ScratchMobile/scratch-flash
android.certificate.password=PASSWORD
ios.certificate.password=1234

bin.ext=.bat
certificates.path=${SCRATCH_HOME}/certificates
ios.provision.path=${certificates.path}/Scratch_iOS.mobileprovision
ios.certificate.path=${certificates.path}/Scratch_iOS.p12
android.certificate.path=${certificates.path}/Scratch_android.p12

I have included iOS and Android certificates, but if you'd like to use your own, you can define their locations above. You can create an Android certificate with the following command:

keytool -genkey -v -keystore myname.key.p12 -alias alias_name -keyalg RSA -storetype pkcs12 -keysize 2048 -validity 10000

Now you can run Ant ('ant' from the commandline) to build a 11.6 SWF, 10.2 SWF, APK, and iPA.

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:

scratch-mobile's People

Contributors

sclements avatar cwillisf avatar nathan avatar doyousketch2 avatar andersbilllinden avatar elfin8er avatar cpseager avatar rgbd avatar idreyn avatar scratch-ro avatar mewtaylor avatar natecraddock avatar rschamp avatar arturocastellon avatar la10736 avatar togazo avatar

Watchers

benleo avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.