this guy did all this stuff with flash and java...go to:
www.bit-101.com and then click "java" on the right, and play around with the stuff. its really really amazing, also, if you go to the lab (near the top of the main page) theres som really sweet stuff as well.