This is very simple library that handles deep linking of Flex apps based on currentState value. To use it just include latest flinks.swc from Downloads and in your Flex application put following line (remember to initialize namespace first xmlns:riaspace="net.riaspace.deepLinking.*" in your mx:Application):
<riaspace:EnableDeepLinking defaultFragment="myTestState1" defaultTitle="Initial browser title" auto="false"/>
or it can be even simples:
<riaspace:EnableDeepLinking />
This will actually bind deep linking logic to all states in your Application mxml. If you want to have more control over what state is deep linked and what is to be excluded you can use following example:
<mx:states> <mx:State name="myTestState1"> <riaspace:DeepLinking title="Browser title 1"/> </mx:State> <mx:State name="myTestState2"> <riaspace:DeepLinking title="Browser title 2"/> </mx:State> <!-- This will exclude deep linking when you are using autoDeepLinkStates="true" --> <mx:State name="myTestState3"> <riaspace:DeepLinking exclude="true"/> </mx:State> </mx:states>