Instead of # (hash anchoring), use an unknown protocol for window.location.
Example: window.location="unknown:/and_add_here_your_method_info".
Adobe Air can trap that through LocationChangeEvent.LOCATION_CHANGE or LOCATION_CHANGING.
Notes for iOS: Also listen to EventError.Error. In my case using Adobe Air 3.4, the value of window.location is being passed to EventError.text. So also check on that.