Skip to content

Development Overview

notSafeForDev edited this page Nov 16, 2021 · 4 revisions

Two versions are being developed in parallel, the Actionscript 3.0 (AS3) version, and the Actionscript 2.0 (AS2). Actionscript is the programming language that is used for creating flash games, and either version can only run flash games written in the corresponding language.

In order to keep feature parity and avoid rewriting the entire application twice, a simple Node.js based transpiler have been made, along with a core library which provides near identical functionality in both AS2 and AS3.

To use the transpiler, you will need to have Node installed. If you're on windows, you can run the transpile.bat found in the root of the project. You can also run the node script directly by opening command prompt/terminal, navigating to the root and run:

node transpile

When it comes to writing and debugging the code and compiling the project, FlashDevelop is recommended as it was made specifically for flash development. For VSCode there is the Actionscript & MXML extension. However, I didn't get around to using it, so I don't know how well it works.

 

Troubleshooting

FlashDevelop

It closes as soon as you open the program: Try opening a different script file through the folder.
When attempting to test the project, it gives you an error: Exception: The process cannot access the file ... because it is being used by another process: This usually happens if you get an exception before the flash player opens. To fix it, end the flash player process through the task manager (windows) or activity monitor (mac).
The flash player process doesn't appear in the task manager: Click the stop button near the test button.
Logs doesn't appear in the output panel: Make sure that you have changed it from Release to Debug mode, at the top.

Clone this wiki locally