Flash simple encryption limits the way flash plays in the specified domain name/url _flash Tutorial
Source: Internet
Author: User
url = http://www.showhs.com;
/*
The following determines the first 21 characters of the URL (the number of characters is modified according to your URL), and playback fails if it is inconsistent with the URL. Note: SWF can be placed in any directory, as long as the first 21 characters of the URL are correct.
*/
if (_url.substring (0) <>url) {
gotoAndStop (2);
/*
There are a few things you can do here, for example, set local playback security in your publishing settings to access only the network, and then do countless windows here,
Onenterframe = function () {
GetURL (http://www.showhs.com, "_blank");
}
*/
}else{
gotoAndPlay (3); Skip to normal playback
}
For readability, the following code is not commented:
url = http://www.showhs.com;
if (_url.substring (0) <>url) {
gotoAndStop (2);
}else{
gotoAndPlay (3);
}
If you want to allow multiple domain names, you can write this:
url = "Http://www.showhs.com";
Url2 = http://showhs.com;
if ((_url.substring (0) ==url) | | (_url.substring (0) ==url2)) {
gotoAndPlay (3);
}else{
gotoAndStop (2);
}
Webmaster Huson remind you: Use this method, the technique of exporting in the design process:
Open with IE to open the specified destination URL to avoid frequent pop-up windows in the export, if not valid, please set the default browser to IE, close the export of the player window to continue editing. Sometimes flash software will be forced to end this error, please save the document before exporting, remember!
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.