hi guys, i’m trying to build a flash site that uses deeplinking for now and perhaps dynamic deeplinking later on.
here’s a short description of my progress so far which i hope will help people looking to do the same. i have seen a few unanswered threads and i think we can get this great code working between us
i also hope someone will be able to point me in the right direction as i’ve hit a road block :cross-eye
Part 1: The Code
the code i’m using comes from reefscape.net home of ‘Bob Corporaal, a Dutch freelance visual & interaction designer’. you can see his finished code in action here: **http://amused.nl/#intro** that’s a great site, try clicking links and using the back/forward buttons and even loading it with javascript disabled.
the demonstration code Bob used is available for download here.
there’s also a simple demo here.
this demo uses what i call ‘high end’ coding techniques so it’s a little difficult to understand for people who are more used to creating everything in flash manually and adding the code as they go.
so i’ve created a simple .fla of my own that should do the same thing.
here is a file list of the simple demo
http://algorythm.co.uk/design/index.php?path=deepdemo/
here is the demo partially in action.
http://algorythm.co.uk/design/deepdemo/
the hash can be changed by the flash bridge and the history bridge remembers the hash changes but the flash movie is not yet controlled by the back/forward arrows so there is no direct deep linking yet!
here are the original actionscript files used:
Navigator.as
HistoryBridge.as
HistoryDemo.as
here is the code my gui.fla uses in the first frame
Part 2: What I’ve Done
sooo! to start, i’ve created a simple but not too simple flash gui that uses actionscript functions to handle onpress events. i hope these are the correct types of functions that can be called in order to allow javascript to control the flash movie via ‘Delegate’ which i don’t really understand yet.
the flash can control the js just fine, as you can see in the demo. it changes the hash and page title but i can’t get it to work in reverse!
i expect it’s because of ‘Delegate’ or similar.
so, if any of the more advanced coders can see an obvious flaw in my method that would be great.
a working deeplinking option would be welcome here for sure!
tia!