Hi, I'm trying to implement deep linking via BrowserManager.  I've basically
emulated many of the examples on this topic, and I seem to be stuck getting
the BrowserChangeEvent.BROWSER_URL_CHANGE to fire.  When I change the URL
fragment in the address bar and hit enter, it does nothing.  If I breakpoint
the code in the handler for the event, I never hit it.

I'm using FB, and I generated the default HTML template.  It created the
history/history.css, historyFrame.html, history.js, etc.  I did not edit any
of the generated html template files.

The app's MXML header looks like this (disabled historyManagement)

<mx:Application
xmlns:mx="http://www.adobe.com/2006/mxml";
        xmlns:views="views"
historyManagementEnabled="false"
layout="absolute" >

<!-- Views __________________________________________________________ -->
    <views:MainUI/>

</mx:Application>

MainUI has this header:

<mx:Canvas
  xmlns:views="axeda.ui.views.*"
  xmlns:mx="http://www.adobe.com/2006/mxml"; width="100%" height="100%"
creationComplete="init(event)">

with this init function:

private function init(event:Event):void {
        browserManager = BrowserManager.getInstance();

 browserManager.addEventListener(BrowserChangeEvent.BROWSER_URL_CHANGE,
parseURL);
        callLater(parseURL);
    }

and here's some of parseURL

private function parseURL(event:Event = null):void {
     isParsing = true;

     var o:Object = URLUtil.stringToObject(browserManager.fragment);

        etc.


Now, if I set a breakpoint in parseURL, it hits it the very first time the
app loads, but if I change the fragment, and hit enter, it never reaches it,
and I can't figure out why.  The Browser is IE7 -- any ideas on why I can't
get this event to fire?

Thanks in advance,
Davis

Reply via email to