Frame 1
this.setMask(movieShapeMaskMC);
Frame 2
g_soundloopcount = -1;
moviesound = new Sound();
moviesound.attachSound("moviesound");
moviesound.start();
moviesound.onSoundComplete = function () {
if (g_soundloopcount != -1) {
g_soundloopcount--;
}
if (g_soundloopcount != 0) {
moviesound.start();
}
};
play();
Frame 3
play();
Frame 4
stop();
Frame 5
gotoAndPlay ("loopstart");
Symbol 15 MovieClip Frame 1
stop();
Symbol 15 MovieClip Frame 110
stop();
Symbol 11 MovieClip Frame 1
ParamsValue = "<ParamsValue><Movie.Width>680</Movie.Width><Movie.Height>382</Movie.Height><Movie.FPS>24</Movie.FPS><Bg.StayTime>3</Bg.StayTime><Bg.ShowSpotLight>true</Bg.ShowSpotLight><Bg.ReplayOnLoop>true</Bg.ReplayOnLoop></ParamsValue>";
ParamsDefine = "<ParamsDefine><Bg.StayTime caption=\"Stay Time(Seconds)\" type=\"integer\" min=\"0\" max=\"100\" default=\"3\"/><Bg.ShowSpotLight caption=\"Show Spotlight\" type=\"bool\" default=\"true\"/><Bg.ReplayOnLoop caption=\"Replay On Loop\" type=\"bool\" default=\"true\"/></ParamsDefine>";
param = new Array();
param["Movie.Width"] = _parent._width;
param["Movie.Height"] = _parent._height;
param["Movie.FPS"] = 24;
if (ParamsValue != null) {
paramXML = new XML(ParamsValue);
paramXML.ignoreWhite = true;
var i = 0;
while (i < paramXML.childNodes[0].childNodes.length) {
node = paramXML.childNodes[0].childNodes[i];
param[node.nodeName] = node.childNodes[0].nodeValue;
i++;
}
param["Movie.Width"] = parseInt(param["Movie.Width"]);
param["Movie.Height"] = parseInt(param["Movie.Height"]);
param["Movie.FPS"] = parseInt(param["Movie.FPS"]);
param["Bg.StayTime"] = parseInt(param["Bg.StayTime"]);
param["Bg.ShowSpotLight"] = param["Bg.ShowSpotLight"].toLowerCase() == "true";
} else {
param["Movie.Width"] = 800;
param["Movie.Height"] = 360;
param["Movie.FPS"] = 24;
param["Bg.StayTime"] = 20;
param["Bg.ShowSpotLight"] = true;
}
this.bot0._visible = false;
this.bot1._visible = false;
var CurtainWidth = 800;
var CurtainHeight = 360;
var ScaleX = ((param["Movie.Width"] * 100) / CurtainWidth);
var ScaleY = ((param["Movie.Height"] * 100) / CurtainHeight);
this.bot0._xscale = Math.max(ScaleX, ScaleY);
this.bot0._yscale = this.bot0._xscale;
this.bot1._xscale = -this.bot0._xscale;
this.bot1._yscale = this.bot0._yscale;
this.bot0._x = param["Movie.Width"] / 2;
this.bot0._y = param["Movie.Height"] / 2;
this.bot1._x = param["Movie.Width"] / 2;
this.bot1._y = param["Movie.Height"] / 2;
this.bot0._visible = true;
this.bot1._visible = true;
this.SpotMC0._visible = false;
this.SpotMC1._visible = false;
if (param["Bg.ShowSpotLight"]) {
var SpotWidth = 800;
var SpotHeight = 360;
var SpotScaleX = ((param["Movie.Width"] * 100) / SpotWidth);
var SpotScaleY = ((param["Movie.Height"] * 100) / SpotHeight);
this.SpotMC0._xscale = (this.SpotMC0._yscale = Math.max(SpotScaleX, SpotScaleY));
this.SpotMC1._xscale = (this.SpotMC1._yscale = this.SpotMC0._xscale);
this.SpotMC0._x = (this.SpotMC1._x = param["Movie.Width"] / 2);
this.SpotMC0._y = (this.SpotMC1._y = param["Movie.Height"] / 2);
this.SpotMC0._visible = true;
this.SpotMC1._visible = true;
}
this.StayFrames = param["Bg.StayTime"] * param["Movie.FPS"];
this.onEnterFrame = function () {
var _local1 = this;
if ((--_local1.StayFrames) > 0) {
} else {
_local1.SpotMC0._alpha = _local1.SpotMC0._alpha - 5;
_local1.SpotMC1._alpha = _local1.SpotMC0._alpha;
if (_local1.SpotMC0._alpha > 0) {
} else {
_local1.bot0.play();
_local1.bot1.play();
delete _local1.onEnterFrame;
_local1.removeMovieClip();
}
}
};