views:

151

answers:

1

I'm porting an existing java library to actionscript and since they are both realy similar, 95% of the work is simply flipping variable and function definition around.

public int foo(int bar) {}
//converts to
public function foo(bar:int):void {}

Boring stuff.

Is there a tool to automate the transition between java syntax and actionscript? I'm not looking to compile java to swf, just transform the source code to be (often nonworking) actionscript.

+1  A: 

The first options returned by a quick Google search are J2AS and j2as3. Never tested though.

Pascal Thivent
I somehow missed those in google, but thanks, j2as3 does pretty much what i need.
sharvey