PDA

View Full Version : Flash with the back button


FREAKNUT
03-09-2007, 04:41 AM
Hey everyone, I've been working on this site for a while and finally got it up online. the site itself is nothing special, but I worked up a fix for the browser back button that I think is working pretty well. It works with page refreshes (not that you need to refresh a flash movie), bookmarking, deep linking, and the back/forward buttons. It's done with javascript, but the movie is also embedded with swfobject, so if you don't have javascript enabled, it'll just show you the html version of the site I put together instead of doing all sorts of wacky things. I've tested it in Firefox (1 and 2), IE (6 and 7), and Opera (although it doesn't work quite right in Opera...it restarts the movie when the navigation buttons are clicked).

I'd like to know your thoughts on it, as well as any issues anyone might be having with it so that I can work on correcting bugs and make it more cross-browser friendly. Trying it out in different browsers(like Safari...I don't haev a mac) would be greatly appreciated. Also, just any comments on the site itself as well. It's a very simple site, but any thoughts, comments, or suggestions would be awesome. The link is below...thanks!

www.csoftwares.com

rille31
03-11-2007, 04:13 PM
was the backbutton hard to implement?

newblack
03-11-2007, 06:44 PM
it back/forward doesnt work in safari.

see StateManager: http://exanimo.com/as2/StateManager

FREAKNUT
03-11-2007, 07:57 PM
It's actually not difficult to implement...when I've got the time I'm gonna write up a tutorial.

As for it working in Safari...I had a feeling it wouldn't, but we're not too worried about targeting the mac community at the moment, so I'm not sure if I'll be trying to fix that.

Maybe doing it in php instead of JavaScript would work in Safari, but I haven't gotten around to that either yet.