Futurescale, Inc. PureMVC Home

The PureMVC Framework Code at the Speed of Thought


Over 10 years of community discussion and knowledge are maintained here as a read-only archive.

New discussions should be taken up in issues on the appropriate projects at https://github.com/PureMVC

Pages: [1]
Print
Author Topic: Best Practice for trackinga user's history (breadcrumbs)  (Read 8471 times)
eco_bach
Courseware Beta
Sr. Member
***
Posts: 81


View Profile Email
« on: July 15, 2010, 09:58:27 »

I've used SWFAddress, but it seems full of quirks, and not fully implemented in all browsers. I don't necessarilly need deep linking, rather I simply need to track a users history as he she travels thru a flash application (user stays in application).

Any suggestions, desgin pattern recommendations, code examples?
Logged
puremvc
Global Moderator
Hero Member
*****
Posts: 2871



View Profile WWW Email
« Reply #1 on: July 15, 2010, 01:06:20 »

Try using Flex's built in BrowserManager class.

You can scope out the code for the Sea of Arrows player at http://seaofarrows.com/srcview to see how I handle it. There, I have both user- and app-generated navigation to deal with:

1) The app automatically generates navigation when it steps through tracks of a playlist you've selected
2) The user can generate navigation from playlist to playlist and song to song manually
3) The current navigation info has to be reflected in the url, so the user can bookmark any track or playlist and reenter the app at that point later. This way, I can deeplink to the tracks from my blog (http://blog.seaofarrows.com), or share the URL to a track in an email or a post like: http://seaofarrows.com/#P004/T044.

I chose BrowserManager because
A) It made more sense to use functionality that's already inside Flex as opposed to importing another lib
B) At the time I evaluated the two several years ago, there were issues with SWFAddress in terms of determining whether navigation came from inside the app or outside the app. BrowserManager lets you listen for one or the other or both. I don't know if this limitation still exists in SWFAddress or not, but it doesn't sound like you're having much joy...

HTH,
-=Cliff>
« Last Edit: July 15, 2010, 01:08:20 by puremvc » Logged
eco_bach
Courseware Beta
Sr. Member
***
Posts: 81


View Profile Email
« Reply #2 on: July 15, 2010, 07:21:44 »

thanks Cliff
Logged
Pages: [1]
Print