Frame 1
this.setMask(movieShapeMaskMC);
Frame 3
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 4
play();
Frame 5
stop();
g_effectcount = 1;
Frame 6
gotoAndPlay ("loopstart");
Symbol 4 MovieClip Frame 1
ParamsValue = "<ParamsValue><Bg.Color>0x808000</Bg.Color><Bg.BgColor>0xFFFFFF</Bg.BgColor></ParamsValue>";
ParamsDefine = "<ParamsDefine><Bg.Color caption=\"Color\" type=\"color\" default=\"0x262693\"/><Bg.BgColor caption=\"Background color\" type=\"color\" default=\"0xFFFFFF\"/></ParamsDefine>";
param = new Array();
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["Bg.Color"] = parseInt(param["Bg.Color"]);
} else {
param["Bg.Color"] = 2500243 /* 0x262693 */;
param["Bg.BgColor"] = 16777215 /* 0xFFFFFF */;
}
_parent.stop();
var myColor = new Color(percentClip);
myColor.setRGB(param["Bg.Color"]);
var myColor = new Color(loadingBar);
myColor.setRGB(param["Bg.Color"]);
bytesDisplay.textColor = param["Bg.Color"];
Symbol 4 MovieClip Frame 2
var siteLoaded = _parent.getBytesLoaded();
var siteTotal = _parent.getBytesTotal();
var percentage = Math.round((siteLoaded / siteTotal) * 100);
loadingBar._xscale = percentage;
percentClip.percentDisplay.text = percentage + "%";
percentClip._x = loadingBar._x + loadingBar._width;
bytesDisplay.text = ((("loaded " + siteLoaded) + " of ") + siteTotal) + " bytes";
if (siteLoaded >= siteTotal) {
gotoAndPlay(_currentframe + 2);
}
Symbol 4 MovieClip Frame 3
gotoAndPlay(_currentframe - 1);
Symbol 4 MovieClip Frame 4
stop();
_parent.play();
Symbol 24 MovieClip Frame 46
this._x = random(this.MaxWidth);
this._y = random(this.MaxHeight);
this._alpha = random(100) + 20;
this._xscale = random(60) + 60;
this._yscale = this._xscale;
Symbol 21 MovieClip Frame 1
ParamsValue = "<ParamsValue><Movie.Width>626</Movie.Width><Movie.Height>904</Movie.Height><Movie.FPS>24</Movie.FPS><Bg.Alpha>100</Bg.Alpha><Bg.Number>150</Bg.Number><Bg.Color>0xFFFFFF</Bg.Color></ParamsValue>";
ParamsDefine = "<ParamsDefine><Bg.Alpha caption=\"Alpha\" type=\"integer\" min=\"0\" max=\"1000\" default=\"100\"/><Bg.Number caption=\"Star number\" type=\"integer\" min=\"1\" max=\"500\" default=\"15\"/><Bg.Color caption=\"Star color\" type=\"color\" default=\"0xFFFFFF\"/></ParamsDefine>";
param = new Array();
param["Movie.Width"] = _parent._width;
param["Movie.Height"] = _parent._height;
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["Bg.Alpha"] = parseInt(param["Bg.Alpha"]);
param["Bg.Number"] = parseInt(param["Bg.Number"]);
param["Bg.Color"] = parseInt(param["Bg.Color"]);
param["Movie.Width"] = parseInt(param["Movie.Width"]);
param["Movie.Height"] = parseInt(param["Movie.Height"]);
} else {
param["Bg.Alpha"] = 100;
param["Bg.Number"] = 15;
param["Bg.Color"] = 16777215 /* 0xFFFFFF */;
param["Movie.Width"] = 400;
param["Movie.Height"] = 300;
}
i = 0;
while (i < 1) {
this["bot" + i]._visible = false;
i++;
}
i = 1;
while (i < param["Bg.Number"]) {
duplicateMovieClip ("bot0", "bot" + i, i);
i++;
}
i = 0;
while (i < param["Bg.Number"]) {
this["bot" + i]._visible = true;
var myColor = new Color(this["bot" + i]);
myColor.setRGB(param["Bg.Color"]);
this["bot" + i].MaxWidth = param["Movie.Width"];
this["bot" + i].MaxHeight = param["Movie.Height"];
this["bot" + i]._x = random(param["Movie.Width"]);
this["bot" + i]._y = random(param["Movie.Height"]);
this["bot" + i]._alpha = random(100) + 20;
this["bot" + i]._xscale = random(60) + 60;
this["bot" + i]._yscale = this["bot" + i]._xscale;
this["bot" + i].gotoAndPlay(random(45));
i++;
}
this._alpha = param["Bg.Alpha"];
Symbol 28 MovieClip Frame 121
this._x = random(this.MaxWidth);
this._y = random(this.MaxHeight);
this._rotation = random(360);
this._xscale = random(40) + 80;
this._yscale = this._xscale;
Symbol 26 MovieClip Frame 1
ParamsValue = "<ParamsValue><Movie.Width>626</Movie.Width><Movie.Height>904</Movie.Height><Movie.FPS>24</Movie.FPS><Bg.Alpha>80</Bg.Alpha><Bg.Number>80</Bg.Number><Bg.Color>0xffffff</Bg.Color></ParamsValue>";
ParamsDefine = "<ParamsDefine><Bg.Alpha caption=\"Alpha\" type=\"integer\" min=\"0\" max=\"1000\" default=\"80\"/><Bg.Number caption=\"Number\" type=\"integer\" min=\"1\" max=\"100\" default=\"10\"/><Bg.Color caption=\"Color\" type=\"color\" default=\"0xFFFF00\"/></ParamsDefine>";
param = new Array();
param["Movie.Width"] = _parent._width;
param["Movie.Height"] = _parent._height;
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["Bg.Alpha"] = parseInt(param["Bg.Alpha"]);
param["Bg.Number"] = parseInt(param["Bg.Number"]);
param["Bg.Color"] = parseInt(param["Bg.Color"]);
param["Movie.Width"] = parseInt(param["Movie.Width"]);
param["Movie.Height"] = parseInt(param["Movie.Height"]);
} else {
param["Bg.Alpha"] = 40;
param["Bg.Number"] = 10;
param["Bg.Color"] = 16776960 /* 0xFFFF00 */;
param["Movie.Width"] = 400;
param["Movie.Height"] = 300;
}
i = 0;
while (i < 1) {
this["bot" + i]._visible = false;
i++;
}
i = 1;
while (i < param["Bg.Number"]) {
duplicateMovieClip ("bot0", "bot" + i, i);
i++;
}
i = 0;
while (i < param["Bg.Number"]) {
this["bot" + i]._visible = true;
this["bot" + i]._xscale = random(40) + 80;
this["bot" + i]._yscale = this["bot" + i]._xscale;
this["bot" + i]._rotation = random(360);
this["bot" + i]._alpha = random(30) + 80;
this["bot" + i].MaxWidth = param["Movie.Width"];
this["bot" + i].MaxHeight = param["Movie.Height"];
var my_color = new Color(this["bot" + i]);
my_color.setRGB(param["Bg.Color"]);
this["bot" + i]._x = random(param["Movie.Width"]);
this["bot" + i]._y = random(param["Movie.Height"]);
this["bot" + i].gotoAndPlay(random(120));
i++;
}
this._alpha = param["Bg.Alpha"];
Symbol 32 MovieClip [starMovie] Frame 1
var mcColor = new Color(this);
mcColor.setRGB(this.effectColor);
this._alpha = random(100) + 20;
i = random(80) + 50;
this._xscale = 10;
this._yscale = 10;
speed = random(10) + 5;
Symbol 32 MovieClip [starMovie] Frame 2
this._xscale = this._xscale + speed;
this._yscale = this._yscale + speed;
Symbol 32 MovieClip [starMovie] Frame 3
gotoAndPlay (2);
if (_xscale >= i) {
gotoAndPlay (4);
}
Symbol 32 MovieClip [starMovie] Frame 4
this._xscale = this._xscale - speed;
this._yscale = this._yscale - speed;
Symbol 32 MovieClip [starMovie] Frame 5
gotoAndPlay (4);
if (_yscale <= 10) {
this.removeMovieClip();
}
Symbol 36 MovieClip Frame 30
this.removeMovieClip();
Symbol 37 MovieClip Frame 1
i = 0;
while (i < 6) {
this.dotMovie._visible = 0;
mc = this.dotMovie.duplicateMovieClip("dotMovie" + i, i);
var mcColor = new Color(mc);
mcColor.setRGB(this.effectColor);
mc._rotation = random(360);
mc._xscale = (mc._yscale = random(50) + 50);
i++;
}
Symbol 38 MovieClip [effectMovie] Frame 3
dotsMovie.effectColor = this.effectColor;
if ((--this.delayFrame) > 0) {
gotoAndPlay(_currentframe - 1);
}
Symbol 38 MovieClip [effectMovie] Frame 36
if ((--this._parent.g_char_num) <= 0) {
this._parent.play();
}
gotoAndPlay ("effectDuration");
Symbol 38 MovieClip [effectMovie] Frame 55
if ((--this._parent.g_char_num) <= 0) {
this._parent.play();
}
gotoAndPlay ("effectDuration");
Symbol 38 MovieClip [effectMovie] Frame 61
if (random(20) == 0) {
starMC = this.attachMovie("starMovie", "starMC", 100);
starMC._x = (charMovie._x + random(charMovie._width)) - (charMovie._width / 2);
starMC._y = (charMovie._y + random(charMovie._height)) - (charMovie._height / 2);
starMC.effectColor = this.effectColor;
}
Symbol 38 MovieClip [effectMovie] Frame 75
gotoAndPlay ("effectDuration");
Symbol 38 MovieClip [effectMovie] Frame 82
if ((--this.delayFrame) > 0) {
gotoAndPlay(_currentframe - 1);
}
Symbol 38 MovieClip [effectMovie] Frame 98
stop();
if ((--this._parent.g_char_num) <= 0) {
this._parent.play();
}
this.removeMovieClip();
Symbol 38 MovieClip [effectMovie] Frame 118
stop();
if ((--this._parent.g_char_num) <= 0) {
this._parent.play();
}
this.removeMovieClip();
Symbol 30 MovieClip Frame 1
ParamsValue = "<ParamsValue><Movie.Width>626</Movie.Width><Movie.Height>904</Movie.Height><Txt.StrFormatedText><Txt.StrLine><StrText format=\"Font9818default\">Happy Birthday!</StrText></Txt.StrLine></Txt.StrFormatedText>\r\n<Txt.Font><Txt.Format name=\"Font9818default\"><FontFormatName>Font9818default</FontFormatName><FontSize>20</FontSize><FontUnderline>false</FontUnderline><FontXScale>100</FontXScale><FontYScale>100</FontYScale><Alpha>100</Alpha><TextSpace>0</TextSpace><FillStyle>solid</FillStyle><FontBeginColor>0xFFFFFF</FontBeginColor><FontEndColor>0xFFFFFF</FontEndColor><Border>false</Border><BorderColor>0xFF0000</BorderColor><BorderSize>0</BorderSize><BorderShadow>false</BorderShadow><CharRotation>0</CharRotation></Txt.Format><Txt.Format name=\"Font9818default large\"><FontFormatName>Font9818default 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=\"Font9818default small\"><FontFormatName>Font9818default 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=\"Font9818web link\"><FontFormatName>Font9818web 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.InDelay>0</Txt.InDelay><Txt.OutDelay>0</Txt.OutDelay><Txt.EffectColor>0xFFFFFF</Txt.EffectColor><Txt.PosX>245</Txt.PosX><Txt.PosY>452</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>24</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>";
ParamsDefine = "<ParamsDefine><Txt.InDelay caption=\"Entering delay\" type=\"integer\" min=\"1\" max=\"10\" default=\"0\"/><Txt.OutDelay caption=\"Leaving delay\" type=\"integer\" min=\"1\" max=\"10\" default=\"0\"/><Txt.EffectColor caption=\"Dot color\" type=\"color\" default=\"0xFFFFFF\"/></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.InDelay"] = parseInt(param["Txt.InDelay"]);
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.InDelay"] = 1;
param["Txt.OutDelay"] = 1;
param["Txt.EffectColor"] = 16777215 /* 0xFFFFFF */;
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 30 MovieClip Frame 3
param["Txt.DelayFrame"] = param["Txt.DelayFrame"] - 1;
if (param["Txt.DelayFrame"] > 0) {
gotoAndPlay(_currentframe - 1);
}
Symbol 30 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) {
this.attachMovie("effectMovie", ((("effectMovie_" + char_num) + line_char_num) + i1) + 1, ((char_num + line_char_num) + i1) + 1);
var chrcontainer = this[((("effectMovie_" + char_num) + line_char_num) + i1) + 1];
chrcontainer.effectColor = param["Txt.EffectColor"];
charbot_array.push(chrcontainer);
var charTotal = chrcontainer.charMovie.createEmptyMovieClip("charTotal_" + i1, 1);
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);
charTotal.createTextField((("t_fielddup_" + i1) + "_") + i2, i2 + 1, dup_x, dup_y, 0, 0);
var t_field = charTotal[(("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 = charTotal.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);
}
charTotal._x = (-charTotal._width) / 2;
charTotal._y = (-charTotal._height) / 2;
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.charMovie._height) + 2;
} else {
posY = (pos_xy.Y - 2) - metrics.ascent;
}
} else {
posY = pos_xy.Y - (chrcontainer.charMovie._height / 2);
}
chrcontainer._alpha = fmt_style.Alpha;
chrcontainer._rotation = fmt_style.CharRotation;
var iDelayFrame = (param["Txt.InDelay"] * (i1 + line_char_num));
if (!param["Txt.LinesSyncEnter"]) {
iDelayFrame = iDelayFrame + (param["Txt.InDelay"] * char_num);
}
chrcontainer.delayFrame = iDelayFrame;
chrcontainer._x = pos_xy.X + (chrcontainer._width / 2);
chrcontainer._y = posY + (chrcontainer._height / 2);
if (param["Txt.SkipEnter"]) {
chrcontainer.gotoAndPlay("noEffectIn");
} else {
chrcontainer.gotoAndPlay("effectIn");
}
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 30 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 30 MovieClip Frame 7
if (param["Txt.KeepText"] || (param["Txt.StaticText"])) {
gotoAndPlay(_currentframe + 2);
}
Symbol 30 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) {
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);
}
line_array[i2].delayFrame = iDelayFrame;
if (param["Txt.SkipLeave"]) {
line_array[i2].gotoAndPlay("noEffectOut");
} else {
line_array[i2].gotoAndPlay("effectOut");
}
}
g_char_num = g_char_num + line_array.length;
i1++;
}
Symbol 30 MovieClip Frame 9
stop();
if (!param["Txt.StaticText"]) {
_parent.g_effectcount = _parent.g_effectcount - 1;
if (_parent.g_effectcount <= 0) {
_parent.play();
}
}