SkillAgentSearch skills...

Java2as3

Convert Java sources to Actionscript 3

Install / Use

/learn @raff/Java2as3
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

Convert Java source code to ActionScript 3

  • Convert java syntax to ActionScript syntax (i.e. 'int i=0;' becomes 'var i:int=0;'
  • Convert basic java objects to ActionScript equivalents (native types, String, Exception, Map, etc.)
  • Convert overloaded methods to "uniquely named" methods (original-name$hash)
  • Convert variable names that are ActionScript reserved words to non-reserved words (i.e. 'in' becomes 'jas$in')
  • etc.

To build, just run ant. A single "executable" jar file will be produced, that can be run as:

java -jar Java2AS3.jar -i <java-source-dir>

Where <java-source-dir> is a folder containing the original java source code.

After building you can run some tests as:

ant test

The resulting ActionScript files are in the as3 folder.

View on GitHub
GitHub Stars13
CategoryDevelopment
Updated6mo ago
Forks2

Security Score

67/100

Audited on Sep 10, 2025

No findings