I have an urgent request. As part of an AIR browser I am building for a project, I need to intercept HTTP requests (via clicked hyperlinks, submitted forms, etc.) made from pages I have loaded into an HTMLLoader component, in order to have my browser decide how to open those requested pages. The difficulty is nicely summed up by the feature request at http://bugs.adobe.com/jira/browse/SDK-12168
. Once I've opened an html page in an HTMLLoader, I need navigation within that HTMLLoader to be "overridable". The problem is that the location_change event appears to be sent after the HTTP request is transmitted, and not before. On top of that, once the request is transmitted, calls to cancelLoad() fail. According to the 2nd contributor to the feature request above, this behaviour is "fixed"; however, I have been unable to get this to work.
Initially, i was working in Flash CS3, but when thwarted, attempted the same thing in Flex, with the same result. This doesn't really surprise me, since the problem would appear to be with when AIR transmits the location_change event...
If anyone has come up with a workaround for this issue (or can simply demonstrate to me how I should do this) then I would hugely appreciate it, because time is growing short for me now! Ideally, I'd like to build this entirely in Flash, but if this isn't possible, then Flex it is. It seems like such a simple request, and is definitely how the location_change event SHOULD act (in my opinion), that I can't believe this isn't going to be possible. :o(