Dave’s site live, and being over flash

I’ve finally squashed all of the bugs on Dave Thomas’ web site. I’m a dill – the majority of the difficulties stemmed from the interaction between the flash movie on the front page and the javascript controlling rollovers etc.

It seemed I had a few options – fs:command , GetURL or the new ExternalInterface API. The first two had cross-browser compatibility problems, so I concentrated on the newest solution. Of course, this meant that the actionscript/javascript communication only worked if the user was running a recent (8+ from memory) version of flash. Worse still, Safari on mac OS10.3 completely crashed…

Using SWFObject to only show the flash movie on recent players got around this. Users with old players just see an imagemap with js rollovers. Then I discovered that more recent macs (Safari 2+ on 10.4) didn’t play the rollover animations correctly. It seemed that the browser was calling the onmouseover and onmouseout events simulaneously. Arrgh! Fixed it with some js broswer detection – something I try to avoid doing unless my back is against a wall.

If I was doing it again, I would not bother doing the front page animation in flash at all, I would instead use a javascript effects library like YUI or moofx. But I thought doing it in flash would be quicker. Anyway, chalk it up to experience. As I said to Dave today, the launch beer is gonna taste fantastic!


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google+ photo

You are commenting using your Google+ account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )


Connecting to %s

%d bloggers like this: