url = ;
/*
The following determines the first 21 characters of the URL (the number of characters is modified according to your URL). If it is inconsistent with "url", the playback will fail. Note: swf can be placed in any directory as long as the first 21 characters of the URL are correct.
*/
if(_url.substring(0, 21)<>url){
gotoAndStop(2);
/*
Here you can do something, such as: set "Local playback security" in the release settings to "Access only the network", and then make countless pop-ups here,
onEnterFrame = function(){
getURL(, "_blank");
}
*/
}else{
gotoAndPlay(3); //Skip to normal playback
}
For ease of reading, the following is the code without comments:
url = ;
if(_url.substring(0, 21)<>url){
gotoAndStop(2);
}else{
gotoAndPlay(3);
}
If you want to allow multiple domain names, you can write it like this:
url = "";
url2 = ;
if((_url.substring(0, 21)==url) || (_url.substring(0, 17)==url2)){
gotoAndPlay(3);
}else{
gotoAndStop(2);
}
●Webmaster Hu Song reminds you: Note: Using this method, the skills during export during the design process:
Open the specified destination URL first with IE to avoid frequent pop-ups during export. If it is invalid, please set the default browser to IE, close the player window during export and continue editing. Sometimes Flash software will be forced to end due to an error. Please save the document before exporting, remember!
/*
The following determines the first 21 characters of the URL (the number of characters is modified according to your URL). If it is inconsistent with "url", the playback will fail. Note: swf can be placed in any directory as long as the first 21 characters of the URL are correct.
*/
if(_url.substring(0, 21)<>url){
gotoAndStop(2);
/*
Here you can do something, such as: set "Local playback security" in the release settings to "Access only the network", and then make countless pop-ups here,
onEnterFrame = function(){
getURL(, "_blank");
}
*/
}else{
gotoAndPlay(3); //Skip to normal playback
}
For ease of reading, the following is the code without comments:
url = ;
if(_url.substring(0, 21)<>url){
gotoAndStop(2);
}else{
gotoAndPlay(3);
}
If you want to allow multiple domain names, you can write it like this:
url = "";
url2 = ;
if((_url.substring(0, 21)==url) || (_url.substring(0, 17)==url2)){
gotoAndPlay(3);
}else{
gotoAndStop(2);
}
●Webmaster Hu Song reminds you: Note: Using this method, the skills during export during the design process:
Open the specified destination URL first with IE to avoid frequent pop-ups during export. If it is invalid, please set the default browser to IE, close the player window during export and continue editing. Sometimes Flash software will be forced to end due to an error. Please save the document before exporting, remember!