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
g_effectcount = 1;
stop();
Frame 5
gotoAndPlay ("loopstart");
Symbol 14 MovieClip Frame 1
ParamsValue = "<ParamsValue><Movie.Width>1100</Movie.Width><Movie.Height>283</Movie.Height><Movie.FPS>33</Movie.FPS><Img.ImageExport>Img.Blinds_Image_1</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_1</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>0</Img.PosX><Img.PosY>0</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>true</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>-1</Img.DurationFrame><Img.KeepText>true</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>";
function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) {
ImgMC._x = PosX;
ImgMC._y = PosY;
ImgMC._alpha = 0;
ImgMC.InSpeed = InSpeed;
ImgMC.ImgAlpha = ImgAlpha;
ImgMC.onEnterFrame = function () {
if ((this._alpha + this.InSpeed) > this.ImgAlpha) {
this._alpha = this.ImgAlpha;
delete this.onEnterFrame;
this._parent.play();
}
this._alpha = this._alpha + this.InSpeed;
};
}
function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) {
var iBlindsCount = Math.ceil(ImgHeight / BlindWidth);
var ImgMask = this.createEmptyMovieClip("ImgMask", 3);
var ImgMask_Slide0 = ImgMask.createEmptyMovieClip("ImgMask_Slide0", 1);
with (ImgMask_Slide0) {
beginFill(16777215);
moveTo(0, 0);
lineTo(ImgWidth, 0);
lineTo(ImgWidth, BlindWidth);
lineTo(0, BlindWidth);
lineTo(0, 0);
endFill();
}
var i = 1;
while (i < iBlindsCount) {
ImgMask_Slide0.duplicateMovieClip("ImgMask_Slide" + i, i + 1);
i++;
}
var i = 0;
while (i < iBlindsCount) {
ImgMask["ImgMask_Slide" + i]._x = 0;
ImgMask["ImgMask_Slide" + i]._y = BlindWidth * i;
ImgMask["ImgMask_Slide" + i]._yscale = 0;
i++;
}
ImgMC._x = PosX;
ImgMC._y = PosY;
ImgMask._x = PosX;
ImgMask._y = PosY;
ImgMC.setMask(ImgMask);
ImgMask.ScaleCount = 0;
ImgMask.InSpeed = InSpeed;
ImgMask.iBlindsCount = iBlindsCount;
ImgMask.onEnterFrame = function () {
var _local2 = 0;
while (_local2 < iBlindsCount) {
this["ImgMask_Slide" + _local2]._yscale = this["ImgMask_Slide" + _local2]._yscale + this.InSpeed;
_local2++;
}
this.ScaleCount = this.ScaleCount + this.InSpeed;
if (this.ScaleCount >= 110) {
delete this.onEnterFrame;
this._parent.play();
this.removeMovieClip();
}
};
}
function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) {
var iBlindsCount = Math.ceil(ImgWidth / BlindWidth);
var ImgMask = this.createEmptyMovieClip("ImgMask", 3);
var ImgMask_Slide0 = ImgMask.createEmptyMovieClip("ImgMask_Slide0", 1);
with (ImgMask_Slide0) {
beginFill(16777215);
moveTo(0, 0);
lineTo(BlindWidth, 0);
lineTo(BlindWidth, ImgHeight);
lineTo(0, ImgHeight);
lineTo(0, 0);
endFill();
}
var i = 1;
while (i < iBlindsCount) {
ImgMask_Slide0.duplicateMovieClip("ImgMask_Slide" + i, i + 1);
i++;
}
var i = 0;
while (i < iBlindsCount) {
ImgMask["ImgMask_Slide" + i]._x = BlindWidth * i;
ImgMask["ImgMask_Slide" + i]._y = 0;
ImgMask["ImgMask_Slide" + i]._xscale = 0;
i++;
}
ImgMC._x = PosX;
ImgMC._y = PosY;
ImgMask._x = PosX;
ImgMask._y = PosY;
ImgMC.setMask(ImgMask);
ImgMask.ScaleCount = 0;
ImgMask.InSpeed = InSpeed;
ImgMask.iBlindsCount = iBlindsCount;
ImgMask.onEnterFrame = function () {
var _local2 = 0;
while (_local2 < iBlindsCount) {
this["ImgMask_Slide" + _local2]._xscale = this["ImgMask_Slide" + _local2]._xscale + this.InSpeed;
_local2++;
}
this.ScaleCount = this.ScaleCount + this.InSpeed;
if (this.ScaleCount >= 110) {
delete this.onEnterFrame;
this._parent.play();
this.removeMovieClip();
}
};
}
function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) {
ImgMC.OutSpeed = OutSpeed;
ImgMC.onEnterFrame = function () {
this._alpha = this._alpha - this.OutSpeed;
if (this._alpha <= 0) {
this._parent.play();
delete this.onEnterFrame;
this.removeMovieClip();
}
};
}
function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) {
var iBlindsCount = Math.ceil(ImgHeight / BlindWidth);
var ImgMask = this.createEmptyMovieClip("ImgMask", 3);
var ImgMask_Slide0 = ImgMask.createEmptyMovieClip("ImgMask_Slide0", 1);
with (ImgMask_Slide0) {
beginFill(16777215);
moveTo(0, 0);
lineTo(ImgWidth, 0);
lineTo(ImgWidth, BlindWidth);
lineTo(0, BlindWidth);
lineTo(0, 0);
endFill();
}
var i = 1;
while (i < iBlindsCount) {
ImgMask_Slide0.duplicateMovieClip("ImgMask_Slide" + i, i + 1);
i++;
}
var i = 0;
while (i < iBlindsCount) {
ImgMask["ImgMask_Slide" + i]._x = 0;
ImgMask["ImgMask_Slide" + i]._y = BlindWidth * i;
ImgMask["ImgMask_Slide" + i]._yscale = 100;
i++;
}
ImgMC._x = PosX;
ImgMC._y = PosY;
ImgMask._x = PosX;
ImgMask._y = PosY;
ImgMC.setMask(ImgMask);
ImgMask.ScaleCount = 100;
ImgMask.OutSpeed = OutSpeed;
ImgMask.iBlindsCount = iBlindsCount;
ImgMask.onEnterFrame = function () {
var _local2 = 0;
while (_local2 < iBlindsCount) {
this["ImgMask_Slide" + _local2]._yscale = this["ImgMask_Slide" + _local2]._yscale - this.OutSpeed;
_local2++;
}
this.ScaleCount = this.ScaleCount - this.OutSpeed;
if (this.ScaleCount <= 0) {
delete this.onEnterFrame;
this._parent.play();
ImgMask.removeMovieClip();
ImgMC.removeMovieClip();
}
};
}
function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) {
var iBlindsCount = Math.ceil(ImgWidth / BlindWidth);
var ImgMask = this.createEmptyMovieClip("ImgMask", 3);
var ImgMask_Slide0 = ImgMask.createEmptyMovieClip("ImgMask_Slide0", 1);
with (ImgMask_Slide0) {
beginFill(16777215);
moveTo(0, 0);
lineTo(BlindWidth, 0);
lineTo(BlindWidth, ImgHeight);
lineTo(0, ImgHeight);
lineTo(0, 0);
endFill();
}
var i = 1;
while (i < iBlindsCount) {
ImgMask_Slide0.duplicateMovieClip("ImgMask_Slide" + i, i + 1);
i++;
}
var i = 0;
while (i < iBlindsCount) {
ImgMask["ImgMask_Slide" + i]._x = BlindWidth * i;
ImgMask["ImgMask_Slide" + i]._y = 0;
ImgMask["ImgMask_Slide" + i]._xscale = 100;
i++;
}
ImgMC._x = PosX;
ImgMC._y = PosY;
ImgMask._x = PosX;
ImgMask._y = PosY;
ImgMC.setMask(ImgMask);
ImgMask.ScaleCount = 100;
ImgMask.OutSpeed = OutSpeed;
ImgMask.iBlindsCount = iBlindsCount;
ImgMask.onEnterFrame = function () {
var _local2 = 0;
while (_local2 < iBlindsCount) {
this["ImgMask_Slide" + _local2]._xscale = this["ImgMask_Slide" + _local2]._xscale - this.OutSpeed;
_local2++;
}
this.ScaleCount = this.ScaleCount - this.OutSpeed;
if (this.ScaleCount <= 0) {
delete this.onEnterFrame;
this._parent.play();
ImgMask.removeMovieClip();
ImgMC.removeMovieClip();
}
};
}
function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) {
ImgMC._rotation = 0;
ImgMC._xscale = 100;
ImgMC._yscale = 100;
ImgMC._x = PosX;
ImgMC._y = PosY;
ImgMC._alpha = ImgAlpha;
delete ImgMC.onEnterFrame;
}
function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) {
ImgMC.onEnterFrame = function () {
};
}
function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) {
ImgMC.PosX = PosX;
ImgMC.PosY = PosY;
ImgMC.StaySpeed = StaySpeed;
ImgMC.ImgAlpha = ImgAlpha;
ImgMC.FlickerVisible = true;
ImgMC.StayTime = StayTime;
ImgMC.Switch = StaySpeed;
ImgMC.onEnterFrame = function () {
if (this.StayTime == 0) {
this._rotation = 0;
this._xscale = 100;
this._yscale = 100;
this._x = this.PosX;
this._y = this.PosY;
this._alpha = this.ImgAlpha;
delete this.onEnterFrame;
} else if (this.StayTime > 0) {
this.StayTime--;
}
if ((--this.Switch) <= 0) {
if (ImgMC.FlickerVisible) {
ImgMC._alpha = 0;
ImgMC.FlickerVisible = false;
} else {
ImgMC._alpha = this.ImgAlpha;
ImgMC.FlickerVisible = true;
}
this.Switch = this.StaySpeed;
}
};
}
function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) {
ImgMC.StaySpeed = StaySpeed;
ImgMC.PosX = PosX;
ImgMC.PosY = PosY;
ImgMC.ImgAlpha = ImgAlpha;
ImgMC.ImgWidth = ImgWidth;
ImgMC.ImgHeight = ImgHeight;
ImgMC.StayTime = StayTime;
ImgMC._rotation = 0;
ImgMC.onEnterFrame = function () {
if (this.StayTime == 0) {
this._rotation = 0;
this._xscale = 100;
this._yscale = 100;
this._x = this.PosX;
this._y = this.PosY;
this._alpha = this.ImgAlpha;
delete this.onEnterFrame;
} else if (this.StayTime > 0) {
this._rotation = this._rotation + this.StaySpeed;
this._x = ((this.PosX + (this.ImgWidth / 2)) - ((this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI))) + ((this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI));
this._y = ((this.PosY + (this.ImgHeight / 2)) - ((this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI))) - ((this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI));
if (this.StayTime > 0) {
this.StayTime--;
}
}
};
}
function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) {
ImgMC.StaySpeed = StaySpeed;
ImgMC.ZoomOut = true;
ImgMC.PosX = PosX;
ImgMC.PosY = PosY;
ImgMC.ImgWidth = ImgWidth;
ImgMC.ImgHeight = ImgHeight;
ImgMC.ImgAlpha = ImgAlpha;
ImgMC.StayTime = StayTime;
ImgMC.onEnterFrame = function () {
if (this.StayTime == 0) {
this._rotation = 0;
this._xscale = 100;
this._yscale = 100;
this._x = this.PosX;
this._y = this.PosY;
this._alpha = this.ImgAlpha;
delete this.onEnterFrame;
} else if (this.StayTime > 0) {
this.StayTime--;
}
if (this.ZoomOut) {
this._xscale = this._xscale - this.StaySpeed;
this._yscale = this._yscale - this.StaySpeed;
if (this._xscale < 90) {
this.ZoomOut = false;
}
} else {
this._xscale = this._xscale + this.StaySpeed;
this._yscale = this._yscale + this.StaySpeed;
if (this._xscale > 110) {
this.ZoomOut = true;
}
}
this._x = (this.PosX + (this.ImgWidth / 2)) - (this._width / 2);
this._y = (this.PosY + (this.ImgHeight / 2)) - (this._height / 2);
};
}
function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) {
ImgMC.StaySpeed = StaySpeed;
ImgMC.AlphaOut = true;
ImgMC.PosX = PosX;
ImgMC.PosY = PosY;
ImgMC.ImgAlpha = ImgAlpha;
ImgMC.StayTime = StayTime;
ImgMC.onEnterFrame = function () {
if (this.StayTime == 0) {
this._rotation = 0;
this._xscale = 100;
this._yscale = 100;
this._x = this.PosX;
this._y = this.PosY;
this._alpha = this.ImgAlpha;
delete this.onEnterFrame;
} else if (this.StayTime > 0) {
this.StayTime--;
}
if (this.AlphaOut) {
this._alpha = this._alpha - this.StaySpeed;
if (this._alpha < 80) {
this.AlphaOut = false;
}
} else {
this._alpha = this._alpha + this.StaySpeed;
if (this._alpha >= 100) {
this.AlphaOut = true;
}
}
};
}
ParamsDefine = "<ParamsDefine><Img.BlindWidth caption=\"Blind width\" type=\"integer\" min=\"1\" max=\"50\" default=\"12\"/><Img.InEffect caption=\"In effect\" type=\"selection\" selection=\"Blinds horizontal;Blinds vertical;Fade in\" default=\"Blinds horizontal\"/><Img.InSpeed caption=\"In speed\" type=\"integer\" min=\"1\" max=\"50\" default=\"4\"/><Img.StayEffect caption=\"Stay effect\" type=\"selection\" selection=\"Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker\" default=\"Stay\"/><Img.StaySpeed caption=\"Stay speed\" type=\"integer\" min=\"1\" max=\"50\" default=\"4\"/><Img.StayTime caption=\"Stay effect time\" type=\"selection\" selection=\"To end;Custom\" default=\"To end\"/><Img.StayTimeCustom caption=\"Stay effect custom seconds\" type=\"integer\" min=\"1\" max=\"50\" default=\"3\"/><Img.OutEffect caption=\"Out effect\" type=\"selection\" selection=\"Blinds horizontal;Blinds vertical;Fade out\" default=\"Blinds horizontal\"/><Img.OutSpeed caption=\"Out speed\" type=\"integer\" min=\"1\" max=\"50\" default=\"4\"/><Img.EffectName caption=\"Effect Name\" type=\"const\" default=\"Img.Blinds\"/></ParamsDefine>";
var param = new Array();
param["Movie.Width"] = _parent._width;
param["Movie.Height"] = _parent._height;
if (ParamsValue != null) {
paramXML = new XML(ParamsValue);
paramXML.ignoreWhite = false;
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["Img.InSpeed"] = parseInt(param["Img.InSpeed"]);
param["Img.OutSpeed"] = parseInt(param["Img.OutSpeed"]);
param["Img.StaySpeed"] = parseInt(param["Img.StaySpeed"]);
param["Img.StayTimeCustom"] = parseInt(param["Img.StayTimeCustom"]);
param["Img.BlindWidth"] = parseInt(param["Img.BlindWidth"]);
param["Img.PosX"] = parseInt(param["Img.PosX"]);
param["Img.PosY"] = parseInt(param["Img.PosY"]);
param["Img.Rotation"] = parseInt(param["Img.Rotation"]);
param["Img.Alpha"] = parseInt(param["Img.Alpha"]);
param["Img.StaticText"] = param["Img.StaticText"].toLowerCase() == "true";
param["Img.DelayFrame"] = parseInt(param["Img.DelayFrame"]);
param["Img.DurationFrame"] = parseInt(param["Img.DurationFrame"]);
param["Img.KeepText"] = param["Img.KeepText"].toLowerCase() == "true";
param["Img.URL"] = param["Img.URL"].toLowerCase() == "true";
delete paramXML;
} else {
param["Movie.Width"] = 400;
param["Movie.Height"] = 300;
param["Img.InSpeed"] = 8;
param["Img.OutSpeed"] = 8;
param["Img.StaySpeed"] = 4;
param["Img.StayTimeCustom"] = 3;
param["Img.PosX"] = 100;
param["Img.PosY"] = 100;
param["Img.Rotation"] = 0;
param["Img.Alpha"] = 100;
param["Img.StaticText"] = false;
param["Img.DelayFrame"] = 0;
param["Img.DurationFrame"] = 10;
param["Img.KeepText"] = false;
param["Img.URL"] = false;
param["Img.URLAddress"] = "about:blank";
param["Img.URLTarget"] = "_blank";
}
if (param["Img.StaticText"]) {
gotoAndPlay(_currentframe + 3);
}
Symbol 14 MovieClip Frame 3
param["Img.DelayFrame"] = param["Img.DelayFrame"] - 1;
if (param["Img.DelayFrame"] > 0) {
gotoAndPlay(_currentframe - 1);
}
Symbol 14 MovieClip Frame 4
stop();
var ImageMovie_MC = this.attachMovie(param["Img.ImageMovieExport"], "ImageMovie_MC", 2);
if (param["Img.StaticText"]) {
InEffect_FadeIn(ImageMovie_MC, param["Movie.Width"], param["Movie.Height"], param["Img.PosX"], param["Img.PosY"], 20, param["Img.Alpha"]);
} else {
switch (param["Img.InEffect"]) {
case "Blinds horizontal" :
InEffect_BlindsHorizontal(ImageMovie_MC, param["Movie.Width"], param["Movie.Height"], param["Img.PosX"], param["Img.PosY"], param["Img.InSpeed"], param["Img.Alpha"], ImageMovie_MC._width, ImageMovie_MC._height, param["Img.BlindWidth"]);
break;
case "Blinds vertical" :
InEffect_BlindsVertical(ImageMovie_MC, param["Movie.Width"], param["Movie.Height"], param["Img.PosX"], param["Img.PosY"], param["Img.InSpeed"], param["Img.Alpha"], ImageMovie_MC._width, ImageMovie_MC._height, param["Img.BlindWidth"]);
break;
case "Fade in" :
InEffect_FadeIn(ImageMovie_MC, param["Movie.Width"], param["Movie.Height"], param["Img.PosX"], param["Img.PosY"], param["Img.InSpeed"], param["Img.Alpha"]);
break;
default :
InEffect_FadeIn(ImageMovie_MC, param["Movie.Width"], param["Movie.Height"], param["Img.PosX"], param["Img.PosY"], param["Img.InSpeed"], param["Img.Alpha"]);
}
}
Symbol 14 MovieClip Frame 5
var iStayEffectTime = -1;
if (param["Img.StayTime"] != "To end") {
iStayEffectTime = param["Movie.FPS"] * param["Img.StayTimeCustom"];
}
switch (param["Img.StayEffect"]) {
case "Stay" :
StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param["Movie.Width"], param["Movie.Height"], param["Img.PosX"], param["Img.PosY"], param["Img.StaySpeed"], param["Img.Alpha"], ImageMovie_MC._width, ImageMovie_MC._height);
break;
case "Flicker" :
StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param["Movie.Width"], param["Movie.Height"], param["Img.PosX"], param["Img.PosY"], param["Img.StaySpeed"], param["Img.Alpha"], ImageMovie_MC._width, ImageMovie_MC._height);
break;
case "Rotating" :
StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param["Movie.Width"], param["Movie.Height"], param["Img.PosX"], param["Img.PosY"], param["Img.StaySpeed"], param["Img.Alpha"], ImageMovie_MC._width, ImageMovie_MC._height);
break;
case "Zoom in Zoom out" :
StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param["Movie.Width"], param["Movie.Height"], param["Img.PosX"], param["Img.PosY"], param["Img.StaySpeed"], param["Img.Alpha"], ImageMovie_MC._width, ImageMovie_MC._height);
break;
case "Fade in Fade out" :
StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param["Movie.Width"], param["Movie.Height"], param["Img.PosX"], param["Img.PosY"], param["Img.StaySpeed"], param["Img.Alpha"], ImageMovie_MC._width, ImageMovie_MC._height);
break;
default :
StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param["Movie.Width"], param["Movie.Height"], param["Img.PosX"], param["Img.PosY"], param["Img.StaySpeed"], param["Img.Alpha"], ImageMovie_MC._width, ImageMovie_MC._height);
}
Symbol 14 MovieClip Frame 7
if (param["Img.DurationFrame"] < 0) {
gotoAndPlay(_currentframe - 1);
} else {
param["Img.DurationFrame"] = param["Img.DurationFrame"] - 1;
if (param["Img.DurationFrame"] > 0) {
gotoAndPlay(_currentframe - 1);
} else {
gotoAndPlay(_currentframe + 1);
}
}
Symbol 14 MovieClip Frame 8
if (param["Img.KeepText"] || (param["Img.StaticText"])) {
gotoAndPlay(_currentframe + 2);
}
Symbol 14 MovieClip Frame 9
stop();
LeaveStayEffect(ImageMovie_MC, param["Img.PosX"], param["Img.PosY"], param["Img.Alpha"]);
switch (param["Img.OutEffect"]) {
case "Blinds horizontal" :
OutEffect_BlindsHorizontal(ImageMovie_MC, param["Movie.Width"], param["Movie.Height"], param["Img.PosX"], param["Img.PosY"], param["Img.OutSpeed"], ImageMovie_MC._width, ImageMovie_MC._height, param["Img.BlindWidth"]);
break;
case "Blinds vertical" :
OutEffect_BlindsVertical(ImageMovie_MC, param["Movie.Width"], param["Movie.Height"], param["Img.PosX"], param["Img.PosY"], param["Img.OutSpeed"], ImageMovie_MC._width, ImageMovie_MC._height, param["Img.BlindWidth"]);
break;
case "Fade out" :
OutEffect_FadeOut(ImageMovie_MC, param["Movie.Width"], param["Movie.Height"], param["Img.OutSpeed"]);
break;
default :
OutEffect_FadeOut(ImageMovie_MC, param["Movie.Width"], param["Movie.Height"], param["Img.OutSpeed"]);
}
Symbol 14 MovieClip Frame 10
stop();
if (!param["Img.StaticText"]) {
_parent.g_effectcount = _parent.g_effectcount - 1;
if (_parent.g_effectcount <= 0) {
_parent.play();
}
}
Symbol 19 MovieClip Frame 1
ParamsValue = "<ParamsValue><Movie.Width>1100</Movie.Width><Movie.Height>283</Movie.Height><Movie.FPS>33</Movie.FPS><Img.ImageExport>Img.Blinds_Image_2</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_2</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>729</Img.PosX><Img.PosY>190</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>35</Img.Alpha><Img.StaticText>true</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>-1</Img.DurationFrame><Img.KeepText>true</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>";
function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) {
ImgMC._x = PosX;
ImgMC._y = PosY;
ImgMC._alpha = 0;
ImgMC.InSpeed = InSpeed;
ImgMC.ImgAlpha = ImgAlpha;
ImgMC.onEnterFrame = function () {
if ((this._alpha + this.InSpeed) > this.ImgAlpha) {
this._alpha = this.ImgAlpha;
delete this.onEnterFrame;
this._parent.play();
}
this._alpha = this._alpha + this.InSpeed;
};
}
function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) {
var iBlindsCount = Math.ceil(ImgHeight / BlindWidth);
var ImgMask = this.createEmptyMovieClip("ImgMask", 3);
var ImgMask_Slide0 = ImgMask.createEmptyMovieClip("ImgMask_Slide0", 1);
with (ImgMask_Slide0) {
beginFill(16777215);
moveTo(0, 0);
lineTo(ImgWidth, 0);
lineTo(ImgWidth, BlindWidth);
lineTo(0, BlindWidth);
lineTo(0, 0);
endFill();
}
var i = 1;
while (i < iBlindsCount) {
ImgMask_Slide0.duplicateMovieClip("ImgMask_Slide" + i, i + 1);
i++;
}
var i = 0;
while (i < iBlindsCount) {
ImgMask["ImgMask_Slide" + i]._x = 0;
ImgMask["ImgMask_Slide" + i]._y = BlindWidth * i;
ImgMask["ImgMask_Slide" + i]._yscale = 0;
i++;
}
ImgMC._x = PosX;
ImgMC._y = PosY;
ImgMask._x = PosX;
ImgMask._y = PosY;
ImgMC.setMask(ImgMask);
ImgMask.ScaleCount = 0;
ImgMask.InSpeed = InSpeed;
ImgMask.iBlindsCount = iBlindsCount;
ImgMask.onEnterFrame = function () {
var _local2 = 0;
while (_local2 < iBlindsCount) {
this["ImgMask_Slide" + _local2]._yscale = this["ImgMask_Slide" + _local2]._yscale + this.InSpeed;
_local2++;
}
this.ScaleCount = this.ScaleCount + this.InSpeed;
if (this.ScaleCount >= 110) {
delete this.onEnterFrame;
this._parent.play();
this.removeMovieClip();
}
};
}
function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) {
var iBlindsCount = Math.ceil(ImgWidth / BlindWidth);
var ImgMask = this.createEmptyMovieClip("ImgMask", 3);
var ImgMask_Slide0 = ImgMask.createEmptyMovieClip("ImgMask_Slide0", 1);
with (ImgMask_Slide0) {
beginFill(16777215);
moveTo(0, 0);
lineTo(BlindWidth, 0);
lineTo(BlindWidth, ImgHeight);
lineTo(0, ImgHeight);
lineTo(0, 0);
endFill();
}
var i = 1;
while (i < iBlindsCount) {
ImgMask_Slide0.duplicateMovieClip("ImgMask_Slide" + i, i + 1);
i++;
}
var i = 0;
while (i < iBlindsCount) {
ImgMask["ImgMask_Slide" + i]._x = BlindWidth * i;
ImgMask["ImgMask_Slide" + i]._y = 0;
ImgMask["ImgMask_Slide" + i]._xscale = 0;
i++;
}
ImgMC._x = PosX;
ImgMC._y = PosY;
ImgMask._x = PosX;
ImgMask._y = PosY;
ImgMC.setMask(ImgMask);
ImgMask.ScaleCount = 0;
ImgMask.InSpeed = InSpeed;
ImgMask.iBlindsCount = iBlindsCount;
ImgMask.onEnterFrame = function () {
var _local2 = 0;
while (_local2 < iBlindsCount) {
this["ImgMask_Slide" + _local2]._xscale = this["ImgMask_Slide" + _local2]._xscale + this.InSpeed;
_local2++;
}
this.ScaleCount = this.ScaleCount + this.InSpeed;
if (this.ScaleCount >= 110) {
delete this.onEnterFrame;
this._parent.play();
this.removeMovieClip();
}
};
}
function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) {
ImgMC.OutSpeed = OutSpeed;
ImgMC.onEnterFrame = function () {
this._alpha = this._alpha - this.OutSpeed;
if (this._alpha <= 0) {
this._parent.play();
delete this.onEnterFrame;
this.removeMovieClip();
}
};
}
function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) {
var iBlindsCount = Math.ceil(ImgHeight / BlindWidth);
var ImgMask = this.createEmptyMovieClip("ImgMask", 3);
var ImgMask_Slide0 = ImgMask.createEmptyMovieClip("ImgMask_Slide0", 1);
with (ImgMask_Slide0) {
beginFill(16777215);
moveTo(0, 0);
lineTo(ImgWidth, 0);
lineTo(ImgWidth, BlindWidth);
lineTo(0, BlindWidth);
lineTo(0, 0);
endFill();
}
var i = 1;
while (i < iBlindsCount) {
ImgMask_Slide0.duplicateMovieClip("ImgMask_Slide" + i, i + 1);
i++;
}
var i = 0;
while (i < iBlindsCount) {
ImgMask["ImgMask_Slide" + i]._x = 0;
ImgMask["ImgMask_Slide" + i]._y = BlindWidth * i;
ImgMask["ImgMask_Slide" + i]._yscale = 100;
i++;
}
ImgMC._x = PosX;
ImgMC._y = PosY;
ImgMask._x = PosX;
ImgMask._y = PosY;
ImgMC.setMask(ImgMask);
ImgMask.ScaleCount = 100;
ImgMask.OutSpeed = OutSpeed;
ImgMask.iBlindsCount = iBlindsCount;
ImgMask.onEnterFrame = function () {
var _local2 = 0;
while (_local2 < iBlindsCount) {
this["ImgMask_Slide" + _local2]._yscale = this["ImgMask_Slide" + _local2]._yscale - this.OutSpeed;
_local2++;
}
this.ScaleCount = this.ScaleCount - this.OutSpeed;
if (this.ScaleCount <= 0) {
delete this.onEnterFrame;
this._parent.play();
ImgMask.removeMovieClip();
ImgMC.removeMovieClip();
}
};
}
function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) {
var iBlindsCount = Math.ceil(ImgWidth / BlindWidth);
var ImgMask = this.createEmptyMovieClip("ImgMask", 3);
var ImgMask_Slide0 = ImgMask.createEmptyMovieClip("ImgMask_Slide0", 1);
with (ImgMask_Slide0) {
beginFill(16777215);
moveTo(0, 0);
lineTo(BlindWidth, 0);
lineTo(BlindWidth, ImgHeight);
lineTo(0, ImgHeight);
lineTo(0, 0);
endFill();
}
var i = 1;
while (i < iBlindsCount) {
ImgMask_Slide0.duplicateMovieClip("ImgMask_Slide" + i, i + 1);
i++;
}
var i = 0;
while (i < iBlindsCount) {
ImgMask["ImgMask_Slide" + i]._x = BlindWidth * i;
ImgMask["ImgMask_Slide" + i]._y = 0;
ImgMask["ImgMask_Slide" + i]._xscale = 100;
i++;
}
ImgMC._x = PosX;
ImgMC._y = PosY;
ImgMask._x = PosX;
ImgMask._y = PosY;
ImgMC.setMask(ImgMask);
ImgMask.ScaleCount = 100;
ImgMask.OutSpeed = OutSpeed;
ImgMask.iBlindsCount = iBlindsCount;
ImgMask.onEnterFrame = function () {
var _local2 = 0;
while (_local2 < iBlindsCount) {
this["ImgMask_Slide" + _local2]._xscale = this["ImgMask_Slide" + _local2]._xscale - this.OutSpeed;
_local2++;
}
this.ScaleCount = this.ScaleCount - this.OutSpeed;
if (this.ScaleCount <= 0) {
delete this.onEnterFrame;
this._parent.play();
ImgMask.removeMovieClip();
ImgMC.removeMovieClip();
}
};
}
function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) {
ImgMC._rotation = 0;
ImgMC._xscale = 100;
ImgMC._yscale = 100;
ImgMC._x = PosX;
ImgMC._y = PosY;
ImgMC._alpha = ImgAlpha;
delete ImgMC.onEnterFrame;
}
function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) {
ImgMC.onEnterFrame = function () {
};
}
function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) {
ImgMC.PosX = PosX;
ImgMC.PosY = PosY;
ImgMC.StaySpeed = StaySpeed;
ImgMC.ImgAlpha = ImgAlpha;
ImgMC.FlickerVisible = true;
ImgMC.StayTime = StayTime;
ImgMC.Switch = StaySpeed;
ImgMC.onEnterFrame = function () {
if (this.StayTime == 0) {
this._rotation = 0;
this._xscale = 100;
this._yscale = 100;
this._x = this.PosX;
this._y = this.PosY;
this._alpha = this.ImgAlpha;
delete this.onEnterFrame;
} else if (this.StayTime > 0) {
this.StayTime--;
}
if ((--this.Switch) <= 0) {
if (ImgMC.FlickerVisible) {
ImgMC._alpha = 0;
ImgMC.FlickerVisible = false;
} else {
ImgMC._alpha = this.ImgAlpha;
ImgMC.FlickerVisible = true;
}
this.Switch = this.StaySpeed;
}
};
}
function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) {
ImgMC.StaySpeed = StaySpeed;
ImgMC.PosX = PosX;
ImgMC.PosY = PosY;
ImgMC.ImgAlpha = ImgAlpha;
ImgMC.ImgWidth = ImgWidth;
ImgMC.ImgHeight = ImgHeight;
ImgMC.StayTime = StayTime;
ImgMC._rotation = 0;
ImgMC.onEnterFrame = function () {
if (this.StayTime == 0) {
this._rotation = 0;
this._xscale = 100;
this._yscale = 100;
this._x = this.PosX;
this._y = this.PosY;
this._alpha = this.ImgAlpha;
delete this.onEnterFrame;
} else if (this.StayTime > 0) {
this._rotation = this._rotation + this.StaySpeed;
this._x = ((this.PosX + (this.ImgWidth / 2)) - ((this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI))) + ((this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI));
this._y = ((this.PosY + (this.ImgHeight / 2)) - ((this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI))) - ((this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI));
if (this.StayTime > 0) {
this.StayTime--;
}
}
};
}
function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) {
ImgMC.StaySpeed = StaySpeed;
ImgMC.ZoomOut = true;
ImgMC.PosX = PosX;
ImgMC.PosY = PosY;
ImgMC.ImgWidth = ImgWidth;
ImgMC.ImgHeight = ImgHeight;
ImgMC.ImgAlpha = ImgAlpha;
ImgMC.StayTime = StayTime;
ImgMC.onEnterFrame = function () {
if (this.StayTime == 0) {
this._rotation = 0;
this._xscale = 100;
this._yscale = 100;
this._x = this.PosX;
this._y = this.PosY;
this._alpha = this.ImgAlpha;
delete this.onEnterFrame;
} else if (this.StayTime > 0) {
this.StayTime--;
}
if (this.ZoomOut) {
this._xscale = this._xscale - this.StaySpeed;
this._yscale = this._yscale - this.StaySpeed;
if (this._xscale < 90) {
this.ZoomOut = false;
}
} else {
this._xscale = this._xscale + this.StaySpeed;
this._yscale = this._yscale + this.StaySpeed;
if (this._xscale > 110) {
this.ZoomOut = true;
}
}
this._x = (this.PosX + (this.ImgWidth / 2)) - (this._width / 2);
this._y = (this.PosY + (this.ImgHeight / 2)) - (this._height / 2);
};
}
function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) {
ImgMC.StaySpeed = StaySpeed;
ImgMC.AlphaOut = true;
ImgMC.PosX = PosX;
ImgMC.PosY = PosY;
ImgMC.ImgAlpha = ImgAlpha;
ImgMC.StayTime = StayTime;
ImgMC.onEnterFrame = function () {
if (this.StayTime == 0) {
this._rotation = 0;
this._xscale = 100;
this._yscale = 100;
this._x = this.PosX;
this._y = this.PosY;
this._alpha = this.ImgAlpha;
delete this.onEnterFrame;
} else if (this.StayTime > 0) {
this.StayTime--;
}
if (this.AlphaOut) {
this._alpha = this._alpha - this.StaySpeed;
if (this._alpha < 80) {
this.AlphaOut = false;
}
} else {
this._alpha = this._alpha + this.StaySpeed;
if (this._alpha >= 100) {
this.AlphaOut = true;
}
}
};
}
ParamsDefine = "<ParamsDefine><Img.BlindWidth caption=\"Blind width\" type=\"integer\" min=\"1\" max=\"50\" default=\"12\"/><Img.InEffect caption=\"In effect\" type=\"selection\" selection=\"Blinds horizontal;Blinds vertical;Fade in\" default=\"Blinds horizontal\"/><Img.InSpeed caption=\"In speed\" type=\"integer\" min=\"1\" max=\"50\" default=\"4\"/><Img.StayEffect caption=\"Stay effect\" type=\"selection\" selection=\"Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker\" default=\"Stay\"/><Img.StaySpeed caption=\"Stay speed\" type=\"integer\" min=\"1\" max=\"50\" default=\"4\"/><Img.StayTime caption=\"Stay effect time\" type=\"selection\" selection=\"To end;Custom\" default=\"To end\"/><Img.StayTimeCustom caption=\"Stay effect custom seconds\" type=\"integer\" min=\"1\" max=\"50\" default=\"3\"/><Img.OutEffect caption=\"Out effect\" type=\"selection\" selection=\"Blinds horizontal;Blinds vertical;Fade out\" default=\"Blinds horizontal\"/><Img.OutSpeed caption=\"Out speed\" type=\"integer\" min=\"1\" max=\"50\" default=\"4\"/><Img.EffectName caption=\"Effect Name\" type=\"const\" default=\"Img.Blinds\"/></ParamsDefine>";
var param = new Array();
param["Movie.Width"] = _parent._width;
param["Movie.Height"] = _parent._height;
if (ParamsValue != null) {
paramXML = new XML(ParamsValue);
paramXML.ignoreWhite = false;
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["Img.InSpeed"] = parseInt(param["Img.InSpeed"]);
param["Img.OutSpeed"] = parseInt(param["Img.OutSpeed"]);
param["Img.StaySpeed"] = parseInt(param["Img.StaySpeed"]);
param["Img.StayTimeCustom"] = parseInt(param["Img.StayTimeCustom"]);
param["Img.BlindWidth"] = parseInt(param["Img.BlindWidth"]);
param["Img.PosX"] = parseInt(param["Img.PosX"]);
param["Img.PosY"] = parseInt(param["Img.PosY"]);
param["Img.Rotation"] = parseInt(param["Img.Rotation"]);
param["Img.Alpha"] = parseInt(param["Img.Alpha"]);
param["Img.StaticText"] = param["Img.StaticText"].toLowerCase() == "true";
param["Img.DelayFrame"] = parseInt(param["Img.DelayFrame"]);
param["Img.DurationFrame"] = parseInt(param["Img.DurationFrame"]);
param["Img.KeepText"] = param["Img.KeepText"].toLowerCase() == "true";
param["Img.URL"] = param["Img.URL"].toLowerCase() == "true";
delete paramXML;
} else {
param["Movie.Width"] = 400;
param["Movie.Height"] = 300;
param["Img.InSpeed"] = 8;
param["Img.OutSpeed"] = 8;
param["Img.StaySpeed"] = 4;
param["Img.StayTimeCustom"] = 3;
param["Img.PosX"] = 100;
param["Img.PosY"] = 100;
param["Img.Rotation"] = 0;
param["Img.Alpha"] = 100;
param["Img.StaticText"] = false;
param["Img.DelayFrame"] = 0;
param["Img.DurationFrame"] = 10;
param["Img.KeepText"] = false;
param["Img.URL"] = false;
param["Img.URLAddress"] = "about:blank";
param["Img.URLTarget"] = "_blank";
}
if (param["Img.StaticText"]) {
gotoAndPlay(_currentframe + 3);
}
Symbol 19 MovieClip Frame 3
param["Img.DelayFrame"] = param["Img.DelayFrame"] - 1;
if (param["Img.DelayFrame"] > 0) {
gotoAndPlay(_currentframe - 1);
}
Symbol 19 MovieClip Frame 4
stop();
var ImageMovie_MC = this.attachMovie(param["Img.ImageMovieExport"], "ImageMovie_MC", 2);
if (param["Img.StaticText"]) {
InEffect_FadeIn(ImageMovie_MC, param["Movie.Width"], param["Movie.Height"], param["Img.PosX"], param["Img.PosY"], 20, param["Img.Alpha"]);
} else {
switch (param["Img.InEffect"]) {
case "Blinds horizontal" :
InEffect_BlindsHorizontal(ImageMovie_MC, param["Movie.Width"], param["Movie.Height"], param["Img.PosX"], param["Img.PosY"], param["Img.InSpeed"], param["Img.Alpha"], ImageMovie_MC._width, ImageMovie_MC._height, param["Img.BlindWidth"]);
break;
case "Blinds vertical" :
InEffect_BlindsVertical(ImageMovie_MC, param["Movie.Width"], param["Movie.Height"], param["Img.PosX"], param["Img.PosY"], param["Img.InSpeed"], param["Img.Alpha"], ImageMovie_MC._width, ImageMovie_MC._height, param["Img.BlindWidth"]);
break;
case "Fade in" :
InEffect_FadeIn(ImageMovie_MC, param["Movie.Width"], param["Movie.Height"], param["Img.PosX"], param["Img.PosY"], param["Img.InSpeed"], param["Img.Alpha"]);
break;
default :
InEffect_FadeIn(ImageMovie_MC, param["Movie.Width"], param["Movie.Height"], param["Img.PosX"], param["Img.PosY"], param["Img.InSpeed"], param["Img.Alpha"]);
}
}
Symbol 19 MovieClip Frame 5
var iStayEffectTime = -1;
if (param["Img.StayTime"] != "To end") {
iStayEffectTime = param["Movie.FPS"] * param["Img.StayTimeCustom"];
}
switch (param["Img.StayEffect"]) {
case "Stay" :
StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param["Movie.Width"], param["Movie.Height"], param["Img.PosX"], param["Img.PosY"], param["Img.StaySpeed"], param["Img.Alpha"], ImageMovie_MC._width, ImageMovie_MC._height);
break;
case "Flicker" :
StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param["Movie.Width"], param["Movie.Height"], param["Img.PosX"], param["Img.PosY"], param["Img.StaySpeed"], param["Img.Alpha"], ImageMovie_MC._width, ImageMovie_MC._height);
break;
case "Rotating" :
StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param["Movie.Width"], param["Movie.Height"], param["Img.PosX"], param["Img.PosY"], param["Img.StaySpeed"], param["Img.Alpha"], ImageMovie_MC._width, ImageMovie_MC._height);
break;
case "Zoom in Zoom out" :
StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param["Movie.Width"], param["Movie.Height"], param["Img.PosX"], param["Img.PosY"], param["Img.StaySpeed"], param["Img.Alpha"], ImageMovie_MC._width, ImageMovie_MC._height);
break;
case "Fade in Fade out" :
StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param["Movie.Width"], param["Movie.Height"], param["Img.PosX"], param["Img.PosY"], param["Img.StaySpeed"], param["Img.Alpha"], ImageMovie_MC._width, ImageMovie_MC._height);
break;
default :
StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param["Movie.Width"], param["Movie.Height"], param["Img.PosX"], param["Img.PosY"], param["Img.StaySpeed"], param["Img.Alpha"], ImageMovie_MC._width, ImageMovie_MC._height);
}
Symbol 19 MovieClip Frame 7
if (param["Img.DurationFrame"] < 0) {
gotoAndPlay(_currentframe - 1);
} else {
param["Img.DurationFrame"] = param["Img.DurationFrame"] - 1;
if (param["Img.DurationFrame"] > 0) {
gotoAndPlay(_currentframe - 1);
} else {
gotoAndPlay(_currentframe + 1);
}
}
Symbol 19 MovieClip Frame 8
if (param["Img.KeepText"] || (param["Img.StaticText"])) {
gotoAndPlay(_currentframe + 2);
}
Symbol 19 MovieClip Frame 9
stop();
LeaveStayEffect(ImageMovie_MC, param["Img.PosX"], param["Img.PosY"], param["Img.Alpha"]);
switch (param["Img.OutEffect"]) {
case "Blinds horizontal" :
OutEffect_BlindsHorizontal(ImageMovie_MC, param["Movie.Width"], param["Movie.Height"], param["Img.PosX"], param["Img.PosY"], param["Img.OutSpeed"], ImageMovie_MC._width, ImageMovie_MC._height, param["Img.BlindWidth"]);
break;
case "Blinds vertical" :
OutEffect_BlindsVertical(ImageMovie_MC, param["Movie.Width"], param["Movie.Height"], param["Img.PosX"], param["Img.PosY"], param["Img.OutSpeed"], ImageMovie_MC._width, ImageMovie_MC._height, param["Img.BlindWidth"]);
break;
case "Fade out" :
OutEffect_FadeOut(ImageMovie_MC, param["Movie.Width"], param["Movie.Height"], param["Img.OutSpeed"]);
break;
default :
OutEffect_FadeOut(ImageMovie_MC, param["Movie.Width"], param["Movie.Height"], param["Img.OutSpeed"]);
}
Symbol 19 MovieClip Frame 10
stop();
if (!param["Img.StaticText"]) {
_parent.g_effectcount = _parent.g_effectcount - 1;
if (_parent.g_effectcount <= 0) {
_parent.play();
}
}
Symbol 24 MovieClip Frame 1
ParamsValue = "<ParamsValue><Movie.Width>1100</Movie.Width><Movie.Height>283</Movie.Height><Txt.StrFormatedText><Txt.StrLine><StrText format=\"Font19714default\">The Best Reason why curvy Girls are Better:</StrText></Txt.StrLine></Txt.StrFormatedText>\r\n<Txt.Font><Txt.Format name=\"Font19714default\"><FontFormatName>Font19714default</FontFormatName><FontSize>20</FontSize><FontUnderline>false</FontUnderline><FontXScale>100</FontXScale><FontYScale>100</FontYScale><Alpha>100</Alpha><TextSpace>0</TextSpace><FillStyle>solid</FillStyle><FontBeginColor>0xCCFFCC</FontBeginColor><FontEndColor>0xFFFFFF</FontEndColor><Border>true</Border><BorderColor>0x000000</BorderColor><BorderSize>3</BorderSize><BorderShadow>false</BorderShadow><CharRotation>0</CharRotation></Txt.Format><Txt.Format name=\"Font19714default large\"><FontFormatName>Font19714default large</FontFormatName><FontSize>36</FontSize><FontUnderline>false</FontUnderline><FontXScale>100</FontXScale><FontYScale>100</FontYScale><Alpha>100</Alpha><TextSpace>0</TextSpace><FillStyle>radial</FillStyle><FontBeginColor>0xFF9900</FontBeginColor><FontEndColor>0xFFFFFF</FontEndColor><Border>false</Border><BorderColor>0xFF0000</BorderColor><BorderSize>0</BorderSize><BorderShadow>false</BorderShadow><CharRotation>0</CharRotation></Txt.Format><Txt.Format name=\"Font19714default small\"><FontFormatName>Font19714default small</FontFormatName><FontSize>16</FontSize><FontUnderline>false</FontUnderline><FontXScale>100</FontXScale><FontYScale>100</FontYScale><Alpha>100</Alpha><TextSpace>0</TextSpace><FillStyle>solid</FillStyle><FontBeginColor>0xFFCC00</FontBeginColor><FontEndColor>0x663300</FontEndColor><Border>false</Border><BorderColor>0xFF0000</BorderColor><BorderSize>0</BorderSize><BorderShadow>false</BorderShadow><CharRotation>0</CharRotation></Txt.Format><Txt.Format name=\"Font19714web link\"><FontFormatName>Font19714web link</FontFormatName><FontSize>14</FontSize><FontUnderline>true</FontUnderline><FontXScale>100</FontXScale><FontYScale>100</FontYScale><Alpha>100</Alpha><TextSpace>0</TextSpace><FillStyle>solid</FillStyle><FontBeginColor>0xFF0000</FontBeginColor><FontEndColor>0xFFFFFF</FontEndColor><Border>false</Border><BorderColor>0xFF0000</BorderColor><BorderSize>0</BorderSize><BorderShadow>false</BorderShadow><CharRotation>0</CharRotation></Txt.Format></Txt.Font><Txt.InSpeed>8</Txt.InSpeed><Txt.InDelay>0</Txt.InDelay><Txt.OutSpeed>8</Txt.OutSpeed><Txt.OutDelay>0</Txt.OutDelay><Txt.PosX>332</Txt.PosX><Txt.PosY>28</Txt.PosY><Txt.Rotation>0</Txt.Rotation><Txt.LineSpace>0</Txt.LineSpace><Txt.LineAlign>1</Txt.LineAlign><Txt.StaticText>true</Txt.StaticText><Txt.DelayFrame>0</Txt.DelayFrame><Txt.SkipEnter>true</Txt.SkipEnter><Txt.DurationFrame>-1</Txt.DurationFrame><Txt.SkipLeave>true</Txt.SkipLeave><Txt.KeepText>true</Txt.KeepText><Txt.URL>false</Txt.URL><Txt.URLAddress>about:blank</Txt.URLAddress><Txt.URLTarget></Txt.URLTarget></ParamsValue>";
function noActionIn(charMovie, posX, posY, charAlpha, charRotation) {
charMovie._y = posY;
charMovie._x = posX;
charMovie._rotation = charRotation;
charMovie._alpha = 0;
charMovie.onEnterFrame = function () {
if ((charMovie._alpha + 10) > charAlpha) {
charMovie._alpha = charAlpha;
delete this.onEnterFrame;
this._parent.g_char_num = this._parent.g_char_num - 1;
if (this._parent.g_char_num <= 0) {
this._parent.play();
}
}
charMovie._alpha = charMovie._alpha + 10;
};
}
function noActionOut(charMovie) {
charMovie.onEnterFrame = function () {
this._alpha = this._alpha - 10;
if (this._alpha <= 0) {
this._parent.g_char_num = this._parent.g_char_num - 1;
if (this._parent.g_char_num <= 0) {
this._parent.play();
}
delete this.onEnterFrame;
this.removeMovieClip();
}
};
}
ParamsDefine = "<ParamsDefine><Txt.InSpeed caption=\"Entering speed\" type=\"integer\" min=\"1\" max=\"10\" default=\"8\"/><Txt.InDelay caption=\"Entering line delay\" type=\"integer\" min=\"1\" max=\"10\" default=\"0\"/><Txt.OutSpeed caption=\"Leaving speed\" type=\"integer\" min=\"1\" max=\"10\" default=\"8\"/><Txt.OutDelay caption=\"Leaving line delay\" type=\"integer\" min=\"1\" max=\"10\" default=\"0\"/></ParamsDefine>";
var param = new Array();
param["Movie.Width"] = _parent._width;
param["Movie.Height"] = _parent._height;
if (ParamsValue != null) {
paramXML = new XML(ParamsValue);
paramXML.ignoreWhite = false;
var i = 0;
while (i < paramXML.childNodes[0].childNodes.length) {
node = paramXML.childNodes[0].childNodes[i];
if ((node.nodeName == "Txt.StrFormatedText") || (node.nodeName == "Txt.Font")) {
param[node.nodeName] = node.toString();
} else {
param[node.nodeName] = node.childNodes[0].nodeValue;
}
i++;
}
param["Movie.Width"] = parseInt(param["Movie.Width"]);
param["Movie.Height"] = parseInt(param["Movie.Height"]);
param["Txt.InSpeed"] = parseInt(param["Txt.InSpeed"]);
param["Txt.InDelay"] = parseInt(param["Txt.InDelay"]);
param["Txt.OutSpeed"] = parseInt(param["Txt.OutSpeed"]);
param["Txt.OutDelay"] = parseInt(param["Txt.OutDelay"]);
param["Txt.PosX"] = parseInt(param["Txt.PosX"]);
param["Txt.PosY"] = parseInt(param["Txt.PosY"]);
param["Txt.Rotation"] = parseInt(param["Txt.Rotation"]);
param["Txt.LineSpace"] = parseInt(param["Txt.LineSpace"]);
param["Txt.LineAlign"] = parseInt(param["Txt.LineAlign"]);
param["Txt.StaticText"] = param["Txt.StaticText"].toLowerCase() == "true";
param["Txt.DelayFrame"] = parseInt(param["Txt.DelayFrame"]);
param["Txt.SkipEnter"] = param["Txt.SkipEnter"].toLowerCase() == "true";
param["Txt.LinesSyncEnter"] = param["Txt.LinesSyncEnter"].toLowerCase() == "true";
param["Txt.DurationFrame"] = parseInt(param["Txt.DurationFrame"]);
param["Txt.SkipLeave"] = param["Txt.SkipLeave"].toLowerCase() == "true";
param["Txt.LinesSyncLeave"] = param["Txt.LinesSyncLeave"].toLowerCase() == "true";
param["Txt.LeaveFromBegin"] = param["Txt.LeaveFromBegin"].toLowerCase() == "true";
param["Txt.KeepText"] = param["Txt.KeepText"].toLowerCase() == "true";
param["Txt.URL"] = param["Txt.URL"].toLowerCase() == "true";
delete paramXML;
} else {
param["Movie.Width"] = 400;
param["Movie.Height"] = 300;
param["Txt.StrFormatedText"] = "<Txt.StrFormatedText><Txt.StrLine><StrText format=\"default\">Aleo Flash Intro and Banner Maker</StrTetxt></Txt.StrLine></Txt.StrFormatedText>";
param["Txt.Font"] = "<Txt.Font><Txt.Format name=\"default\"><FontFormatName>default</FontFormatName><FontSize>24</FontSize><FontUnderline>false</FontUnderline><FontXScale>100</FontXScale><FontYScale>100</FontYScale><Alpha>100</Alpha><TextSpace>0</TextSpace><FillStyle>solid</FillStyle><FontBeginColor>0xFF0000</FontBeginColor><FontEndColor>0x0000FF</FontEndColor><Border>true</Border><BorderColor>0x00ffff</BorderColor><BorderSize>0</BorderSize><BorderShadow>false</BorderShadow><CharRotation>0</CharRotation></Txt.Format></Txt.Font>";
param["Txt.InSpeed"] = 2;
param["Txt.InDelay"] = 1;
param["Txt.OutSpeed"] = 2;
param["Txt.OutDelay"] = 1;
param["Txt.PosX"] = 100;
param["Txt.PosY"] = 100;
param["Txt.Rotation"] = 0;
param["Txt.LineSpace"] = 20;
param["Txt.LineAlign"] = 1;
param["Txt.StaticText"] = false;
param["Txt.DelayFrame"] = 20;
param["Txt.SkipEnter"] = false;
param["Txt.LinesSyncEnter"] = false;
param["Txt.DurationFrame"] = 10;
param["Txt.SkipLeave"] = false;
param["Txt.LinesSyncLeave"] = false;
param["Txt.LeaveFromBegin"] = false;
param["Txt.KeepText"] = false;
param["Txt.URL"] = false;
param["Txt.URLAddress"] = "about:blank";
param["Txt.URLTarget"] = "_blank";
}
if (param["Txt.StrFormatedText"] != null) {
paramXML = new XML(param["Txt.StrFormatedText"]);
paramXML.ignoreWhite = false;
param["Txt.LineNum"] = paramXML.childNodes[0].childNodes.length;
var i = 0;
while (i < paramXML.childNodes[0].childNodes.length) {
node = paramXML.childNodes[0].childNodes[i];
param[(node.nodeName + ".") + i] = node.toString();
i++;
}
delete paramXML;
}
if (param["Txt.Font"] != null) {
paramXML = new XML(param["Txt.Font"]);
paramXML.ignoreWhite = false;
var i = 0;
var format_name;
while (i < paramXML.childNodes[0].childNodes.length) {
node = paramXML.childNodes[0].childNodes[i];
format_name = node.attributes.name;
param[(node.nodeName + ".") + format_name] = new Array();
var j = 0;
while (j < node.childNodes.length) {
childNode = node.childNodes[j];
param[(node.nodeName + ".") + format_name][childNode.nodeName] = childNode.childNodes[0].nodeValue;
j++;
}
param[(node.nodeName + ".") + format_name].FontSize = parseInt(param[(node.nodeName + ".") + format_name].FontSize);
param[(node.nodeName + ".") + format_name].FontUnderline = param[(node.nodeName + ".") + format_name].FontUnderline == "true";
param[(node.nodeName + ".") + format_name].FontXScale = parseInt(param[(node.nodeName + ".") + format_name].FontXScale);
param[(node.nodeName + ".") + format_name].FontYScale = parseInt(param[(node.nodeName + ".") + format_name].FontYScale);
param[(node.nodeName + ".") + format_name].Alpha = parseInt(param[(node.nodeName + ".") + format_name].Alpha);
param[(node.nodeName + ".") + format_name].TextSpace = parseInt(param[(node.nodeName + ".") + format_name].TextSpace);
param[(node.nodeName + ".") + format_name].FontBeginColor = parseInt(param[(node.nodeName + ".") + format_name].FontBeginColor);
param[(node.nodeName + ".") + format_name].FontEndColor = parseInt(param[(node.nodeName + ".") + format_name].FontEndColor);
param[(node.nodeName + ".") + format_name].Border = param[(node.nodeName + ".") + format_name].Border == "true";
param[(node.nodeName + ".") + format_name].BorderColor = parseInt(param[(node.nodeName + ".") + format_name].BorderColor);
param[(node.nodeName + ".") + format_name].BorderSize = parseInt(param[(node.nodeName + ".") + format_name].BorderSize);
param[(node.nodeName + ".") + format_name].BorderShadow = param[(node.nodeName + ".") + format_name].BorderShadow.toLowerCase() == "true";
param[(node.nodeName + ".") + format_name].CharRotation = parseInt(param[(node.nodeName + ".") + format_name].CharRotation);
i++;
}
delete paramXML;
}
this._rotation = param["Txt.Rotation"];
if (param["Txt.StaticText"]) {
gotoAndPlay(_currentframe + 3);
}
Symbol 24 MovieClip Frame 3
param["Txt.DelayFrame"] = param["Txt.DelayFrame"] - 1;
if (param["Txt.DelayFrame"] > 0) {
gotoAndPlay(_currentframe - 1);
}
Symbol 24 MovieClip Frame 4
function stage1_display(str, fmt_style, pos_xy, char_num, line_char_num, charbot_array) {
var i1 = 0;
while (i1 < str.length) {
var chrcontainer = this.createEmptyMovieClip(((("chrcontainer_" + char_num) + line_char_num) + i1) + 1, ((char_num + line_char_num) + i1) + 1);
var charDock = new Array();
charDock.Object = chrcontainer;
chrcontainer._visible = false;
charbot_array.push(charDock);
var i2 = 0;
if (fmt_style.Border) {
i2 = 0;
while (i2 < 8) {
var iShadow;
if (fmt_style.BorderShadow) {
iShadow = 0.6;
} else {
iShadow = 0;
}
var dup_x = (((fmt_style.BorderSize * 1.2) * Math.cos(((2 * i2) * 3.141593) / 8)) + iShadow);
var dup_y = (((fmt_style.BorderSize * 1.2) * Math.sin(((2 * i2) * 3.141593) / 8)) + iShadow);
chrcontainer.createTextField((("t_fielddup_" + i1) + "_") + i2, i2 + 1, dup_x, dup_y, 0, 0);
var t_field = chrcontainer[(("t_fielddup_" + i1) + "_") + i2];
t_field.embedFonts = true;
t_field.text = str.charAt(i1);
var t_fmt = new TextFormat();
t_fmt.font = fmt_style.FontFormatName;
t_fmt.color = fmt_style.BorderColor;
t_fmt.size = fmt_style.FontSize;
t_fmt.underline = fmt_style.FontUnderline;
t_field.setTextFormat(t_fmt);
t_field.autoSize = "left";
t_field.selectable = false;
t_field._xscale = fmt_style.FontXScale;
t_field._yscale = fmt_style.FontYScale;
i2++;
}
}
var chrobj = chrcontainer.createEmptyMovieClip("chrobj_" + i1, (i1 + i2) + 1);
chrobj.createTextField("t_field_" + i1, i1 + 1, 0, 0, 0, 0);
var t_field = chrobj["t_field_" + i1];
t_field.embedFonts = true;
t_field.text = str.charAt(i1);
var t_fmt = new TextFormat();
t_fmt.font = fmt_style.FontFormatName;
t_fmt.color = fmt_style.FontBeginColor;
t_fmt.size = fmt_style.FontSize;
t_fmt.underline = fmt_style.FontUnderline;
t_field.setTextFormat(t_fmt);
t_field.autoSize = "left";
t_field.selectable = false;
t_field._xscale = fmt_style.FontXScale;
t_field._yscale = fmt_style.FontYScale;
if ((fmt_style.FillStyle == "radial") || (fmt_style.FillStyle == "linear")) {
with (chrobj) {
colors = [fmt_style.FontBeginColor, fmt_style.FontEndColor];
alphas = [100, 100];
ratios = [0, 255];
matrix = {matrixType:"box", x:0, y:0, w:t_field._width * 2, h:t_field._height, r:(Math.PI/2)};
beginGradientFill(fmt_style.FillStyle, colors, alphas, ratios, matrix);
moveTo(0, 0);
lineTo(t_field._width * 2, 0);
lineTo(t_field._width * 2, t_field._height);
lineTo(0, t_field._height);
lineTo(0, 0);
endFill();
}
chrobj.setMask(t_field);
}
var posY;
if (param["Txt.LineAlign"] == 0) {
posY = pos_xy.Y - 2;
} else if (param["Txt.LineAlign"] == 2) {
var metrics = t_fmt.getTextExtent(str.charAt(i1));
if ((metrics.ascent == undefined) || (metrics.ascent <= 0)) {
posY = (pos_xy.Y - chrcontainer._height) + 2;
} else {
posY = (pos_xy.Y - 2) - metrics.ascent;
}
} else {
posY = pos_xy.Y - (chrcontainer._height / 2);
}
charDock.PosX = pos_xy.X;
charDock.PosY = posY;
charDock.Alpha = fmt_style.Alpha;
charDock.CharRotation = fmt_style.CharRotation;
if (param["Txt.SkipEnter"]) {
chrcontainer._visible = true;
noActionIn(chrcontainer, pos_xy.X, posY, fmt_style.Alpha, fmt_style.CharRotation);
}
var t_margin = (t_field._width - t_field.textWidth);
pos_xy.X = ((pos_xy.X + (t_field._width - t_margin)) + 0.5) + fmt_style.TextSpace;
if (t_field._height > pos_xy.MaxY) {
pos_xy.MaxY = t_field._height;
}
i1++;
}
}
stop();
var g_char_num = 0;
var g_charbot_array = new Array();
var pos_xy = new Array();
pos_xy.X = param["Txt.PosX"];
pos_xy.Y = param["Txt.PosY"];
pos_xy.MaxY = 0;
var i1 = 0;
i1 = 0;
while (i1 < param["Txt.LineNum"]) {
var str_line = param["Txt.StrLine." + i1];
if (str_line != null) {
var paramXML;
var fmt_name;
var str_text;
var line_char_num;
var charbot_line;
var charbot_str;
paramXML = new XML(str_line);
paramXML.ignoreWhite = true;
line_char_num = 0;
charbot_line = new Array();
pos_xy.X = param["Txt.PosX"];
pos_xy.Y = (pos_xy.Y + pos_xy.MaxY) + param["Txt.LineSpace"];
if (paramXML.childNodes[0].childNodes.length > 0) {
pos_xy.MaxY = 0;
var i2 = 0;
while (i2 < paramXML.childNodes[0].childNodes.length) {
node = paramXML.childNodes[0].childNodes[i2];
fmt_name = node.attributes.format;
str_text = node.childNodes[0].nodeValue;
fmt_style = param["Txt.Format." + fmt_name];
stage1_display(str_text, fmt_style, pos_xy, g_char_num, line_char_num, charbot_line);
line_char_num = line_char_num + str_text.length;
i2++;
}
}
g_char_num = g_char_num + line_char_num;
g_charbot_array.push(charbot_line);
delete paramXML;
}
i1++;
}
if (!param["Txt.SkipEnter"]) {
var a = 6;
var b = 1.6;
var i1 = 0;
while (i1 < g_charbot_array.length) {
var line_array;
line_array = g_charbot_array[i1];
line_array[0].Object._alpha = line_array[0].Alpha;
line_array[0].Object._rotation = line_array[0].CharRotation;
line_array[0].Object.XValue = line_array[0].PosX - param["Movie.Width"];
line_array[0].Object.YValue = line_array[0].PosY;
line_array[0].Object._x = line_array[0].Object.XValue;
line_array[0].Object._y = line_array[0].Object.YValue;
line_array[0].Object.Stoped = false;
line_array[0].Object.iRadian = 0;
line_array[0].Object._visible = true;
if (param["Txt.LinesSyncEnter"]) {
line_array[0].Object.Delay = 0;
} else {
line_array[0].Object.Delay = param["Txt.InDelay"] * i1;
}
var i2 = 1;
while (i2 < line_array.length) {
line_array[i2].Object._alpha = line_array[i2].Alpha;
line_array[i2].Object._rotation = line_array[i2].CharRotation;
line_array[i2].Object.XVelocity = 0;
line_array[i2].Object.YVelocity = 0;
line_array[i2].Object.XValue = line_array[i2].PosX - param["Movie.Width"];
line_array[i2].Object.YValue = line_array[i2].PosY;
line_array[i2].Object._x = line_array[i2].Object.XValue;
line_array[i2].Object._y = line_array[i2].Object.YValue;
line_array[i2].Object.Stoped = false;
line_array[i2].Object._visible = true;
i2++;
}
i1++;
}
this.onEnterFrame = function () {
var _local5 = true;
var _local6 = 0;
while (_local6 < g_charbot_array.length) {
var _local2;
_local2 = g_charbot_array[_local6];
if ((--_local2[0].Object.Delay) <= 0) {
if (_local2[0].Object.iRadian >= Math.PI) {
_local2[0].Object.XValue = _local2[0].PosX;
_local2[0].Object.YValue = _local2[0].PosY;
if (!_local2[0].Object.Stoped) {
g_char_num = g_char_num - 1;
_local2[0].Object.Stoped = true;
}
} else {
_local2[0].Object.iRadian = _local2[0].Object.iRadian + ((param["Txt.InSpeed"] * Math.PI) / 180);
_local2[0].Object.XValue = (_local2[0].PosX - (param["Movie.Width"] / 2)) - ((Math.cos(_local2[0].Object.iRadian) * param["Movie.Width"]) / 2);
_local2[0].Object.YValue = _local2[0].PosY + ((Math.sin(_local2[0].Object.iRadian) * param["Movie.Height"]) / 2);
}
_local2[0].Object._x = _local2[0].Object.XValue;
_local2[0].Object._y = _local2[0].Object.YValue;
_local5 = _local5 & _local2[0].Object.Stoped;
var _local3 = 1;
while (_local3 < _local2.length) {
if ((Math.abs(_local2[_local3].Object.XValue - _local2[_local3].PosX) < 1) && (Math.abs(_local2[_local3].Object.YValue - _local2[_local3].PosY) < 1)) {
_local2[_local3].Object.XValue = _local2[_local3].PosX;
_local2[_local3].Object.YValue = _local2[_local3].PosY;
if (!_local2[_local3].Object.Stoped) {
g_char_num = g_char_num - 1;
_local2[_local3].Object.Stoped = true;
}
} else {
var _local4 = _local2[_local3].PosX - _local2[_local3 - 1].PosX;
_local2[_local3].Object.XVelocity = (_local2[_local3].Object.XVelocity + (((_local2[_local3 - 1].Object.XValue + _local4) - _local2[_local3].Object.XValue) / a)) / b;
_local4 = _local2[_local3].PosY - _local2[_local3 - 1].PosY;
_local2[_local3].Object.YVelocity = (_local2[_local3].Object.YVelocity + (((_local2[_local3 - 1].Object.YValue + _local4) - _local2[_local3].Object.YValue) / a)) / b;
_local2[_local3].Object.XValue = _local2[_local3].Object.XValue + _local2[_local3].Object.XVelocity;
_local2[_local3].Object.YValue = _local2[_local3].Object.YValue + _local2[_local3].Object.YVelocity;
}
_local2[_local3].Object._x = _local2[_local3].Object.XValue;
_local2[_local3].Object._y = _local2[_local3].Object.YValue;
_local5 = _local5 & _local2[_local3].Object.Stoped;
_local3++;
}
}
_local6++;
}
if (_local5 && (g_char_num <= 0)) {
delete this.onEnterFrame;
this.play();
}
};
}
Symbol 24 MovieClip Frame 6
if (param["Txt.DurationFrame"] < 0) {
gotoAndPlay(_currentframe - 1);
} else {
param["Txt.DurationFrame"] = param["Txt.DurationFrame"] - 1;
if (param["Txt.DurationFrame"] > 0) {
gotoAndPlay(_currentframe - 1);
} else {
gotoAndPlay(_currentframe + 1);
}
}
Symbol 24 MovieClip Frame 7
if (param["Txt.KeepText"] || (param["Txt.StaticText"])) {
gotoAndPlay(_currentframe + 2);
}
Symbol 24 MovieClip Frame 8
stop();
if (!param["Txt.LeaveFromBegin"]) {
g_charbot_array.reverse();
var i1 = 0;
while (i1 < g_charbot_array.length) {
g_charbot_array[i1].reverse();
i1++;
}
}
g_char_num = 0;
var i1 = 0;
while (i1 < g_charbot_array.length) {
g_char_num = g_char_num + g_charbot_array[i1].length;
i1++;
}
if (param["Txt.SkipLeave"]) {
var i1 = 0;
while (i1 < g_charbot_array.length) {
for (var i2 in g_charbot_array[i1]) {
noActionOut(g_charbot_array[i1][i2].Object);
}
i1++;
}
} else {
var a = 6;
var b = 1.6;
var i1 = 0;
while (i1 < g_charbot_array.length) {
var line_array;
line_array = g_charbot_array[i1];
line_array[0].Object.XValue = line_array[0].Object._x;
line_array[0].Object.YValue = line_array[0].Object._y;
line_array[0].Object.Stoped = false;
line_array[0].Object.iRadian = 0;
if (param["Txt.LinesSyncLeave"]) {
line_array[0].Object.Delay = 0;
} else {
line_array[0].Object.Delay = param["Txt.OutDelay"] * i1;
}
var i2 = 1;
while (i2 < line_array.length) {
line_array[i2].Object.XValue = line_array[i2].Object._x;
line_array[i2].Object.YValue = line_array[i2].Object._y;
line_array[i2].Object.XVelocity = 0;
line_array[i2].Object.YVelocity = 0;
line_array[i2].Object.Stoped = false;
i2++;
}
i1++;
}
this.onEnterFrame = function () {
var _local6 = true;
var _local5 = 0;
while (_local5 < g_charbot_array.length) {
var _local2;
_local2 = g_charbot_array[_local5];
if ((--_local2[0].Object.Delay) <= 0) {
if (_local2[0].Object.iRadian >= Math.PI) {
_local2[0].Object.XValue = _local2[0].PosX - param["Movie.Width"];
_local2[0].Object.YValue = _local2[0].PosY;
if (!_local2[0].Object.Stoped) {
g_char_num = g_char_num - 1;
_local2[0].Object.Stoped = true;
}
} else {
_local2[0].Object.iRadian = _local2[0].Object.iRadian + ((param["Txt.OutSpeed"] * Math.PI) / 180);
_local2[0].Object.XValue = (_local2[0].PosX - (param["Movie.Width"] / 2)) + ((Math.cos(_local2[0].Object.iRadian) * param["Movie.Width"]) / 2);
_local2[0].Object.YValue = _local2[0].PosY + ((Math.sin(_local2[0].Object.iRadian) * param["Movie.Height"]) / 2);
}
_local2[0].Object._x = _local2[0].Object.XValue;
_local2[0].Object._y = _local2[0].Object.YValue;
_local6 = _local6 & _local2[0].Object.Stoped;
var _local4 = 1;
while (_local4 < _local2.length) {
if (_local2[_local4].Object.XValue < 0) {
_local2[_local4].Object.XValue = _local2[_local4].PosX - param["Movie.Width"];
_local2[_local4].Object.YValue = _local2[_local4].PosY;
if (!_local2[_local4].Object.Stoped) {
g_char_num = g_char_num - 1;
_local2[_local4].Object.Stoped = true;
}
} else {
var _local3 = _local2[_local4].PosX - _local2[_local4 - 1].PosX;
_local2[_local4].Object.XVelocity = (_local2[_local4].Object.XVelocity + (((_local2[_local4 - 1].Object.XValue + _local3) - _local2[_local4].Object.XValue) / a)) / b;
_local3 = _local2[_local4].PosY - _local2[_local4 - 1].PosY;
_local2[_local4].Object.YVelocity = (_local2[_local4].Object.YVelocity + (((_local2[_local4 - 1].Object.YValue + _local3) - _local2[_local4].Object.YValue) / a)) / b;
_local2[_local4].Object.XValue = _local2[_local4].Object.XValue + _local2[_local4].Object.XVelocity;
_local2[_local4].Object.YValue = _local2[_local4].Object.YValue + _local2[_local4].Object.YVelocity;
}
_local2[_local4].Object._x = _local2[_local4].Object.XValue;
_local2[_local4].Object._y = _local2[_local4].Object.YValue;
_local6 = _local6 & _local2[_local4].Object.Stoped;
_local4++;
}
}
_local5++;
}
if (_local6 && (g_char_num <= 0)) {
_local5 = 0;
while (_local5 < g_charbot_array.length) {
var _local4 = 0;
while (_local4 < g_charbot_array[_local5].length) {
g_charbot_array[_local5][_local4].Object.removeMovieClip();
_local4++;
}
_local5++;
}
delete this.onEnterFrame;
this.play();
}
};
}
Symbol 24 MovieClip Frame 9
stop();
if (!param["Txt.StaticText"]) {
_parent.g_effectcount = _parent.g_effectcount - 1;
if (_parent.g_effectcount <= 0) {
_parent.play();
}
}
Symbol 28 MovieClip [myCursorMovie] Frame 7
gotoAndPlay (1);
Symbol 26 MovieClip Frame 1
ParamsValue = "<ParamsValue><Movie.Width>1100</Movie.Width><Movie.Height>283</Movie.Height><Txt.StrFormatedText><Txt.StrLine><StrText format=\"Font19714default\">We have more of What you really want.</StrText></Txt.StrLine></Txt.StrFormatedText>\r\n<Txt.Font><Txt.Format name=\"Font19714default\"><FontFormatName>Font19714default</FontFormatName><FontSize>20</FontSize><FontUnderline>false</FontUnderline><FontXScale>100</FontXScale><FontYScale>100</FontYScale><Alpha>100</Alpha><TextSpace>0</TextSpace><FillStyle>solid</FillStyle><FontBeginColor>0xCCFFCC</FontBeginColor><FontEndColor>0xFFFFFF</FontEndColor><Border>true</Border><BorderColor>0x000000</BorderColor><BorderSize>3</BorderSize><BorderShadow>false</BorderShadow><CharRotation>0</CharRotation></Txt.Format><Txt.Format name=\"Font19714default large\"><FontFormatName>Font19714default large</FontFormatName><FontSize>36</FontSize><FontUnderline>false</FontUnderline><FontXScale>100</FontXScale><FontYScale>100</FontYScale><Alpha>100</Alpha><TextSpace>0</TextSpace><FillStyle>radial</FillStyle><FontBeginColor>0xFF9900</FontBeginColor><FontEndColor>0xFFFFFF</FontEndColor><Border>false</Border><BorderColor>0xFF0000</BorderColor><BorderSize>0</BorderSize><BorderShadow>false</BorderShadow><CharRotation>0</CharRotation></Txt.Format><Txt.Format name=\"Font19714default small\"><FontFormatName>Font19714default small</FontFormatName><FontSize>16</FontSize><FontUnderline>false</FontUnderline><FontXScale>100</FontXScale><FontYScale>100</FontYScale><Alpha>100</Alpha><TextSpace>0</TextSpace><FillStyle>solid</FillStyle><FontBeginColor>0xFFCC00</FontBeginColor><FontEndColor>0x663300</FontEndColor><Border>false</Border><BorderColor>0xFF0000</BorderColor><BorderSize>0</BorderSize><BorderShadow>false</BorderShadow><CharRotation>0</CharRotation></Txt.Format><Txt.Format name=\"Font19714web link\"><FontFormatName>Font19714web link</FontFormatName><FontSize>14</FontSize><FontUnderline>true</FontUnderline><FontXScale>100</FontXScale><FontYScale>100</FontYScale><Alpha>100</Alpha><TextSpace>0</TextSpace><FillStyle>solid</FillStyle><FontBeginColor>0xFF0000</FontBeginColor><FontEndColor>0xFFFFFF</FontEndColor><Border>false</Border><BorderColor>0xFF0000</BorderColor><BorderSize>0</BorderSize><BorderShadow>false</BorderShadow><CharRotation>0</CharRotation></Txt.Format></Txt.Font><Txt.InSpeed>2</Txt.InSpeed><Txt.InDelay>1</Txt.InDelay><Txt.OutSpeed>2</Txt.OutSpeed><Txt.OutDelay>1</Txt.OutDelay><Txt.EffectColor>0x33CC33</Txt.EffectColor><Txt.PosX>287</Txt.PosX><Txt.PosY>141</Txt.PosY><Txt.Rotation>0</Txt.Rotation><Txt.LineSpace>0</Txt.LineSpace><Txt.LineAlign>1</Txt.LineAlign><Txt.StaticText>false</Txt.StaticText><Txt.DelayFrame>0</Txt.DelayFrame><Txt.SkipEnter>false</Txt.SkipEnter><Txt.LinesSyncEnter>false</Txt.LinesSyncEnter><Txt.DurationFrame>33</Txt.DurationFrame><Txt.SkipLeave>false</Txt.SkipLeave><Txt.LinesSyncLeave>false</Txt.LinesSyncLeave><Txt.LeaveFromBegin>true</Txt.LeaveFromBegin><Txt.KeepText>false</Txt.KeepText><Txt.URL>false</Txt.URL><Txt.URLAddress>about:blank</Txt.URLAddress><Txt.URLTarget></Txt.URLTarget></ParamsValue>";
function effectIn(charMovie, posX, posY, inSpeed, delayFrame, charAlpha, charRotation, effectMCScale) {
var _local1 = this;
var _local2 = charMovie;
_local2._visible = false;
_local2._y = posY;
_local2._x = posX;
_local2._alpha = charAlpha;
_local2._rotation = charRotation;
_local2.delayFrame = delayFrame;
_local2.effectMCScale = effectMCScale;
_local2.onEnterFrame = function () {
var _local1 = this;
if ((--_local1.delayFrame) <= 0) {
_local1._visible = true;
_local1._parent.cursorMC._xscale = (_local1._parent.cursorMC._yscale = _local1.effectMCScale);
_local1._parent.cursorMC._x = _local1._x + _local1._width;
_local1._parent.cursorMC._y = _local1._y + (_local1._height / 2);
delete _local1.onEnterFrame;
_local1._parent.g_char_num = _local1._parent.g_char_num - 1;
if (_local1._parent.g_char_num <= 0) {
_local1._parent.play();
}
}
};
}
function effectOut(charMovie, posMaxX, posMaxY, outSpeed, delayFrame) {
var _local1 = this;
charMovie.delayFrame = delayFrame;
charMovie.onEnterFrame = function () {
var _local1 = this;
if ((--_local1.delayFrame) <= 0) {
_local1._parent.cursorMC._x = _local1._x;
_local1._parent.cursorMC._y = _local1._y + (_local1._height / 2);
_local1._parent.g_char_num = _local1._parent.g_char_num - 1;
if (_local1._parent.g_char_num <= 0) {
_local1._parent.play();
}
delete _local1.onEnterFrame;
_local1.removeMovieClip();
}
};
}
function noActionIn(charMovie, posX, posY, charAlpha, charRotation) {
var _local1 = this;
charMovie._y = posY;
charMovie._x = posX;
charMovie._rotation = charRotation;
charMovie._alpha = 0;
charMovie.onEnterFrame = function () {
var _local1 = this;
if ((charMovie._alpha + 10) > charAlpha) {
charMovie._alpha = charAlpha;
delete _local1.onEnterFrame;
_local1._parent.g_char_num = _local1._parent.g_char_num - 1;
if (_local1._parent.g_char_num <= 0) {
_local1._parent.play();
}
}
charMovie._alpha = charMovie._alpha + 10;
};
}
function noActionOut(charMovie) {
var _local1 = this;
charMovie.onEnterFrame = function () {
var _local1 = this;
_local1._alpha = _local1._alpha - 10;
if (_local1._alpha <= 0) {
_local1._parent.g_char_num = _local1._parent.g_char_num - 1;
if (_local1._parent.g_char_num <= 0) {
_local1._parent.play();
}
delete _local1.onEnterFrame;
_local1.removeMovieClip();
}
};
}
ParamsDefine = "<ParamsDefine><Txt.InSpeed caption=\"Entering speed\" type=\"integer\" min=\"1\" max=\"10\" default=\"2\"/><Txt.InDelay caption=\"Entering delay\" type=\"integer\" min=\"1\" max=\"10\" default=\"1\"/><Txt.OutSpeed caption=\"Leaving speed\" type=\"integer\" min=\"1\" max=\"10\" default=\"2\"/><Txt.OutDelay caption=\"Leaving delay\" type=\"integer\" min=\"1\" max=\"10\" default=\"1\"/><Txt.EffectColor caption=\"Cursor color\" type=\"color\" default=\"0x33CC33\"/></ParamsDefine>";
var param = new Array();
if (ParamsValue != null) {
paramXML = new XML(ParamsValue);
paramXML.ignoreWhite = false;
var i = 0;
while (i < paramXML.childNodes[0].childNodes.length) {
node = paramXML.childNodes[0].childNodes[i];
if ((node.nodeName == "Txt.StrFormatedText") || (node.nodeName == "Txt.Font")) {
param[node.nodeName] = node.toString();
} else {
param[node.nodeName] = node.childNodes[0].nodeValue;
}
i++;
}
param["Movie.Width"] = _parent._width;
param["Movie.Height"] = _parent._height;
param["Txt.InSpeed"] = parseInt(param["Txt.InSpeed"]);
param["Txt.InDelay"] = parseInt(param["Txt.InDelay"]);
param["Txt.OutSpeed"] = parseInt(param["Txt.OutSpeed"]);
param["Txt.OutDelay"] = parseInt(param["Txt.OutDelay"]);
param["Txt.EffectColor"] = parseInt(param["Txt.EffectColor"]);
param["Txt.PosX"] = parseInt(param["Txt.PosX"]);
param["Txt.PosY"] = parseInt(param["Txt.PosY"]);
param["Txt.Rotation"] = parseInt(param["Txt.Rotation"]);
param["Txt.LineSpace"] = parseInt(param["Txt.LineSpace"]);
param["Txt.LineAlign"] = parseInt(param["Txt.LineAlign"]);
param["Txt.StaticText"] = param["Txt.StaticText"].toLowerCase() == "true";
param["Txt.DelayFrame"] = parseInt(param["Txt.DelayFrame"]);
param["Txt.SkipEnter"] = param["Txt.SkipEnter"].toLowerCase() == "true";
param["Txt.LinesSyncEnter"] = param["Txt.LinesSyncEnter"].toLowerCase() == "true";
param["Txt.DurationFrame"] = parseInt(param["Txt.DurationFrame"]);
param["Txt.SkipLeave"] = param["Txt.SkipLeave"].toLowerCase() == "true";
param["Txt.LinesSyncLeave"] = param["Txt.LinesSyncLeave"].toLowerCase() == "true";
param["Txt.LeaveFromBegin"] = param["Txt.LeaveFromBegin"].toLowerCase() == "true";
param["Txt.KeepText"] = param["Txt.KeepText"].toLowerCase() == "true";
param["Txt.URL"] = param["Txt.URL"].toLowerCase() == "true";
delete paramXML;
} else {
param["Movie.Width"] = 400;
param["Movie.Height"] = 300;
param["Txt.StrFormatedText"] = "<Txt.StrFormatedText><Txt.StrLine><StrText format=\"default\">Aleo Flash Intro and Banner Maker</StrTetxt></Txt.StrLine></Txt.StrFormatedText>";
param["Txt.Font"] = "<Txt.Font><Txt.Format name=\"default\"><FontFormatName>default</FontFormatName><FontSize>24</FontSize><FontUnderline>false</FontUnderline><FontXScale>100</FontXScale><FontYScale>100</FontYScale><Alpha>100</Alpha><TextSpace>0</TextSpace><FillStyle>solid</FillStyle><FontBeginColor>0xFF0000</FontBeginColor><FontEndColor>0x0000FF</FontEndColor><Border>true</Border><BorderColor>0x00ffff</BorderColor><BorderSize>0</BorderSize><BorderShadow>false</BorderShadow><CharRotation>0</CharRotation></Txt.Format></Txt.Font>";
param["Txt.InSpeed"] = 2;
param["Txt.InDelay"] = 1;
param["Txt.OutSpeed"] = 2;
param["Txt.OutDelay"] = 1;
param["Txt.EffectColor"] = 3394611 /* 0x33CC33 */;
param["Txt.PosX"] = 100;
param["Txt.PosY"] = 100;
param["Txt.Rotation"] = 0;
param["Txt.LineSpace"] = 20;
param["Txt.LineAlign"] = 1;
param["Txt.StaticText"] = false;
param["Txt.DelayFrame"] = 20;
param["Txt.SkipEnter"] = false;
param["Txt.LinesSyncEnter"] = false;
param["Txt.DurationFrame"] = 10;
param["Txt.SkipLeave"] = false;
param["Txt.LinesSyncLeave"] = false;
param["Txt.LeaveFromBegin"] = false;
param["Txt.KeepText"] = false;
param["Txt.URL"] = false;
param["Txt.URLAddress"] = "about:blank";
param["Txt.URLTarget"] = "_blank";
}
if (param["Txt.StrFormatedText"] != null) {
paramXML = new XML(param["Txt.StrFormatedText"]);
paramXML.ignoreWhite = false;
param["Txt.LineNum"] = paramXML.childNodes[0].childNodes.length;
var i = 0;
while (i < paramXML.childNodes[0].childNodes.length) {
node = paramXML.childNodes[0].childNodes[i];
param[(node.nodeName + ".") + i] = node.toString();
i++;
}
delete paramXML;
}
if (param["Txt.Font"] != null) {
paramXML = new XML(param["Txt.Font"]);
paramXML.ignoreWhite = false;
var i = 0;
var format_name;
while (i < paramXML.childNodes[0].childNodes.length) {
node = paramXML.childNodes[0].childNodes[i];
format_name = node.attributes.name;
param[(node.nodeName + ".") + format_name] = new Array();
var j = 0;
while (j < node.childNodes.length) {
childNode = node.childNodes[j];
param[(node.nodeName + ".") + format_name][childNode.nodeName] = childNode.childNodes[0].nodeValue;
j++;
}
param[(node.nodeName + ".") + format_name].FontSize = parseInt(param[(node.nodeName + ".") + format_name].FontSize);
param[(node.nodeName + ".") + format_name].FontUnderline = param[(node.nodeName + ".") + format_name].FontUnderline == "true";
param[(node.nodeName + ".") + format_name].FontXScale = parseInt(param[(node.nodeName + ".") + format_name].FontXScale);
param[(node.nodeName + ".") + format_name].FontYScale = parseInt(param[(node.nodeName + ".") + format_name].FontYScale);
param[(node.nodeName + ".") + format_name].Alpha = parseInt(param[(node.nodeName + ".") + format_name].Alpha);
param[(node.nodeName + ".") + format_name].TextSpace = parseInt(param[(node.nodeName + ".") + format_name].TextSpace);
param[(node.nodeName + ".") + format_name].FontBeginColor = parseInt(param[(node.nodeName + ".") + format_name].FontBeginColor);
param[(node.nodeName + ".") + format_name].FontEndColor = parseInt(param[(node.nodeName + ".") + format_name].FontEndColor);
param[(node.nodeName + ".") + format_name].Border = param[(node.nodeName + ".") + format_name].Border == "true";
param[(node.nodeName + ".") + format_name].BorderColor = parseInt(param[(node.nodeName + ".") + format_name].BorderColor);
param[(node.nodeName + ".") + format_name].BorderSize = parseInt(param[(node.nodeName + ".") + format_name].BorderSize);
param[(node.nodeName + ".") + format_name].BorderShadow = param[(node.nodeName + ".") + format_name].BorderShadow.toLowerCase() == "true";
param[(node.nodeName + ".") + format_name].CharRotation = parseInt(param[(node.nodeName + ".") + format_name].CharRotation);
i++;
}
delete paramXML;
}
this._rotation = param["Txt.Rotation"];
if (param["Txt.StaticText"]) {
gotoAndPlay(_currentframe + 3);
}
var cursorMC = this.attachMovie("myCursorMovie", "cursorMC", 500);
cursorMC._x = -100;
var cursorColor = new Color(cursorMC);
cursorColor.setRGB(param["Txt.EffectColor"]);
Symbol 26 MovieClip Frame 3
param["Txt.DelayFrame"] = param["Txt.DelayFrame"] - 1;
if (param["Txt.DelayFrame"] > 0) {
gotoAndPlay(_currentframe - 1);
}
Symbol 26 MovieClip Frame 4
function stage1_display(str, fmt_style, pos_xy, char_num, line_char_num, charbot_array) {
var i1 = 0;
while (i1 < str.length) {
var chrcontainer = this.createEmptyMovieClip(((("chrcontainer_" + char_num) + line_char_num) + i1) + 1, ((char_num + line_char_num) + i1) + 1);
charbot_array.push(chrcontainer);
var i2 = 0;
if (fmt_style.Border) {
i2 = 0;
while (i2 < 8) {
var iShadow;
if (fmt_style.BorderShadow) {
iShadow = 0.6;
} else {
iShadow = 0;
}
var dup_x = (((fmt_style.BorderSize * 1.2) * Math.cos(((2 * i2) * 3.141593) / 8)) + iShadow);
var dup_y = (((fmt_style.BorderSize * 1.2) * Math.sin(((2 * i2) * 3.141593) / 8)) + iShadow);
chrcontainer.createTextField((("t_fielddup_" + i1) + "_") + i2, i2 + 1, dup_x, dup_y, 0, 0);
var t_field = chrcontainer[(("t_fielddup_" + i1) + "_") + i2];
t_field.embedFonts = true;
t_field.text = str.charAt(i1);
var t_fmt = new TextFormat();
t_fmt.font = fmt_style.FontFormatName;
t_fmt.color = fmt_style.BorderColor;
t_fmt.size = fmt_style.FontSize;
t_fmt.underline = fmt_style.FontUnderline;
t_field.setTextFormat(t_fmt);
t_field.autoSize = "left";
t_field.selectable = false;
t_field._xscale = fmt_style.FontXScale;
t_field._yscale = fmt_style.FontYScale;
i2++;
}
}
var chrobj = chrcontainer.createEmptyMovieClip("chrobj_" + i1, (i1 + i2) + 1);
chrobj.createTextField("t_field_" + i1, i1 + 1, 0, 0, 0, 0);
var t_field = chrobj["t_field_" + i1];
t_field.embedFonts = true;
t_field.text = str.charAt(i1);
var t_fmt = new TextFormat();
t_fmt.font = fmt_style.FontFormatName;
t_fmt.color = fmt_style.FontBeginColor;
t_fmt.size = fmt_style.FontSize;
t_fmt.underline = fmt_style.FontUnderline;
t_field.setTextFormat(t_fmt);
t_field.autoSize = "left";
t_field.selectable = false;
t_field._xscale = fmt_style.FontXScale;
t_field._yscale = fmt_style.FontYScale;
if ((fmt_style.FillStyle == "radial") || (fmt_style.FillStyle == "linear")) {
with (chrobj) {
colors = [fmt_style.FontBeginColor, fmt_style.FontEndColor];
alphas = [100, 100];
ratios = [0, 255];
matrix = {matrixType:"box", x:0, y:0, w:t_field._width * 2, h:t_field._height, r:(Math.PI/2)};
beginGradientFill(fmt_style.FillStyle, colors, alphas, ratios, matrix);
moveTo(0, 0);
lineTo(t_field._width * 2, 0);
lineTo(t_field._width * 2, t_field._height);
lineTo(0, t_field._height);
lineTo(0, 0);
endFill();
}
chrobj.setMask(t_field);
}
var posY;
if (param["Txt.LineAlign"] == 0) {
posY = pos_xy.Y - 2;
} else if (param["Txt.LineAlign"] == 2) {
var metrics = t_fmt.getTextExtent(str.charAt(i1));
if ((metrics.ascent == undefined) || (metrics.ascent <= 0)) {
posY = (pos_xy.Y - chrcontainer._height) + 2;
} else {
posY = (pos_xy.Y - 2) - metrics.ascent;
}
} else {
posY = pos_xy.Y - (chrcontainer._height / 2);
}
if (param["Txt.SkipEnter"]) {
noActionIn(chrcontainer, pos_xy.X, posY, fmt_style.Alpha, fmt_style.CharRotation);
} else {
var iDelayFrame = (param["Txt.InDelay"] * (i1 + line_char_num));
if (!param["Txt.LinesSyncEnter"]) {
iDelayFrame = iDelayFrame + (param["Txt.InDelay"] * char_num);
}
var iEffectMCScale = ((t_field._height > pos_xy.MaxY) ? (t_field._height) : (pos_xy.MaxY));
iEffectMCScale = (iEffectMCScale * 100) / 30;
effectIn(chrcontainer, pos_xy.X, posY, param["Txt.InSpeed"], iDelayFrame, fmt_style.Alpha, fmt_style.CharRotation, iEffectMCScale);
}
var t_margin = (t_field._width - t_field.textWidth);
pos_xy.X = ((pos_xy.X + (t_field._width - t_margin)) + 0.5) + fmt_style.TextSpace;
if (t_field._height > pos_xy.MaxY) {
pos_xy.MaxY = t_field._height;
}
i1++;
}
}
stop();
var g_char_num = 0;
var g_charbot_array = new Array();
var pos_xy = new Array();
pos_xy.X = param["Txt.PosX"];
pos_xy.Y = param["Txt.PosY"];
pos_xy.MaxY = 0;
var i1 = 0;
i1 = 0;
while (i1 < param["Txt.LineNum"]) {
var str_line = param["Txt.StrLine." + i1];
if (str_line != null) {
var paramXML;
var fmt_name;
var str_text;
var line_char_num;
var charbot_line;
var charbot_str;
paramXML = new XML(str_line);
paramXML.ignoreWhite = true;
line_char_num = 0;
charbot_line = new Array();
pos_xy.X = param["Txt.PosX"];
pos_xy.Y = (pos_xy.Y + pos_xy.MaxY) + param["Txt.LineSpace"];
if (paramXML.childNodes[0].childNodes.length > 0) {
pos_xy.MaxY = 0;
var i2 = 0;
while (i2 < paramXML.childNodes[0].childNodes.length) {
node = paramXML.childNodes[0].childNodes[i2];
fmt_name = node.attributes.format;
str_text = node.childNodes[0].nodeValue;
fmt_style = param["Txt.Format." + fmt_name];
stage1_display(str_text, fmt_style, pos_xy, g_char_num, line_char_num, charbot_line);
line_char_num = line_char_num + str_text.length;
i2++;
}
}
g_char_num = g_char_num + line_char_num;
g_charbot_array.push(charbot_line);
delete paramXML;
}
i1++;
}
Symbol 26 MovieClip Frame 6
if (param["Txt.DurationFrame"] < 0) {
gotoAndPlay(_currentframe - 1);
} else {
param["Txt.DurationFrame"] = param["Txt.DurationFrame"] - 1;
if (param["Txt.DurationFrame"] > 0) {
gotoAndPlay(_currentframe - 1);
} else {
gotoAndPlay(_currentframe + 1);
}
}
Symbol 26 MovieClip Frame 7
if (param["Txt.KeepText"] || (param["Txt.StaticText"])) {
gotoAndPlay(_currentframe + 2);
}
Symbol 26 MovieClip Frame 8
stop();
var line_num = g_charbot_array.length;
g_char_num = 0;
var i1 = 0;
while (i1 < g_charbot_array.length) {
var line_array;
if (param["Txt.LeaveFromBegin"]) {
line_array = g_charbot_array[i1];
} else {
line_array = g_charbot_array[(g_charbot_array.length - 1) - i1];
}
for (var i2 in line_array) {
if (param["Txt.SkipLeave"]) {
noActionOut(line_array[i2]);
} else {
var iDelayFrame = 0;
if (param["Txt.LeaveFromBegin"]) {
iDelayFrame = param["Txt.OutDelay"] * i2;
} else {
iDelayFrame = param["Txt.OutDelay"] * (line_array.length - i2);
}
if (!param["Txt.LinesSyncLeave"]) {
iDelayFrame = iDelayFrame + (param["Txt.OutDelay"] * g_char_num);
}
effectOut(line_array[i2], param["Movie.Width"], param["Movie.Height"], param["Txt.OutSpeed"], iDelayFrame);
}
}
g_char_num = g_char_num + line_array.length;
i1++;
}
Symbol 26 MovieClip Frame 9
stop();
cursorMC.removeMovieClip();
if (!param["Txt.StaticText"]) {
_parent.g_effectcount = _parent.g_effectcount - 1;
if (_parent.g_effectcount <= 0) {
_parent.play();
}
}