forked from scratchfoundation/scratch-flash
-
Notifications
You must be signed in to change notification settings - Fork 0
Development and Testing
Jesse Jurman edited this page Mar 31, 2015
·
19 revisions
##Installing
- install 32 bit java (ensure that it is listed on your path)
- install node
- in the root directory, run
npm install
npm run build
- Launch in your browser of choice
bin\scratch.swf
if it fails, try cloning the repo again and doing a fresh npm install
##Debugging (in IntelliJ and Chrome)
- Navigate to
chrome://plugins/
- Disable Adobe Flash Player
- Install the debug version for Chromium and Opera here: http://www.adobe.com/support/flashplayer/downloads.html
- Navigate to
chrome://plugins/
- Expand the details tab (located at the top right of the table)
- Make sure that the Chrome Flash player (under
Google\Chrome\Applications\...
) is disabled, and the one undersystem32\Macromed\Flash\...
is enabled.
You can follow these instructions here specifically, under Managing build configurations and their settings
- Open the project as a folder in IntelliJ
- Open the Project Structure dialog (
ctrl+shift+alt+s
) - Under Project Settings, select Modules
- Remove the already existing accessible-scratch folder (this won't delete your folders)
- Select Add > New Module
- Use the following settings
- If you need to add the flex sdk, first click the
...
near Flex/AIR sdk - Add a new Flex/AIR sdk, and select the following directory in the file browser:
\accessible-scratch\node_modules\flex-sdk\lib\flex_sdk
- Click OK to continue with the settings page in step 5.
- Name the module accessible-scratch (and delete the preceding version of the name in the directories)
- You'll need to edit some settings for the modules, under Project Structure, set the Main class to Scratch and the Output folder to
...\accessible-scratch\bin
- Make sure you have all of the following dependencies listed below in the dependencies tab.
- Under the compiler options for the module, add the conditional compiler options for SCRATCH::allow3d, which you can set to
true
- Paste the following text under Additional compiler options
--static-link-runtime-shared-libraries=true --accessible