Im building a site, pure as3, external classes, no timeline. Using swfaddress.
I have a Master class with navigations and listeners, and pages are external classes with their dispose() methods.
Navigation works while Im going forward, removing 1st page,
calling its dispose() methods,adding 2nd to the stage, and so on..
So, if I would use my custom button for back() function, I would do the reverse thing,
remove 2nd page and its dispose(), adding back again 1st page,right?
Ok, but if Im navigating with BROWSER back button, this logic doesnt work.
Going backward in this case doesnt trigger my dispose() for current page,
doesnt shut it down as it does on forward with my button,
it goes back to previous page, letting the old one still runnning underneath.
What to do in onChange function off swfaddress, to do the right navigation and GC?
How to make only current page running, shutting down the one I was on, after BROWSER back clicked?