Something to allow “Writing flex without ActionScript”, or “Java to AVM2 compiler”, or “Write Flex using Java” exists?

StackOverflow https://stackoverflow.com/questions/1965989

Question

There are many dynamic languages that target Sun's JVM (Groovy, Scala, Jython, Jruby etc) and I was sure there are many that target Adobe's AVM as well. But I was surprised to find only Haxe do something similiar. related question on this site

I think the eclipse e4 SWT project doesn't compile to ABC (ActionScript Byte Code) directly, but first converts Java to AS3 and then the Flex compilter does the rest.

Could it be that no one yet wrote a simple Java / Python / Scala AVM2 compiler that can be used as an alternative to the proprietary Adobe Flash Builder (formerly Flex Builder)?

I don't mind paying Adobe for a fine producy, but writing Java in Eclipse is so much faster and convinent than the half baked Adobe plugin suite. are there really no efforts other than Haxe?

Was it helpful?

Solution

OTHER TIPS

I don't mind paying Adobe for a fine producy, but writing Java in eclipse is so much faster and convinent than the half baked adobe plugin suite.

mxmlc (the Flex compiler) is free and open source and available as part of the Flex SDK. It compiles actionscript 3 to swf. If you want an IDE with the same level of support as writing Java in Eclipse then you will want FDT which unfortunately isn't free but is far superior to Adobe's Flex/Flash Builder. You could also use Flash Develop which is a very capable and free IDE for flash development.

AS3 is a nice language in it's own right and can compare favorably to Java (although some newer Java features like generics are sadly missing). So learning it wouldn't be "re-inventing the wheel" so much as adding another bow to your development skills quiver.

But if you are insistent on wanting to write Java code and produce swf files then I think that Joa's work that James linked to above is your best bet. I'm not sure if he has released all the parts publicly yet though...

I found out that adobe started to do something similar (but for C++): http://labs.adobe.com/technologies/alchemy/

Also this one (C# compiler) but it seems to be obsolete: http://blog.bluetubeinteractive.com/2005/05/c_to_swf_compil.html

And there is an apparently abandoned Java Implementation: http://osflash.org/j2as

But I'm still looking for a working Java to AVM2 implementation... Anyone? :)

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top