Frame 1
Set("/swf", "");
Set("/loops", "1");
Set("/initplay", "0");
Set("/cf", "0");
Set("/xf", "0");
url = getProperty("/", _url);
len = length(url);
inst = substring(url, len - "4", "1");
if (("/" lt inst) and (inst lt ":")) {
Set("/swf", "preview.swf");
} else {
Set("/swf", (substring(url, "1", len - "5")) add "s.swf");
}
if ((((((((inst ne "c") and (inst ne "C")) and (inst ne "d")) and (inst ne "D")) and (inst ne "e")) and (inst ne "E")) and (inst ne "F")) and (inst ne "f")) {
inst = "c";
}
if ((inst eq "d") or (inst eq "D")) {
Set("/loops", "0");
}
if ((inst eq "e") or (inst eq "E")) {
Set("/initplay", "1");
}
if ((inst eq "f") or (inst eq "F")) {
Set("/initplay", "1");
Set("/loops", "0");
}
if (/initplay) {
loadMovieNum (/swf, 1);
gotoAndPlay (4);
}
Frame 3
gotoAndPlay (2);
Frame 5
Set("/xf", /cf);
Set("/cf", getProperty("_level1", _currentframe));
if ((!/loops) and (/cf < /xf)) {
unloadMovieNum (1);
gotoAndPlay (2);
} else {
gotoAndPlay (4);
}
Symbol 10 Button
on (release) {
loadMovieNum (/swf, 1);
Set("/cf", "0");
gotoAndPlay (4);
}
Symbol 17 Button
on (release) {
unloadMovieNum (1);
gotoAndPlay (2);
}