Hey all, I’ve put a button in my swf to take the user out of my site and back to the search engine (or wherever they came from), and I searched kirupa and came up with:
[AS]on (release) {
if (_root.y != 1) {
getURL(“javascript:history.go(-2)”, “_self”);
}[/AS]
I put -2 because there is a flash detection page before the page with the swf. But, here is the weird part… it only works the second time it is clicked. You click it once, and nothing happen, but if you click it again, it takes you back to the correct page, weird! I am not too up on Javascript, so I was hoping someone could point out my mistake Please go HERE to view the site, thanks in advance for your help!
PS, any comments on the site would be appreciated too :beam:
EDIT: obviously, the “about:” is supposed to be javascript
EDIT: oh screw it, you know what im trying to say :trout: