Yes, it is possible from ActionScript to call a method in Java. To connect both project you can use BlazeDS http://en.wikipedia.org/wiki/BlazeDS
Here you can find a manual which explain step by step how to do a small example : blazeDS example.
Hope this helps!