Send/receive signals to Arduino from Mac OSX

I want to write a Adobe Flash program that can send and receive signals from the Arduino connected to my Mac via the USB port. What's the easiest way to do this?

Thanks!

Flash needs to be able to open a serial port.

This demo code in Python should give you the idea.

...R