9 Apr 2008

SWFAddress 2.1

Today is the third day of the 360Flex Europe conference and in about an hour I'm going to give a session about using SWFAddress in Flex 3. This is finally a good reason for a new release which has been postponed a few times since January. Enjoy the brand new SWFAddress 2.1 and send us feedback using the project forums.

The list of changes includes:

  • New SWFAddressOptimizer class that encapsulates the JavaScript SEO code and improves the HTML degrading of Flash websites.
  • New getPathNames and getBaseURL methods.
  • New Rewriteless sample for SEO support without URL rewriting.
  • New YouTube Player API sample for video deep linking.
  • New SWiSH Max2 sample.
  • Tomcat SEO sample ported to Flex.
  • Enhanced SEO sample.
  • Improved href and popup methods.
  • Safari 3 reload and popup blocker fixes.
  • Deep links validation for XSS vulnerabilities.
  • DOM fix for Firefox.
  • The new Google Analytics tracking is supported out of the box.
  • Strict mode no longer requires a slash at the end of the value.
  • The A2S/AS3 classes are available in the com.asual.swfaddress package.
  • Flex 3 compatibility.

The release includes many new improvements and various fixes. Some of you have probably seen the swfaddress-seo.js file which is now replaced with a new SWFAddressOptimizer class which fixes some issues and adds a Flash Player detection so that people without proper version won't get the deep linking redirect. The getPathNames() method can simplify the code in complex situations by providing an array containing all the pseudo folders in deep links like "/path/subpath/subsubpath/". The other new getBaseURL() method was made especially for the SEO enabled samples that now can easily provide "Copy link to clipboard" or "Digg it" type of functionality by exposing addresses without anchors and possibly improving your search engine positioning. The Rewriteless sample is for those of you who want to use the SWFAddress SEO approach, but don't have URL rewriting enabled. The YouTube sample was born a day after Google released the Player JavaScript API and showcases basic deep linking for video. Larry Benedict ported the basic sample to SWiSH Max2 and brought the SWFAddress functionality to a whole new group of developers. I spent some time rewriting the Tomcat sample in Flex 3 using custom SWFAddress powered components. Many people reported that the href/popup functionality fails silently because of the Safari popup blocker and this new release should fix it. Warren from Richmond discovered a nasty XSS vulnerability for Internet Explorer and thanks to him now the deep linking values are filtered for possible bad symbols. Because of the huge interest in the new Google Analytics code it's now supported automatically. Finally the ActionScript classes are distributed with packages which are much more suitable for larger projects. This enhancement happens during the build process and you still can find the classes without packages in the source folder and in many of the samples where simplicity makes sense.

The really good news is that the SWFAddress team is growing little by little. Max Tafelmayer recently joined the project and committed few high quality fixes. Mattew Tretter, who created StateManager will also help us improve SWFAddress with some of his excellent Safari tricks.

With this release we're also starting to reward all the generous donations with nice SWFAddress t-shirts. Check the donation section for more information.

« Previous Post | Next Post »


Left by Yusuf Akyol at Mon, 19 Apr 4:15 PM
Your works are very very usefull. Thanks too much.
I developed a sample page with iframe. At that sample I change iframe's src when I press some links.I need to press twice browser's back button for backward displaying. Why? Is it possible to prevent this? How?
Best regards.
Left by maria at Mon, 19 Apr 4:15 PM
Great idea.
Left by Tom at Mon, 19 Apr 4:15 PM
The examples do not work for me. I have just upgraded to Flash player 10. Could this be causing my issue?
Left by Alex at Mon, 19 Apr 4:15 PM
This is great improvement! I am trying to find to update title and meta tages (description&keywords)..?

Keep doing great job!

Left by Fatih at Mon, 19 Apr 4:15 PM
i use SWFAddress 2.2 in my project but i have a problems. When i use the setValue property in my code SWFAddressEvent.Change is triggered but when i change the address from browser's address bar or when i use the back or forward button of browser, it is not triggered. What can be the problem? is there anyone having an opinion?
Left by Tibi at Mon, 19 Apr 4:15 PM
Where can I find some description about SEO with php . I don't understand how that is working.
Can somebody help me.???
Left by lee at Mon, 19 Apr 4:15 PM
Glad to see the update, even if I'm a tad late! = ]
Left by Tom Ortega at Mon, 19 Apr 4:15 PM
Hey, had we known, we could of had a release party at 360|Flex Milan! :) Thanks for the shirt. I packed 1 shirt too few and thought I might have to buy a shirt. Thankfully, I do not anymore. :)
Left by font man at Mon, 19 Apr 4:15 PM
Thanks for supporting Google Analytics!
Left by rex at Mon, 19 Apr 4:15 PM
This version is work with the swfobject v1.5. But it is not work when i use swfobject v2.1. Would you help to solve?
Left by Chris at Mon, 19 Apr 4:15 PM
I'm having the same problem as rex. Our stupid SEO people made us switch to SWFobject 2.0. Please help, this is really frustrating.
Left by cr3n at Mon, 19 Apr 4:15 PM
Great to hear you doing well Rostislav. Keep up the great work!!
And thanks for the 2.1, really big improvements.
Left by Sunny at Mon, 19 Apr 4:15 PM
Left by Aral Balkan at Mon, 19 Apr 4:15 PM
Very cool indeed -- can't wait to play with this!
Left by Adam at Mon, 19 Apr 4:15 PM
Thanks for creating such a useful class, it really made our site much more navigable and dynamic. Check it out at
now we can send prospective clients exactly where we want them to go!
Left by Yusuf Akyol at Mon, 19 Apr 4:15 PM
How can I handle browser refresh button?
Thanks all your helps.
Best reagrds.
Left by James Miller at Mon, 19 Apr 4:15 PM
Thanks so much for this - I've created a few sites in Flash but have always been stumped by the deep linking and browser back buttons/reload issues. I'm going to have to go back and redesign the sites I did before to include this code.
You're a star!



Blog Search

Blog Categories

Blog posts

Recommended sites