Deep Linking in AS3 with SWFAddress

I was working on some sample code for my library and I though it might be a good idea to keep the files, documentation and samples in a place where I could get to them at any time…naturally that place is the internet. I figured while I was at it I might as well share those examples with the world. I’m hoping to eventually establish a page with a link to all the code samples on it for easy reference, but for now I’ll just post links here.

I recently figured out deep linking for myWeathertower and I’ve had a couple of New Media people ask about it…and given that I’m going to be incorporating it into my portfolio soon I though easy, quick and clean reference as to how to deep link a page would be nice to have for future reference.

For my sample code of Deep Linking in AS3 with SWFAddress please go HERE

15 Responses to “Deep Linking in AS3 with SWFAddress”

  1. Adrian Parr Says:

    Hi Rachel,

    Thanks for your sample AS3 code for using SWFAddress. It is much easier to understand (and runs better) than the samples that are provided on the official SWFAddress website (http://www.asual.com/swfaddress/).

    All the Flash samples on the SWFAddress website are ActionScript 1.0.

    You’ve saved me a load of time.

    Keep up the good work!!

    Adrian

  2. Melissa Ebertz Says:

    This is the most helpful example of how to use swfAddress in AS3 that I’ve come across. (And I’ve done a lot of googling) Thank you for this! :-)

  3. dksj Says:

    it’s swaddress 2.0 right?

  4. Rachel Says:

    @dksj Yes this is in fact SWFAddress 2.0 but this example should work for 2.1 as well.

  5. Doug Says:

    I have such a basic question: How does the FLA “find” the Document.as file? I don’t know much about external AS files, and I don’t see any “import” command or anything. Obviously it works, but I don’t understand how, so it’s hard for me to implement this technique on my own site.

    Thanks very much for posting this much needed example.

  6. Elliot Says:

    Is there anyway of removing the # in the address bar?

    I am about to check out your source.

  7. Elliot Says:

    retract that last comment I found the sourceforge forum at:

    http://sourceforge.net/forum/?group_id=181584

    Where it was explain it is necessary. Still don’t think it is going to help me thou.

  8. admin Says:

    @Doug When you’re working with AS3 the FLA stores a reference to the Document.as class in the “Properties” panel where it says “Document Class”. I hope that helps! Let me know if you have any more questions regarding this piece of code. Good luck!

  9. Matt Says:

    I’m a year late, but great work and thank you so much for clarifying how to use SWFAddress with AS3 while NOT using the timeline. This is huge!

  10. Peter Says:

    Rachel, this was incredibly helpful as a starter for deep linking. I have a question, and you seem like as perfect a person to ask:

    I have a site (http://www.bdagamer.com) that loads in sub swf files depending on which product line you choose. I simply cant wrap my head around how to get it to load sub swfs based off of links typed into the address bar. ie: if I went to http://www.bdagamer.com/#/ds/ it just drops me into the base swf file.

    any thoughts on this? I have been scouring the web and have found little to help.

  11. Heartburn Home Remedy Says:

    The topic is quite trendy on the Internet at the moment. What do you pay the most attention to while choosing what to write ?

  12. admin Says:

    @Heartburn Home Remedy, I write about what I am passionate about. And when I see a gap I try to fill it in :)

  13. Arunava Says:

    Rachel,

    Many many thanks for sharing such a wonderful self explanatory code. It really helped me a lot to implement the “deep linking” feature using SWFAddress.

    Going by SWFAddress’ own documentation I thought it will be really tough to use it.

    And then I found your sample, and it was just wonderful!

  14. Deeplinks - Flashforum Says:

    [...] hehe ja ok. also ich bin da nicht so wirklich durchgestiegen. hab aber was gefunden was mir geholfen hat und die kombination aus dem gesammelten wissen hat mich dann zum erfolg gef

  15. Aaron Says:

    I realize this post is old but after installing SWFAddress this way on my site, I recently realized that the back button does not work as it should in Google Chrome – the example file on this page also does not work in Chrome. Any thoughts why or how to adjust it to work in Chrome as well?

Leave a Reply

In Everything there is Design.