It used to be ForPlay but now it's PlayN. The basic idea is you write Java and it can output Java desktop, HTML5, Android, Flash, but I heard the flash export was broken?
Last week someone did a major fix to flash export, I haven't tested yet since it's not in the maven central repo yet, but if you use source code in google code, maybe you could test the state of flash now.