ExternalInterface -> Cocoa

Adobe Air is great. But it doesn’t do everything. Long ago, back in the Windows 2008 days, I used to program with VB. I remember it being easy to control the mouse. My guess is that it is still easy to control the mouse for VB in Cocoa. Is there some way to interface between Actionscript and Cocoa? Or does ExternalInterface only work with Javascript?