clipped from: www.asual.com   

SWFAddress - Deep linking for Flash


SWFAddress is a small script that sits on top of SWFObject and provides deep linking for Flash websites and applications. In other words it enables the Back, Forward and Reload buttons of the browser and creates unique URLs with page titles that can be sent over email or IM. SWFAddress uses the ExternalInterface functionality introduced in Flash Player 8 and comes with a technique that enables search engine indexing for deep Flash links. It supports the following browsers:


  • Mozilla Firefox 1+

  • Mozilla 1.8+

  • Camino 1+

  • Netscape 8+

  • Internet Explorer 6+

  • Safari 1.3+

  • Opera 9.02+


  • Samples


    Flash | MTASC | Flex | SEO


    Documentation


    Insert the SWFAddress script in your page directly after the SWFObject file.



    1. <script type="text/javascript" src="swfobject/swfobject.js"></script>  
    2. <script type="text/javascript" src="swfaddress/swfaddress.js"></script>  

    Include or import one of the provided ActionScript classes. SWFAddress comes with versions for AS1, AS2 and AS3.


    Write your own navigation logic that will be executed when the address is changed.


    1. SWFAddress.onChange = function() {  
    2.     // Your code goes here.  
    3. }  

    Call the SWFAddress setter method from every button or action that requires deep linking.


    1. this.onRelease = function() {  
    2.     SWFAddress.setValue('/portfolio/');  
    3. }  

    Known issues


  • The Back/Forward popup menu does not display page titles correcly.

  • Opera reloads the Flash movies when you navigate using the browser buttons.

  • SWFAddress values should not match the naming of frame labels on the main timeline.