Archive for category SWFAddress

SWFAddress 2.1 and the new Google Analytics Tracker

I had made a previous post about how to integrate the new Google Analytics Tracker and SWFAddress. It wasn’t obvious but it was fairly easy. I guess people really asked for an even easier way to do it because the new javascript code(ga.js) now works with SWFAddress without indicating to it that you are not using the Urchin tracker. As a matter of fact, with the release of SWAddress 2.1 earlier this week, the support for the ga.js tracker is one of the update. Other updates include a lot of fixes for the SEO examples and also the AS2 and AS3 classes are now in the com.asual.swfaddress.

I really have to look into the SEO  example that was released along version 2.0. It is one of my goal for the next month along to getting to know PureMVC better.

, , , ,

No Comments

SWFAddress and the new Google Analytics (ga.js)

I’m always playing a bit with SWFAddress, SWFObject and Google Analytics. SWFAddress has a nice features which is that it will advise Google Analytics when you change a page inside your main swf movie. That gives you the ability to do tracking on your website. Pretty neat!

Has some of you might know, Google Analytics has released a new tracker code (from urchin.js to ga.js). What more does it do for you right now? Not much, it’s supposed to be smaller in size and that’s about it. No event yet (there was a lot of buzz around events in Google Analytics and there is actually documentation on how to implement them but they are still in closed beta; we will have to wait on this one), no new functions. But if your launching a new website I would advise putting the new tracker code (ga.js) because it will save you maintenance time when you will want the new features.

So does SWFAddress works with the new code? Well the answer is yes, and it is pretty easy to make it work here is sample code showing you how to do it:

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "' type='text/javascript'%3E%3C/script%3E"));
<script type="text/javascript">
var pageTracker = _gat._getTracker("UA-xxxxxx-xx");
<script type="text/javascript" src="js/swfobject.js"></script>
<script type="text/javascript" src="js/swfaddress.js?tracker=pageTracker._trackPageview"></script>

The most important part of the code is the last line where you tell SWFAddress which tracker to use. That’s it! I hope this saves you some time.

, , ,


What’s new in SWFAddress 2.0

SWFAddress 2.0 is being released tomorrow and Asual wrote a 3 parts article (1, 2, 3)  about what’s new with version 2.0 and why should people use it. It’s a very nice article where they also speak about a new SEO method. I was suppose to make another tutorial about SEO, but I’ll wait until I have checked their example before making it. Also they revamped their website and I find it’s much better than their older version.

, ,

No Comments

The end of the SWFAddress saga

There I was this morning trying to make a simple example of my problem with SWFAddress. In order to do so I had to grab back the ActionScript part from the source because I had messed with mine. I go to the website and see that it has been modified since yesterday, but still I grab it, must not be so different. I do my example and there, it works fine. I say to myself, well, I’ll try that ActionScript with my main project. I just replaced the file, recompiled the swf and uploaded everything and then everything worked perfectly, not just half way like the day before.

Well I don’t know what the people working at Asual did, but they solved my problem. They also did very well manage their public image. I got two comments indicating me where I should look to solve my problem, and now I end up writing a good post about them. If I would have been them, well I would have done exactly the same thing. You have to have a good reputation on the web, because what is written will stay written for a very long time, that is the long tail.

My project will take a long time before it is completed because it involves 3D videos and green screen, I really hope that by then I’ll be able to work with stable version for both SWFObject and SWFAddress. Right now it’s a bit silly for me to be working with betas.  Anyway I say good work to the people making SWFAddress.

No Comments

I was a bit wrong about SWFAddress

Yesterday I was granted a comment by one of the developers of SWFAddress, pointing the fact that I was not using the latest version of SWFAddress and that was indeed true. So I started the day, thinking that my problem would be solved. So I got the latest version and tried it. Well it did not work either. But don’t let go so easily so I put some time into it.

First at SWFAddress they are using SWFObject 2 beta 3, I was using beta 4. But in beta 4, SWFObject is used as a static method. I think that will mean a lot of changes for the guys at Asual. Anyway, I downgraded my version to beta 3(which is not very logic) and tried once more. It didn’t work again. I tried with Explorer, Firefox, Opera, nothing worked. I then decided to mess with the code. I did calls from the externalInterface in flash to a javascript alert function. With all that I found that the SWFAddress.value was never initialized and it did a check for that before executing the setValue function. If I removed the check, I could now use the back button, which is half what I want to use it for.

I don’t know if it is my setup, I always have an external preloader; the SWF that includes SWFAddress ActionScript, is loaded in the preloader. Maybe this is what disrupts it from working, I don’t know. My point for all this is, yes I was wrong, SWFAddress will work with SWFObject; eventually.


1 Comment

SWFObject and SWFAdress will not work anymore together

I have tried the beta of the new SWFObject (SWFFix renamed) and it works quite well. I don’t have the mouse wheel problems I had previously. On the website that I am currently working on, I wanted to use SWFObject, but also to use SWFAdress. But since SWFObject changed considerably from version 1.5, SWFAddress won’t work with it, we will have to wait for another version or tweak it to make it work. It was nice that SWFAddress worked with SWFObject, it reduced the overhead, but the drawback is that if SWFObject changes, SWFAddress has to change too.


1 Comment