There is a new feature in Flex 3 that might not be that well known. By default a Flash/Flex application does not support deep linking and the use of the back and forward buttons from the browser. There are libraries available to enable this. The best known libraries are UrlKit and SWFAddress. But in Flex 3 this can be done easily with a little extra work.

In Flex 3.0, Deep Linking is implemented via the BrowserManager. The BrowserManager allows your application to set the fragment and receive notification when the fragment changes. If you use Flex Builder, you must choose one of the HTML templates that support the BrowserManager. Go to the project’s Properties dialog, select “Flex Compiler” and ensure that the “Enable integration with browser navigation” is checked.

Then you will have to add the following to your Flex application:

  1. turn off the HistoryManager
  2. initialize the BrowserManager with a default fragment and title
  3. determine when you want to update the fragment and call BrowserManager.setFragment.
  4. listen for events from the BrowserManager
  5. when you receive an event, interpret the fragment and change your application accordingly

Click here for the complete article on Adobe Labs.

Tagged with:
 

Leave a Reply

Your email address will not be published. Required fields are marked *

*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

Set your Twitter account name in your settings to use the TwitterBar Section.