Search code examples
apache-flexactionscript-3bookmarks

Bookmarks in Flex


Is not it possible to add a flex url to bookmarks. If not,Please let me know if any alternatives are there. Thank you.


Solution

  • There is a concept in Flex called deep linking. You can read all about it in the docs.

    You basically just need one class: the BrowserManager. This class allows you to:

    • control the navigation history of your browser
    • set window titles for different states of your application
    • set specific URL's in your browser's URL bar for different states of your application
    • listen for changes in the browser's URL bar, so the state of the application can be changed accordingly

    So you can have URL's like

    which can tell your application to display the right information.

    Why is there a pound sign in the URL? That's because we don't want to reload the entire application when the user changes the URL. So we stay on one page with the same app loaded; the part behind the pound signs is information that is being sent to the Flex app, which can change it's state according to this information.