Compilers for compiling AS 3.0 to ActionByteCode

Hi All,
Can anyone suggest me a good compiler for compiling the as3.0 code to action bytecode. I tried using asc.jar which comes with flex builder. But i was not able to compile the actionscript method which i wrote. Also let me know how to use asc.jar to compile the actionscript3.0.

The compiler has to be based on java.

Please help me out.

Thanks in advance,
Prabakaran Srinivasan.