Last I checked, Flash doesn't expose any events about anything that's going on while the Flash script is running. That means your code will never know anyone typed in a field in Flash. Nor does it expose a button like Windows does. You can only "click" on a Flash window by sending a crafted MouseDown message, supplying mouse coordinates for the click, to the Flash window.
A guide to posting questions on CodeProject[^]
Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
2006, 2007, 2008
But no longer in 2009...