29 Sep 2009

SWFAddress 2.4

I'm happy to announce the availability of SWFAddress 2.4 which appears to be the most stable and feature-full version up to date. It fixes some nasty issues that appeared in the previous release and introduces a few interesting additions. Here is the changelog:

  • Support for parameter arrays.
  • Improved IE8 support.
  • Fixed IE initialization issues.
  • Fixed browser communication issues with AS2/AVM2 on Mac.
  • Fixed URL decoding for AS1 and AS2.
  • Fixed handling of swfobject.createSWF.
  • Workaround for WebKit bug 20355.
  • Frameset support and corresponding sample.
  • All methods dealing with parameters and query strings no longer return empty strings.

The project became pretty mature but we'll continue to consider interesting ideas and requests. More open source goodness is coming soon.

« Previous Post | Next Post »


Left by Rostislav at Mon, 19 Apr 4:15 PM
@Charlie and Mike D

It works great on my IE8 so please provide some more info:

- the exact OS/browser version
- do you have other IE versions installed on the same OS
- can you reproduce the problem with the provided samples
- do you use a web server for testing
Left by eco_bach at Mon, 19 Apr 4:15 PM
Have it working now

One question

If a site was working in ALL cases EXCEPT for windows IE using swfaddress.js 2.1 and swfaddress.as2.4, does it make sense as a first step to upgrade the .js to 2.4?

I tried this but it broke the site further....
Left by sam at Mon, 19 Apr 4:15 PM
hi all

i have a problem when using the direct link on the url ex:
the first frame not loading when the # was included at the url for the first time swf load, and preloader not shown,

Left by Ryan at Mon, 19 Apr 4:15 PM
So, this is very strange:

IE: 8
Browser buttons work fine while first visit to website, browser buttons go forward and back as planned...
Go to another URL after clicking through the flash file...
Go back to your SWFAddress site, using the browser buttons...

No SWFAddress functionality, like the code doesnt run when trying to access it.

I am using a .visible based on what the page id is, and its not recognizing it.

Anyone else running into this, or better yet, DO YOU HAVE A FIX? :)
Left by Simon at Mon, 19 Apr 4:15 PM

Many thanks for SWFAddress, hands down its a fantastic resource. One piece of advise would be appreciated, I am trying to completely clear the Address Bar of all URL history as it seems on browser refresh that url's are still showing, after trying all relevant methods from the API I still find nothing quite works, any tips?


Left by Rostislav at Mon, 19 Apr 4:15 PM
I don't understand what do you mean by "navigator". It sounds like you have a problem with the script initialization. Please, look how this is accomplished in the provided Flex samples (Flex, Family, Tomcat).
Left by neo at Mon, 19 Apr 4:15 PM
When I call SWFAddress.setValue(), SWFAddress dispatch EXTERNAL_CHANGE event in mac safari & firefox.
It's not always, but offten occured.
I want to reload when user click back button.
But in mac, when call SWFAddress.setValue(), browser reloaded.
How do I fix that?

thank you for your work.
Left by Rostislav at Mon, 19 Apr 4:15 PM

Thanks for reporting this. I updated the download package and now most of the FLA files can be opened with CS3.


Thanks for the good question! These new events are result of many user requests. I still believe that the behavior and the code used should always be the same no matter what the CHANGE event is but there are cases where the new events may help. For example, a highly animated website may execute heavy transition effects only on INTERNAL_CHANGE and skip them on EXTERNAL_CHANGE.
Left by Thaylin Burns at Mon, 19 Apr 4:15 PM
Strange but now it works fine without the fix. Sheesh. strange. Pay no mind to my blabbering then. :)
Left by Arkkimaagi at Mon, 19 Apr 4:15 PM
Is it just me, or does this for-loop seem like an potential endless-loop?

