// labs

SWFAddress on Macs causes weird artifacts

with one comment

Been working with SWFAddress a lot lately on a few projects, and I'd noticed some weird artifacts appearing randomly on the screen when the address value is changed from a mouse click. Strange boxes appearing for a split second in seemingly random places, etc. After a little bit of testing it was apparent that it only happened on Macs, and was the worst in Firefox.

After some googling, I found a post on the Big Spaceship blog about the issue here - it's all explained in that post, basically a strange issue with Firefox 3 and ExternalInterface calls altering the DOM window. It's not SWFAddress' fault, but it's really apparent when you're using SWFAddress for deep-linking.

One solution to fix the SWFAddress issue, is to add a slight delay on the javascript call using the setTimeout function. Click through the link above, and you'll be able to grab a modified version of the swfaddress.js javascript code with the fix applied.

The other option is to add a slight delay in your Actionscript code, from when a button is clicked to when the SWFAddress.setValue() method is called. I did it this way, and used the Timer class and a 20ms delay, and this fixed the issue straight away.

Written by Shane Korin

June 24th, 2009 at 3:26 pm

Posted in tips

One Response to 'SWFAddress on Macs causes weird artifacts'

Subscribe to comments with RSS or TrackBack to 'SWFAddress on Macs causes weird artifacts'.

  1. ya i noticed this too. I think they fixed it in SWFAddress 2.2

    phil

    19 Aug 09 at 02:36

Leave a Reply