Deep Linking in Flex 3
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:
- turn off the HistoryManager
- initialize the BrowserManager with a default fragment and title
- determine when you want to update the fragment and call BrowserManager.setFragment.
- listen for events from the BrowserManager
- when you receive an event, interpret the fragment and change your application accordingly
Click here for the complete article on Adobe Labs.
Lifestream
-
Checking out CocoaPods - an Objective-C library manager > https://t.co/xdLU5OgO— February 1st via Twitter
-
Finally found some time to dive into iOS5 Storyboarding.— February 1st via Twitter
-
RT @robbedoes: Fun to watch: an interview w/ the sound designer of Angry Birds: http://t.co/lDARIGbB— February 1st via Twitter
-
@wuotr Also, check this out: Flood Fill > http://t.co/SpweLK0N ;)— January 30th via Twitter
-
Love it! Timesaver++ CocosBuilder, a tool for graphically laying out sprites, layers and scenes for @cocos2d > http://t.co/Jrb8233D— January 30th via Twitter
-
RT @rwenderlich: Awesome list of Cocos2D source code projects, extensions and code from @iuridium: http://t.co/ovwLYhCv— January 29th via Twitter
-
Moo! @ Kinderboerderij kiewit http://t.co/tYBlLsvH— January 29th via Twitter
-
I've been doing my epic chores and just leveled-up. I'm a Level 8 Well-groomed Clansman now! #EpicWinApp— January 27th via Twitter
-