for (var i = 0, e; e = _cache[i]; i++) {
if (e.o == obj && e.t == type && e.l == listener) {
_cache.splice(i, 1);

Personally I'd go for something like:

var cacheLenght = _cache.length
for (var i = 0, e; i < cacheLenght; i++) {
e = _cache[i];
if (e.o == obj && e.t == type && e.l == listener) {
_cache.splice(i, 1);

Also this seems to have an error, altho I'm not 100% sure.

if (el.childNodes[i].src)
_url = String(el.childNodes[i].src);
if (s = _searchScript(el.childNodes[i]))
return s;

I always try to avoid this kind of structure:
To me that looks like an typo.

My aptana with jslint complained about these rows, so I wanted to let you know about these potential problems.
Left by Christine at Mon, 19 Apr 4:15 PM
i'm using this with the latest version of swfobject and swffit, the weird thing is that the CHANGE event doesnt get called when i click on the back button in firefox 3.6, but it's working in chrome... how to solve this? or i should use an older version of swfaddress?
Left by Almog Koren at Mon, 19 Apr 4:15 PM
Is it just me or is EXTERNAL_CHANGE firing when it wants to to, is anyone else having this issue? Also does anyone know how to identify when a user hits the browser back button or browser foward button?
Left by Rostislav at Mon, 19 Apr 4:15 PM
The sample works well which means that it doesn't create an infinite loop. The change event is not fired more than once for the same value.
Left by Nicolas at Mon, 19 Apr 4:15 PM
I think most demand feature is NTERNAL_CHANGE and EXTERNAL_CHANGE events. Thanks for this improvement.
Left by Jesse at Mon, 19 Apr 4:15 PM
We had the same problem as Fred but it was solved by making sure our website was properly doctyped (which put IE8 into
Left by Thaylin Burns at Mon, 19 Apr 4:15 PM
I'm trying to implement 2.4 but finding it on the tricky side. It's looking as if the js for some reason isn't creating your asual object and henceforth preventing the url change events from being fired. Everything on the flash side is stored but the urls aren't changed in the address bar. Any quick way to fix this?
Left by Arkkimaagi at Mon, 19 Apr 4:15 PM
Btw, your commenting system leaks html code badly :)
Left by Rostislav at Mon, 19 Apr 4:15 PM
I updated the download bundle few days ago to include a small fix which should solve your DOCTYPE issues.
Left by Phil Rabin at Mon, 19 Apr 4:15 PM
Has anyone figured out how to get the EXTERNAL_CHANGE event to fire in IE8 for the frameset? This example: only changes the anchor on click, but doesn't reflect the change when you alter the anchor manually.
Left by Eerk at Mon, 19 Apr 4:15 PM
Just a simple question: doesn't the swfAddress AS3 code create an infinite loop?

When the change event is fired, you call a function. In this function you change the swfaddress value, which fires the event again.

I'm literally copying lee brimelow's video tutorial and I just don't see how this is supposed to work.

Also, when I'm doing nothing in my app (just pressing CTRL+ENTER the event already gets fired! why is that?

Some documentation would indeed be handy!
Left by burak özdelice at Mon, 19 Apr 4:15 PM

I could not find documentation about new events. I've recently needed them but I have some knowledge lacks . Is there any documentation about external or internal change events?

Left by Alain at Mon, 19 Apr 4:15 PM
Is there a reason why in the AS2 version of the SWFAddress Class, in the private static function _call (line 147) there is a conditional to detect Mac systems ? In the case of a Mac another function is called wich uses getUrl("javascript ...")

This caused the situation where the browser address never changed. It all worked internally tho. (Firefox 3.5.3, Flash MAC 10,0,32,18, OSX 10.5.8)

It works on Safari 4.0.3 but so does (tested) but the getUrl fails in Firefox

Otherwise everything is peachy ! :)
Left by Thaylin Burns at Mon, 19 Apr 4:15 PM
Actually, wow, just figured it out. On the js side, it looks like you're doing a typeof check for asual and then creating it new but safari doesn't seem to like this. I changed it to " if(!asual){var asual={}} " and that worked like a charm.
Left by hurby at Mon, 19 Apr 4:15 PM
Does anybody know a way to get rit of the "#" swfadress places in the adress?
I found that in google analytics it doesn’t take “#” to the link it tracks. So when u click “view this page”, it will go to the wrong page, Probebly a Google thing but the generated "#" is unnecessary and it is ugly in the url's to.

Left by Andrei at Mon, 19 Apr 4:15 PM
Hello guys.

I was just wondering if someone could clear this for me.
I have seen people stating on several blogs that SWFAdress would help in ajax SEO.

Now - I have always considered that javascript generated content is not bot crawlable period.
So - SWFAdress looks like a great tool for links and bookmarking - but I don't understand how it
would help in indexing JavaScript generated content.

Am I missing something?
Do bots index ajax/javascript content?
Left by Cay at Mon, 19 Apr 4:15 PM
Great, thank you!
One question though... is the flashvars bug with swfobject in IE fixed?
Left by Dan at Mon, 19 Apr 4:15 PM
Thanks for the awesome library! Works great except in IE8 standards mode. I understand the fact that you can fix it by changing the doctype or forcing into IE7 mode but the library is being used on a lot of sites where we don't have control over the doctype.

Any thoughts on a fix or what the underlying issue is? I've tried debugging a bit but not having any luck. It's just not firing the EXTERNAL_CHANGE event when it should. If you can throw out any clues about the issue, I could continue trying to debug.
Left by Erik at Mon, 19 Apr 4:15 PM
Rostislav -- Thank you for your response. I see where in your code you stamp out the wrong url every 50ms. I am curious to investigate this more. Is there a microsoft bug report I can upvote? Maybe there is an idea for a workaround in other web apps? What is gmail, for example, doing differently to prevent the title changes? (They also have #s in their url, but perhaps the mechanics are completely different).
Left by Fireball70 at Mon, 19 Apr 4:15 PM
Намям думи. Върха. Браво Ростислав.
Left by Fred at Mon, 19 Apr 4:15 PM
Hello, yes for the IE8 problem, I have the same thing as MikeD. I have tried on vista and XP and even the flex sample would do the same thing.
IE outputs an error line8 character 5145, and a weird details mesage as i am using explorer not mozilla:
User Agent : Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; InfoPath.1; .NET CLR 2.0.50727; .NET CLR 3.0.04506.30; .NET CLR 3.0.4506.2152; .NET CLR 3.5.30729; .NET CLR 1.1.4322; OfficeLiveConnector.1.4; OfficeLivePatch.1.3)

my explorer version is 8.0.6001.18702
So that would be a problem for the flex template but would work fine with swfobject. (and i tried online and localy).
I hope those infos will help you, IE is really a pain in the a..
thank you for your work.
Left by Rostislav at Mon, 19 Apr 4:15 PM
Yes, it is!

Everyone else please report problems in the proper place and first try to reproduce them with the provided samples.
Left by MItchell at Mon, 19 Apr 4:15 PM
SWFAddress is a really great tool, thanks! Can anyone point me to an example that uses SWFAddress to bookmark pages in Flash. I can't seem to get this to work.
Left by Felix at Mon, 19 Apr 4:15 PM
If anybody experience problems in IE8 (url not updating).
Then use this doctype, <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">

Rostislav, thx for a fantastic library!!

Left by Rostislav at Mon, 19 Apr 4:15 PM
I don't see anything disturbing in the stats for You can monitor the requests sent by the browser to and report any specific issue that you find.

Thank you for the detailed information. I found the problem which applies only to IE8 Quirks Mode. I will probably update the download files later today.
Left by discopop at Mon, 19 Apr 4:15 PM
hi all!
Rostislav, is this version compatible with swfobject 2.2?
Left by gilles at Mon, 19 Apr 4:15 PM
version 2.4 is causing a problem on ie6 that get stuck on the opposite of version 2.3 that is running ie6 ok. One trick to visualise the problem is to look into google analytics the bounce rate with a segment based on ie6 , u should see IE6 bounce rate 3 time higher than the other browsers.
Left by Bugyinszki at Mon, 19 Apr 4:15 PM
first of all, thanks for this really usefull class!!

I got it all working, but i have some problems with using the nav-arrows of the browser:
if i click all the way back to the beginning, the forward-arrow won't work anymore. If i click through some content and then use the back and forward buttons it works. I have this problem only, when i go back to the very beginning (to the opening of the page).

I you understand my problem . . .

Any thoughts/help would be greatly appreciated!
Left by eco_bach at Mon, 19 Apr 4:15 PM
Just trying to get the CS3 sample version working.
The link to it here
Works fine in Firefox mac, and Safari(although the load process hangs for some reason).

This identical sample is included with the 2.4 download, BUT DOES NOT WORK when I try it on a test server.
Left by Erik at Mon, 19 Apr 4:15 PM
In IE8, when I am *not* changing URLs, the title of the page sometimes, randomly it seems, changes to "#0" (where #0 is the current deep link) and then back to the title. I can't figure out what is causing this to happen. Any suggestions where I can look into the code to help figure it out?
Left by Ant. at Mon, 19 Apr 4:15 PM
I'm using SWFAddress 2.4 for AS3 and it's not updating the URL nor title on neither IE or Firefox! The flash events seem to work fine.

Is anyone having the same problem? Where can I get an older version? The 2.3 download link seems to be pointing to 2.4 version!
Left by paravara1 at Mon, 19 Apr 4:15 PM
yeaah, my problem is solved :)
make sure, you call the swfobject before the swfaddress js...

it may help in some case
Left by Michael G at Mon, 19 Apr 4:15 PM
AS2 project. Only the URL won't change. Everything else seems to be working well. The title of the page is changing correctly via the navigation logic, but the URL is not updating. Works fine in IE7 and Windows Safari, but not Mac Firefox or Safari.

Don't know where to start. Because the URL isn't updating, no history items are being generated, but if I type a URL, the SWFAddress.CHANGE listener works appropriately and goes to the right page. Tried several combinations of swfobject and swfaddress distributions. An old swf compile still works correctly on the testing server, suggesting it must be something in the Actionscript. Any help would be greatly appreciated.
Left by Rostislav at Mon, 19 Apr 4:15 PM
Deep links inside Flash textfields should call the SWFAddress.setValue(value) method. This is done using a text event in AS3 and with an asfunction in earlier versions.

Thanks for the links! I just replaced the interval check with a better fix that was posted in the comments of the FP bug. It's now available in the project repository.
Left by Nicolas at Mon, 19 Apr 4:15 PM
Only one suggestion.
Can you organise as3 classes with package. Let say : com.asual.SWFAddress
Left by Curt at Mon, 19 Apr 4:15 PM
My Flash website uses SWFAddress 2.4. The forward / back buttons work, but if I try to navigate to a specific URL using the bookmarked page or by typing the URL in my browser, I always get the home page. You can see for yoursef:

No matter which one I try, it just jumps to the home page ( Is this a common problem, or am implementing incorrectly?

I'm using Firefox 3.5.8.
Left by Mark Cassar at Mon, 19 Apr 4:15 PM
Great thanks for this amazing class you have built! It really enhances the user experience of Flash websites / web applications!

Mark Cassar
Left by Fred at Mon, 19 Apr 4:15 PM
Hi eveybody, I am not really used to html stuff and i would be glad if you could indicate me a good article about doctype stuff.
I am still stuck with my problemes under IE. Or could you give more explanations Jesse ?!, thanks a lot. swfaddress rules :)
Left by Nick Polet at Mon, 19 Apr 4:15 PM
Just added SWFAddress to a new project for the first time just there. Had it going in about 4mins. It fits in so nicely with the PureMVC framework, can see flash projects becoming very powerful with these two as a core.

Just thought I`d post my appreciation to you for your efforts, I'm defintately going to be donating to see this project go further.

Regards and many thanks
Left by Ben at Mon, 19 Apr 4:15 PM
Thanks a lot !
Left by Mike D at Mon, 19 Apr 4:15 PM
Doesn't work with ie8, javascript error message'Object doesn't support this property or method'
Left by Fede Rivas at Mon, 19 Apr 4:15 PM
Congratulations for the great work, and thank you very much for the effort maded. :)
Left by Rostislav at Mon, 19 Apr 4:15 PM
For some time there are serious flickering issues with ExternalInterface on Firefox/Mac and there are various articles available on this topic. The code you're citing is a workaround for this problem which usually experienced with heavier Flash websites. How do you experience the situation where the browser never changes?
Left by Fernando at Mon, 19 Apr 4:15 PM
Wow wow, thanks!!! If I had any hair I would have lost it already... I was using SWFAddress 2.3 to find that when reloading my site everything got sort of screwy, this update fixed it all!!! Thanks for your hard work man... Thank you. Now one little question (feel free to direct me to the right forum).

Is there any way to pass parameters without using a query string?

Thanks again!!!
Left by Rostislav at Mon, 19 Apr 4:15 PM
You can always create an infinite loop if you want to. Overall I don't recommend the approach used in the Lee's tutorial but many people find it useful. Please, check the rest of the available samples and tutorials. The change event is fired when the movie starts because you need to know the deep link value in order to initialize correctly.

The files in the src folder don't use packages, but the ones in the dist folder are in the com.asual.swfaddress package.
Left by Patrick Lemiuex at Mon, 19 Apr 4:15 PM
Yeah having same problem, doesn't work, the url doesn't change in the url-bar
Left by paravara1 at Mon, 19 Apr 4:15 PM
If I add an EventListener in AS3 for INTERNAL_CHANGE, it works every time, but the EXTERNAL_CHANGE event doesn't run when I change the address in the browser or click the back button... EXTERNAL_CHANGE only runs at the beginning.
I'd like to handle both change events, just like in the previous version 2.3
Can you help me what could be the problem?

Thanks a lot, and thanks for this great stuff!
Left by Fred at Mon, 19 Apr 4:15 PM
Hello, I have problems making it work under ie8. The flex sample available in the zip wouldn't work as well on my computer.
I am not using swfObject to embed my flash but i am using the flex template. I read the badpractice doc and i don't see what i am making wrong with ie.
Appart from my problems with IE, congratulations for the good work as swfaddress is really usefull.
Left by Rostislav at Mon, 19 Apr 4:15 PM

Left by Eerk at Mon, 19 Apr 4:15 PM
My point was that the Video tutorial actually creates an infinite loop. Not a very good example right?

Now that I've read this website a bit better I understand that there is now an "EXTERNAL_CHANGE" event which makes sure the event doesn't fire when the change comes from within the SWF. This fixes the infinite loop that the video example creates.

Left by Ben at Mon, 19 Apr 4:15 PM

I'd like to know if there is any way to use "usual" anchors with SWFAddress ? I'd like to scroll vertically in my page while using SWFAddress. For example, is there any possibility to make this kind of URL "working" :

Of course, i tested that and of course it doesn't work, it why i post here ;)
Thank you all, bye.
Left by Bradley at Mon, 19 Apr 4:15 PM
There still isn't robust documentation on much of this stuff still, but I'm trying to make sense of EXTERNAL_CHANGE and INTERNAL_CHANGE. I would think EXTERNAL_CHANGE would be for when the address bar is altered by the user or the browser navigation buttons are clicked. Then INTERNAL_CHANGE would be for when flash app is implementing the change. That's not what's happening, so either I'm confused or there is something broken. EXTERNAL_CHANGE is firing every time CHANGE is firing. INTERNAL_CHANGE never fires. I've had the same results in IE 8, Safari Mac, and Firefox Mac. I'm using AS3 version 2.4.
Left by ryan at Mon, 19 Apr 4:15 PM
anyone having problems with the back buttons on the browser window working? how do i fix that

thanks for any help
Left by Ross Sclafni at Mon, 19 Apr 4:15 PM
HI, i love the prospects provided by EXTERNAL_CHANGE, so i updated to the new version.
this means that SWFAddress no longer has to be 'wedged' into my application's internal workings, right?
my goal is to be able to set a bookmark for browser navigation and sharing while i do all of my usual logic in as3.
then, if the browser does change or a link is used, i have a special parser handling EXTERNAL_CHANGE events.
much better than the old 'funnel' method, in my opinion.
although, i can't get it to work correctly. whenever i setValue, i get the following error:

ArgumentError: Error #1063: Argument count mismatch on com.asual.swfaddress::SWFAddress$/_setValue(). Expected 2, got 1.
at Function/
at flash.external::ExternalInterface$/_callIn()
at <anonymous>()

looks like the 'internal' argument is missing. any insight?

great addition in concept, please advise how to proceed or if ive misinterpreted the use case for the new event structure...
Left by Cristi Baluta at Mon, 19 Apr 4:15 PM
On localhost webserver on mac(MAMP), at least, some of the examples are not loading in browser: SEO, ajax, rewriteless....
Any idea? 2.3 had the same issue, 2.2 worked. Uploaded to a webserver is working.
Left by Charlie at Mon, 19 Apr 4:15 PM

Now that we have the two new change events to work with, does this mean there is a change in best-practice? Previously you have said that all rellevant changes from within the flash should pass through SWFAddress and be handled from its change event, but has this now changed? Given that we can easily tell if it is an external or internal change, should internal changes be handled before they are passed to SWFAddress, then the ensuing INTERNAL_CHANGE event ignored?
Left by Bugyinszki at Mon, 19 Apr 4:15 PM
problem solved - actually, it just needed to be uploaded to a server . . .

I've got an other problem though:
Preloader. Since my swf has a lot of pictures, i needed a preloader, wich loads the swf. And it's working well if you just open in, but if you copy and paste the url, the preloader loads the page again, and the swf jumps to the first state of the movie...

Any idea on how to get this working with a preloader?

Left by LutinCapuche at Mon, 19 Apr 4:15 PM
Thanks, great work!!
Left by Rostislav at Mon, 19 Apr 4:15 PM
The SVN copy of the project now contains a patch for all your EXTERNAL_CHANGE troubles. There is also a brand new sample that demonstrates all the SWFAddress events.
Left by michael keating at Mon, 19 Apr 4:15 PM
Hi, have loved swfaddress for .. ever. TY asual!

I was always a bit frustrated that the examples of swfaddress only showed an extremely simple flash site structure using the main timeline, so as we recently completed a simple micro site using the technology we decided to share the code with the community.

The example has 5 pages inside a structure that allows for innys and outys, all the code is available via a zip file. I am sure it will be of help to newbies.
Left by Rostislav at Mon, 19 Apr 4:15 PM
There is a nasty IE bug that changes the title of the page. SWFAddress has a built in interval check that fixes it but still the issue is sometimes visible.
Left by Rostislav at Mon, 19 Apr 4:15 PM
Can you please try getting the SVN copy of the upcoming 2.5 version and check the Events sample. I haven't seen such an error before. Please, provide a simple test case if you still can reproduce it.
Left by Krister at Mon, 19 Apr 4:15 PM
Encountered SWFAddress 2.2 at the site and noted that various calls were made to read and write the title of the enclosing Iframe. The only problem was that it assumed that this Iframe always belongs to its own site which is not the case if the site is opened by another site in an Iframe which it generated.

Sincerely, Krister.
Left by JonCole at Mon, 19 Apr 4:15 PM
I'm having trouble opening the example files in Flash CS3. The 2.3 version worked fine (save the files that were specifically for CS4 obviously).

Also, is there some more comprehensive documentation somewhere I'm missing? The list of functions/methods/etc isn't enough for someone who's just getting into this type of programming. I have to rely heavily on example code to learn how some of this works.

Left by PistonHonda at Mon, 19 Apr 4:15 PM
I'm having the same problem as Almog Koren about posts above. All I'm adding are both the External and Internal Events and they both fire on render. Not in browser. Any ideas?

Left by Ignacio Alles at Mon, 19 Apr 4:15 PM
Excelent work with this tool! Thank you very much.

It would be great to disable automatic tracking that happens on page load.

Left by Nami at Mon, 19 Apr 4:15 PM

I have a persistant problem with SwfAddress.

It appears that when my flex application is loaded directly to my navigator, change event is transmited to my application. But if it's embedded in an html page, event is only transmitted on page loading, and that's all.

I can change URL, nothing appear..

Could you help me ? I spent already 2 days on the problem and didn't find any solution :(

Thanks a lot

P.S. I post the same problem in 2.3 section, I tried both and nothing change. Thanks !
Left by Erik at Mon, 19 Apr 4:15 PM
Below are references for the # title bug in ie. Please upvote!
Left by fox at Mon, 19 Apr 4:15 PM
Hi , i have a problem actually.

I can't have deeplink inside the text of my flash site with IE8 and Opera.

They don't reload the page, but i can see the link changing.

So i can't navigate inside the site page too page.

But The menu is working perfectely

Do you know what can be this strange problem?


Left by Ivan at Fri, 23 Apr 3:12 PM
Anyone to experience issues with CS4?
When export fla from the supplied samples under CS3 everything is fine but when switch to CS4 then exported swf just stops. Any idea why?
Left by Dan at Thu, 6 May 3:50 PM
There is a bug in the events example on Mac with Safari.

If you follow a deep link:

from another page (my problem is from an email)

then the back and forward buttons will never get enabled until text is entered into the address bar
Left by Jerome at Thu, 3 Jun 10:04 AM

First, thanks a lot, it's a great library!
I've experienced troubles with google so I've searched a solution and I found this:

It seems that google only crawls links using #! instead of #
In my opinion it's a major concern for SEO
Do you plan to update swfAdress in that way?

Left by Rostislav at Thu, 3 Jun 10:14 AM

Our SEO solution still works but we're definitely looking forward to upgrade the library in this direction. We already implemented the mechanism in our jQuery Address plugin so now it's just a matter of some free time.
Left by Jerome at Thu, 3 Jun 2:10 PM

I try to adapt the Javascript until the next release

Thx ;)
Left by Jeff at Sat, 5 Jun 12:58 PM

thanks for swfaddress, quite an adventure :).

I noticed that when I click an item on stage twice in a row, only the first click is 'passed' by swfaddress.
Why is this? It could be handy when you don't want to do the same action in yout app twice, but shouldn't that be up to the progammer to decide?

Or is there some property I can set to make every click actually go via swfaddress? I thought maybe strict mode would do the trick, but it doesn't.

Left by Milos at Mon, 14 Jun 2:20 PM
I use SEO sample from your site, and works great!
But, I dont like the way of index.php make my Page Title

function swfaddress_title($title) {
if (!is_msie()) {
$names = swfaddress_path_names();
for ($i = 0; $i < count($names); $i++) {
$title .= ' / ' . strtoupper(substr($names[$i], 0, 1)) . substr($names[$i], 1);

If the link is the page title will be SERBIA NIGHTLIFE / Beograd / Klubovi
Can I change this and type the title for my own?

Left by Dusan at Mon, 14 Jun 11:52 PM
I got the ajax version of swfaddress to wrk,
it wrks flawlessly across browsers.

except im having a 2 small problems.
if i open a swfaddress link in new tab,
it opens it without the hash, resulting in a fail.
but if i just clik it, it opens correctly with hash and success.
any ideas why this is happening?
also if i enter the address without the hash, it fails,
example; --- wrks --- fails,

the demo wrks on your website, but when i download the demo and try in my localhost, it also fails.
i tried on live server, still fails.

any suggestions????
Left by Dusan at Tue, 15 Jun 4:19 PM
I tried the new swfaddress ajax 2.5

it wrks, new tab doesn't tho.
but firebug gives a "opts is not defined"

on 2.4
i got "d.base is not defined"
Left by Dusan at Tue, 15 Jun 10:04 PM
I got it to stop giving me a base error by adding
it defines it.

but, opening a swfaddress link in new tab or in new window still doesn't work,
still doesn't include the #(hash), also typing the link without the hash doesn't redirect to url with hash like in demo.
how is this achieved???
Left by Rostislav at Tue, 15 Jun 11:17 PM
The event is called onchange and it only dispatches when there is an actual change of the address. I'm sorry but you'll have to deal with your case with some extra code.

The code you posted creates the titles automatically out of the deep link value. You can put your own logic in there, e.g. dump values from an associative array.

Adjust the provided .htaccess file and ensure that modrewrite works as expected. You can also try to debug the PHP code a little to see where exactly it fails.
Left by Dusan at Tue, 15 Jun 11:31 PM
Tried editing the .htaccess file,
new tab wrks,
but it loads index.php inside the index.php instead of the content inside index.php
Left by andre felipe at Thu, 17 Jun 9:03 PM
Google changed the analytics code again, any chance SWFAddress can be updated to that?

They call it "asynchronous snippet" I think.. and SWAddress is not calling it because my sites are getting >50% Bounce rate, and before it was <1%

They ask to place the snippet in the <head> tag, but I also tried to place in the <body> for a week or so and nothing...

Left by Enrique Llamas at Fri, 2 Jul 2:26 AM
Hi, i´m having the same problem, i was using SWFAddress with Google Analytics and it was working great but it suddenly stopped working ! now it just gives me plain results and i´m not getting any tracking from the sections on my flash site. Any ideas why is this happening ?
Left by maxmc at Fri, 2 Jul 3:49 PM
Hi Rotislav,
thanks for your excellent work on SWFAddress! I built a framework called deepsplink, which reduces the amount of code (and work) to create a full flash site with deeplink support a lot and has several other benefits. Under the hood SWFAddress is used and it does a great job.

Left by kristof at Tue, 13 Jul 9:25 AM
I have a problem with the sampletutorial: " SWFAdress ActionScript 3 sample for flash" on chrome 5.0 . When you click the buttons in the swf, the swf works fine. But when you click then the backbutton in left corner of the browser then the URL changes, but the content of the swf doesn't.

Is there a fix for this ?

Left by Stoul at Wed, 4 Aug 8:53 PM
Hi there. To me it doesnt work at all!!!
i cant see where i ve done a mistake.....
the HTML:
<html xmlns="" lang="en" xml:lang="en">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<script type="text/javascript" src="swfobject.js"></script>
<script type="text/javascript" src="swfaddress.js"></script>
<script type="text/javascript">
var flashvars = {};
var params = {};
var attributes = {id:"test"};
swfobject.embedSWF("testia.swf", "myAlternativeContent", "550", "400", "9.0.0", "expressInstall.swf", flashvars, params, attributes);
<div id="myAlternativeContent">

Get Adobe Flash player


and the AS3

import com.asual.swfaddress.*;

SWFAddress.addEventListener(SWFAddressEvent.CHANGE, onChange);

function onChange(e:SWFAddressEvent):void
if(e.value != "/")
SWFAddress.setTitle("Testia - " + e.value.substring(1));
SWFAddress.setTitle("Testia - kitrino");

case "/kitrino":

case "/xaki":

case "/roz":

case "/":
function goArxik(evt:Event):void {

function goArx(evt:Event):void {

function goAr(evt:Event):void {

thanks in advance
Left by Klaus at Thu, 12 Aug 8:41 PM
Hi i've successfully implemented swfaddress in my project and i was wondering why does it pause the aplication for around one second in IE i've tested also other flashbased webpages that use swfaddress to deep link and the same problem happens. the app lags for about one second and then works normally.
is it problem with the plugin, or how IE works with JS, or is it a swfaddress bug that hasn't been looked at.
Left by Klaus at Thu, 2 Sep 12:45 AM
It's fixed, probably was a problem with the IE.
I don´t know what happened maybe i microsoft made an upload and i didnt notice but one day all the pages usinf swfaddress started working at a normal speed in IE, I seriously don't know what happened bu oviously swfaddress didn't have any problem.
Left by Richard at Fri, 3 Sep 8:29 PM
Hey guys!

First I'd like to thank you guys for making swfaddress, and especially the seo version!

I have 1 last problem to go though.

In google's index, my deeper page's have %20 in the title. Doesn't look very nice.
See for yourself:

If people have flash (and javascript), the title will automatically be corrected.

please, someone, e-mail me at hak (o)
Left by Richard at Thu, 9 Sep 1:25 AM

I think I fixed the problem above!

I've added --- $title = str_replace("%20"," ", $title); ---

right before --- echo($title); ---
Left by Mark at Tue, 5 Oct 3:51 AM
A repost of my comments at StackOverflow:

I found a couple of rather glaring bugs in SWFAddress, involving IE-based browsers. Both of the following occurred in SlimBrowser (15,000,000 downloads on Cnet) and one in Avant (also several million downloads on Cnet).

Both bugs occur when returning to the original startup screen of a flex app via the back button. Both of them are repeatable using the already compiled sample Flex app that comes with the most recent SWFAddress 2.4 full download (but I have also repeated them after recompiling, and with other flex apps as well.)

Bug 1: Open SlimBrowser and then open the SWFAddress Flex sample app in a single tab (make sure all other tabs are closed). In the flex sample app click one of the menu bar selections just to take it to another screen. Now hit the browser back button to return to the original screen. Then right-click the browser window tab for the Flex app and select 'close', to attempt to close the Flex app browser window. It causes the browser to crash.

Bug 2: Modify the code for the starting page of the Flex sample app mentioned above to include a hyperlink to some other website. Now repeat the steps from Bug 1 to go to a different page of the sample app, and then return to the starting page via the back button. (Makes no difference this time if other browser tabs are opened.) Now click the hyperlink you created to navigate to some other site. On the other site the back button is disabled and you can't return to the Flex sample app.

I can of course attempt to debug this myself. Just didn't know if anyone wanted to save me the trouble. Also is anyone still maintaining SWFAddress, and do they even care about this sort of thing. I know people tend to loathe IE so don't know if they just decided not to support it. Also it would include scores of 3rd party browsers that have nothing to do with Microsoft, other than using the IE engine behind the scenes.
Left by michael keating at Thu, 14 Oct 6:50 PM
SWFAddress is the greatest and anyone with a serious flash site out there who is not using it is mad. MAD I say! I have added a link to my blog with a tutorial and files on applying SWFAddress to a microsite, with page transitions and everything, and not just hopping between frames, I hope it's of some use to people.
Left by wiyono at Sun, 24 Oct 5:43 PM
i don't know how to use in As2, the example is for As1 and as3,
and when i change is As2 i have error:
Klassenskripts in ActionScript 2.0 können nur Klassen- oder Schnittstellenkonstrukte definieren.
Klassenskripts in ActionScript 2.0 können nur Klassen- oder Schnittstellenkonstrukte definieren.
Klassenskripts in ActionScript 2.0 können nur Klassen- oder Schnittstellenkonstrukte definieren.
and many more...

Can you help me please??
Left by Maxime at Fri, 29 Oct 4:52 PM
SWF Address 2.4 doesn't work on Safari Mac 5.0.2 but it does work on Firefox Mac 3.6.10.

Anyone has noticed the same problem ?

I think it comes from the lines in th euncompressed file:
Line 253 var _swfChange = function() {
if (!(obj && typeof obj[setter] != UNDEFINED)) {
var objects = obj.getElementsByTagName('object');
var embeds = obj.getElementsByTagName('embed');
obj = ((objects[0] && typeof objects[0][setter] != UNDEFINED) ?
objects[0] : ((embeds[0] && typeof embeds[0][setter] != UNDEFINED) ?
embeds[0] : null));

When i insert console.log in theses lines to test the values of "objects" and "embeds", they are both empty arrays whereas they should not be...
Left by voitureaumaroc at Sun, 21 Nov 1:13 AM
I have 2 solutions for the new google analytics (asynchronous) :

1 -
var pageTracker = {_trackPageview: function (url) {_gaq.push (['_trackPageview', url ])}};

Complete the code:
var = _gaq _gaq | | [];
_gaq.push (['_setAccount', 'UA-XXXXXXX']);
var pageTracker = {_trackPageview: function (url) {_gaq.push (['_trackPageview', url ])}};
(Function () {
var ga = document.createElement ('script'); ga.type = 'text / javascript'; ga.async = true;
ga.src = ('https:' == document.location.protocol? "https: / / ssl ':' http:// ') +'';
var s = document.getElementsByTagName ('script') [0]; s.parentNode.insertBefore (ga, s);

since by default swfAdress uses a pageTracker._trackPageview ()

2 -
use the method SWFAdress.setTracker (): To defne new tracker
function newTracker (url)
try {
_gaq.push (['_trackPageview', url]);
} Catch (e) {

I hope those infos will help you andre felipe
Left by Nik at Tue, 23 Nov 3:11 PM
I'm having the same problem as Maxime ... 2.4 doesn't work in Safari 5.0.3, but works fine in Firefox and Chrome. Does anyone know of a fix for this?
Left by marko at Wed, 5 Jan 3:41 PM
Hi! my name's Marko! I have a problem with swf address SEO... I don't know why when i check the links page ( index.php) the output is "NOT FOUND"...what i have to modify? Do you have also to modify the .htaccess file?
For this reason i have serious problem with google... Can somebody help me please?

Thank you so much!
Left by Sten Van den Bergh at Thu, 13 Jan 6:23 PM
I'm also having a problem with SWFAddress 2.4 on Safari 5.0.3 on Mac. Everything works except the back buttons. They change the url but it doesn't trigger the AddressChangeEvent. Is there a fix for this? It works well in Chrome and Firefox on Mac here as well..
Left by Ryan Alexander at Fri, 21 Jan 7:30 PM
I found a bug that I thought was fixed in 2.4

This will not work for me:

SWFAddress.setTitle("nutrition iQ® - 100% Juice");

It doesn't seem to like the percent sign special character in this case.
Left by andré felipe at Tue, 25 Jan 6:54 PM
Hi voitureaumaroc, thanks a lot for the Google Analytics Asynchronous tip, that worked like a charm.

I used the second solution, but the first makes much sense and is quicker to implement as well.

Now I am having the same problem on Safari, the back/forw buttons doesn't trigger the event too. The funny thing is that it used to! I always tested it, but has been quite a time that I don't care with it anymore that I couldn't define which change rendered SWFAddress broken... maybe Flash 10.1.. maybe an Safari update.. don't know

Any clue on the solution will be appreciated.

Left by franse at Mon, 7 Feb 9:25 PM

I am looking forward to see any working samples. When i trying to open the fla files i got unexpected file format. I can not open the fla files in FL8. Can you fix this please?

Also i am looking forward to see any good working samples while loading movieclips in. The samples that ive seen so far are only timelime related.

Thnx in advanced!
Left by Gerben Robijn at Mon, 14 Feb 4:03 PM

I've come across the problem that my back and forward buttons don't work when I've installed the flash debug player in safari. In de non-debug version it works perfectly. Is there a way to fix it? I've noticed it since 10.1 debug player and the new 10.2 version. Firefox is oke btw and it's on osx.
Left by Andrew at Tue, 22 Feb 10:45 PM
I've seen a lot of problems similar to mine but the solution has evaded me. I'm using an AJAX implementation of SWFAddress and it works fine in everything except IE7 (I haven't checked IE6 or less). Well, IE7 gives me the "Object doesn't support this property or method" once or twice, depending.

The first go around it gets hung up on this line from swfaddress.js (2.4):
var doc=_frame.contentWindow.document;

Subsequent setValue calls get hung up on this line:
if(typeof _frame.contentWindow[ID]==UNDEFINED){_htmlWrite()}

and then this line:

These errors prevents the browser history buttons from working in IE7 - neither change on setValue.

I have no ideas as to why this is happening (I've used this library with success in the past) other than the fact that I have some dynamic popup menus that are loaded after the page loads and they include dynamic paths which are called via setValue onclick, and this may be causing some kind of conflict. Also, I'm hardly using setTitle to any great effect (only to set the same title over and over), so could this also be a cause? Also, my doctype is XHTML 1.0 Strict.

I've tried using the repository code and am getting the same errors.

If you can help me, please, I would be greatly appreciative.
Left by rudolf at Thu, 3 Mar 6:29 AM
back() and forward() not working in Flash Player Debugger 10,2,152,26

onChange does trigger

none of the following browsers in OSX 10.6.6
Firefox 3.6.3
Safari 5.0.3
Chrome 9.0.597
Left by dol at Wed, 16 Mar 5:28 PM
okay some of us have not updated in years, so does this work with MX 2004?
Left by achilles at Wed, 16 Mar 8:34 PM
Deeplinking doesn't work in the situation of having SWFAddress, SWF's & XML loading from a different server than where the HTML is being hosted?

When running the HTML locally however, the content loads and deeplinking does function fine.

Thanks in advance.
Left by Brendan at Fri, 25 Mar 2:09 PM

I may be missing something simple here, but I'm trying to figure out:

What is the distinction between external links and internal links by the plugin? It appears that ALL the links on my site are being recognized as internal links, even though some of them are to external pages.

Should the plugin automatically recognize which links are external or do I have to exclude them somehow?

I am using the javascript version.

Left by Jodi at Sat, 9 Apr 11:26 PM
hi there

i have just launched a new site, and it works perfectly in firefox, chrome on mac, and ie 8 on windows, but it shows this error in safari v 5.0.3 & 5.0.4 -

(generated by javaScript) The URL can't be shown

it all is working fine, though, and i see that someone else had a fix for this, so i replaced the original in the js file:

if(typeof asual=="undefined"){var asual={}}

with this:

if(!asual){var asual={}}

but it didn't work - any help would be greatly appreciated; thanks! :)
Left by fox at Thu, 5 May 10:44 AM
What is the advantage of using SWFAddress instead of the Flex BrowserManager alone ?
Left by Mat at Fri, 6 May 6:31 AM

can we use the seo solution for an as3 flash website?
Left by Trevor at Thu, 12 May 12:08 PM
Internet Explorer 9 shows immediately the alternatif content.
I think there is a problem in detection of browser.
It says JavaScript is not active but it is.
Even examples of this site does not work with IE9 please try and see.
I hope to have a newer version with bug fix.
Thanks a lot by now!
Left by Auzzie at Thu, 9 Jun 8:45 PM
Apologize if this has already been discussed but I have everything up and running great but I was trying to create an external link (from another HTML site) that links to a specific page in the flash.

If I copy and paste the link into the browser it works fine but clicking in the link doesn't seem to fire the event.

Is there a solution to force the event to fire or a workaround? Thanks for the class.
Left by Rachel at Wed, 20 Jul 3:31 PM

Do you know of any tutorials that show implementation of swfaddress with external swfs?

Left by straightener at Thu, 24 Nov 1:57 AM
this is a good idea, i like it very much!
Left by Max at Sun, 18 Dec 1:45 PM
Hi, i have little problem. Im polish, and i need polish characters on my site.

When i try to set title, theres no problem, i can set polish characters, and everything is displayed well.
But when i try to set Value, theres some mess in my address bar. When i try to make: "Masaże i SPA" i get "Masa%C5%BCe%20i%20SPA".

Any solution for that? It's some encoding problem i cant get to work...
Left by Valdas at Sun, 15 Apr 4:10 PM
Hey, we have used SWFAddress at several project's and it is working well, congratulation team, good work.

With last project we found one bug, we had problem with Chrome assigned base address, for example: base address and in address line for different language we were used , than you browsing all pages like and other everything is working well, but than you go back to root / website is reloading to , the problem is at SWFAddress.setValue function:

var evt = _d.createEvent('MouseEvents');
evt.initEvent('click', TRUE, TRUE);
var anchor = _d.createElement('a');
anchor.href = '#' + _value;

The main problem is if value is / at this place anchor.href return , so i think that it is logic to enter: anchor.href = SWFAddress.getBaseURL()+ '/#' + _value; and the problem is solved.
Left by Danny at Wed, 25 Apr 10:21 PM
Im using swfaddress-2.4 with flash but the tilte on the html page shows "SWFAddress Website" instead of the name of my site. This is probably a stupid oversite on my part. Could anyone tell me where I need to change the code to include the name of my acuall site instead of "SWFAddress Website"?

Left by Amel at Sun, 16 Sep 5:25 AM
Any chance you will ever rlseaee an Android version? I just switched from iPhone to HTC Eco on 2.1 sense. Unfortunately there isn't anything like myshop in the a-market. Will you come to the rescue?



Blog Search

Blog Categories

Blog posts

Recommended sites