SOLVED!! Thanks to a genius named Prid from the actionscript.org forums. Here is what he gave me (obviously you replace domain.com with your domain, index.php with your default index page, and the frame numbers to what you want). current_url = flash.external.ExternalInterface.call("function(){return window.location.href}").toString(); url_split = current_url.split("/"); basename = url_split[url_split.length-1]; basename2 = url_split[url_split.length-2]; if(basename == "index.php"){ gotoAndPlay(2); } else if((basename2 == "www.domain.com" || basename2 == "domain.com") && basename == ""){ gotoAndPlay(2); } else { gotoAndPlay(234); } The javascript function returns this address, no matter how they type the path to your website, like if they type, domain.com, domain.com/, or http://domain.com, the path will always be returned in this format: http://www.domain.com/ OR http://domain.com/ Notice that there's always a slash at the end of the URL address. By seperating the string with slash as the seperator, the last item will be the empty space after the last slash, so, we can check if the item before the last one is equals to your website AND also if the last item is equals to nothing!
... View more