bug fixes for hit testing in flash and nme