# Deconstructing dynamic deeplinking

**URL:** https://forum.kirupa.com/t/deconstructing-dynamic-deeplinking/221349
**Category:** flash
**Created:** [April 3, 2007, 3:39pm UTC](https://forum.kirupa.com/t/deconstructing-dynamic-deeplinking/221349 "2007-04-03T15:39:02Z")
**Posts on this page:** 1
**Page:** 1

<div class="post-metadata">

### Author: ![ALGORYTHM](https://avatars.discourse-cdn.com/v4/letter/a/c4cdca/32.png) [@ALGORYTHM](https://forum.kirupa.com/u/ALGORYTHM)
#### Post date: [April 3, 2007, 3:39pm UTC](https://forum.kirupa.com/t/deconstructing-dynamic-deeplinking/221349/1 "2007-04-03T15:39:02Z")

</div>

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](http://reefscape.net/2006/10/18/deeplinking-browser-back-button-in-flash/)\*\* 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**](http://reefscape.net/mint/pepper/orderedlist/downloads/download.php?file=http%3A//reefscape.net/things/flash/integrationframework/browserIntegration_v01.zip).

there’s also a simple demo [**here**](http://reefscape.net/things/flash/integrationframework/history_demo.html#Home).

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/](http://algorythm.co.uk/design/index.php?path=deepdemo/)**

here is the demo partially in action.

**[http://algorythm.co.uk/design/deepdemo/](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**](http://paste2.org/p/2284)  
[**HistoryBridge.as**](http://paste2.org/p/2280)  
[**HistoryDemo.as**](http://paste2.org/p/2282)

here is the code my gui.fla uses in the first frame

**[http://paste2.org/p/2283](http://paste2.org/p/2283)**

**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!
