Does anyone know if there's a Flash (ActionScript) library for providing back button support?
The GotMilk site does this. I was hoping there's a Flash library for this so I can provide and train a customer of mine to utilize this technique to build a whole site in flash.
One of the best solutions is SWFAddress:
http://www.asual.com/swfaddress/
You just need to include the javascript on your page and register a listener with the SWFAddress.as class. Download the full package on the site; there's a few really good demos. Quite easy to implement if you structure your Flash site well.
Here are some example in which I've used it recently:
我不知道一个库,但是我想它与JavaScript挂钩来更新window.location.hash属性。
You may want to look at this article . It describes how you can implement deep linking in Flash using the hash of the page's URL.
I've used deep linking in one of my Flex applications. It is a nice way of not-only supporting the back/forward button, but also to allow "pages" of your flash to be bookmarked and linked to.
I know that Flex can do this using, well, here's some sample code:
Using the browser history to track application state changes
I never did implement this in my Flex application, but I kept planning to (until the project was canceled).
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.