Combined Code
movieClip 1 {
}
frame 1 {
this.setMask(movieShapeMaskMC);
}
movieClip 8 {
}
movieClip 9 {
frame 76 {
gotoAndPlay('repeat');
}
}
movieClip 4 {
frame 1 {
ParamsValue = '<ParamsValue><Bg.Color>0xFFFFFF</Bg.Color><Bg.BgColor>0x000000</Bg.BgColor></ParamsValue>';
}
frame 1 {
ParamsDefine = '<ParamsDefine><Bg.Color caption="Color" type="color" default="0xFFFFFF"/><Bg.BgColor caption="Background color" type="color" default="0x000000"/></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 = 16777215;
param.Bg.BgColor = 0;
}
_parent.stop();
var myColor = new Color(loadingCircle);
myColor.setRGB(param.Bg.Color);
bytesDisplay.textColor = param.Bg.Color;
}
frame 2 {
var siteLoaded = _parent.getBytesLoaded();
var siteTotal = _parent.getBytesTotal();
var percentage = Math.round((siteLoaded / siteTotal) * 100);
bytesDisplay.text = percentage;
if (siteLoaded >= siteTotal) {
gotoAndPlay(_currentframe + 2);
}
}
frame 3 {
gotoAndPlay(_currentframe - 1);
}
frame 4 {
stop();
_parent.play();
}
}
frame 3 {
play();
}
movieClip 14 {
}
movieClip 19 {
}
movieClip 20 {
frame 76 {
gotoAndPlay('repeat');
}
}
movieClip 21 {
frame 1 {
ParamsValue = '<ParamsValue><Bg.Color>0xFFFFFF</Bg.Color><Bg.BgColor>0x000000</Bg.BgColor></ParamsValue>';
}
frame 1 {
ParamsDefine = '<ParamsDefine><Bg.Color caption="Color" type="color" default="0xFFFFFF"/><Bg.BgColor caption="Background color" type="color" default="0x000000"/></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 = 16777215;
param.Bg.BgColor = 0;
}
_parent.stop();
var myColor = new Color(loadingCircle);
myColor.setRGB(param.Bg.Color);
bytesDisplay.textColor = param.Bg.Color;
}
frame 2 {
var siteLoaded = _parent.getBytesLoaded();
var siteTotal = _parent.getBytesTotal();
var percentage = Math.round((siteLoaded / siteTotal) * 100);
bytesDisplay.text = percentage;
if (siteLoaded >= siteTotal) {
gotoAndPlay(_currentframe + 2);
}
}
frame 3 {
gotoAndPlay(_currentframe - 1);
}
frame 4 {
stop();
_parent.play();
}
}
movieClip 85 {
frame 1 {
stop();
}
}
movieClip 86 {
}
movieClip 87 {
frame 8 {
hart.heart.play();
}
frame 38 {
gotoAndPlay('s1');
}
}
movieClip 89 {
}
movieClip 91 {
}
movieClip 93 {
}
movieClip 96 {
}
movieClip 97 {
frame 1 {
stop();
var i = 0;
while (i < 5) {
this['EffectBar' + i]._visible = true;
this['EffectBar' + i].onEnterFrame = function () {
this._yscale -= (this._yscale - (random(80) + 20)) / 2;
};
++i;
}
}
}
movieClip 99 {
frame 1 {
stop();
var i = 0;
while (i < 5) {
this['EffectBar' + i]._visible = true;
this['EffectBar' + i]._yscale = 20 * (i + 1);
++i;
}
}
}
movieClip 100 {
frame 1 {
stop();
this.onRelease = function () {
var v2 = new Sound();
v2.setVolume(0);
_parent.VolumeSlideMC._x = _parent.VolumeBarMC._x;
nextFrame();
};
}
frame 2 {
stop();
this.onRelease = function () {
var v2 = new Sound();
v2.setVolume(volumeValue);
_parent.VolumeSlideMC._x = _parent.VolumeBarMC._x + _parent.VolumeBarMC._width * volumeValue / 100;
prevFrame();
};
}
}
movieClip 101 {
frame 1 {
ParamsValue = '<ParamsValue><Bg.Color>0xC0C0C0</Bg.Color><Bg.AutoStart>true</Bg.AutoStart><Bg.AutoStart>True</Bg.AutoStart></ParamsValue>';
}
frame 1 {
ParamsDefine = '<ParamsDefine><Bg.Color caption="Color" type="color" default="0xFFFFFF"/><Bg.AutoStart caption="Auto Start" type="bool" default="true"/></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);
param.Bg.AutoStart = param.Bg.AutoStart.toLowerCase() == 'true';
} else {
param.Bg.Color = 16777215;
param.Bg.AutoStart = true;
}
var myColor = new Color(this);
myColor.setRGB(param.Bg.Color);
var globalVolume = 100;
soundSwitch.volumeValue = globalVolume;
var globalSound = new Sound();
if (!param.Bg.AutoStart) {
globalSound.setVolume(0);
soundSwitch.gotoAndStop(2);
VolumeSlideMC._x = VolumeBarMC._x;
} else {
globalSound.setVolume(globalVolume);
soundSwitch.gotoAndStop(1);
VolumeSlideMC._x = VolumeBarMC._x + VolumeBarMC._width * globalVolume / 100;
}
VolumeBarMC.onPress = function () {
VolumeSlideMC._x = this._xmouse + this._x;
globalVolume = 100 * this._xmouse / this._width;
var v2 = new Sound();
v2.setVolume(globalVolume);
soundSwitch.volumeValue = globalVolume;
};
VolumeSlideMC.onPress = function () {
startDrag(this, false, VolumeBarMC._x, VolumeSlideMC._y, VolumeBarMC._x + VolumeBarMC._width, VolumeSlideMC._y);
globalVolume = 100 * (VolumeSlideMC._x - VolumeBarMC._x) / (VolumeBarMC._width - VolumeSlideMC._width);
var v2 = new Sound();
v2.setVolume(globalVolume);
soundSwitch.volumeValue = globalVolume;
};
VolumeSlideMC.onRelease = function () {
stopDrag();
globalVolume = 100 * (VolumeSlideMC._x - VolumeBarMC._x) / (VolumeBarMC._width - VolumeSlideMC._width);
var v1 = new Sound();
v1.setVolume(globalVolume);
soundSwitch.volumeValue = globalVolume;
};
VolumeSlideMC.onReleaseOutside = VolumeSlideMC.onRelease;
}
}
movieClip 12 {
frame 1 {
this.setMask(movieShapeMaskMC);
}
frame 3 {
play();
}
frame 4 {
play();
}
frame 5 {
stop();
}
frame 6 {
gotoAndPlay('loopstart');
}
}
movieClip 109 {
}
movieClip 114 {
}
movieClip 115 {
frame 76 {
gotoAndPlay('repeat');
}
}
movieClip 116 {
frame 1 {
ParamsValue = '<ParamsValue><Bg.Color>0xFFFFFF</Bg.Color><Bg.BgColor>0x000000</Bg.BgColor></ParamsValue>';
}
frame 1 {
ParamsDefine = '<ParamsDefine><Bg.Color caption="Color" type="color" default="0xFFFFFF"/><Bg.BgColor caption="Background color" type="color" default="0x000000"/></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 = 16777215;
param.Bg.BgColor = 0;
}
_parent.stop();
var myColor = new Color(loadingCircle);
myColor.setRGB(param.Bg.Color);
bytesDisplay.textColor = param.Bg.Color;
}
frame 2 {
var siteLoaded = _parent.getBytesLoaded();
var siteTotal = _parent.getBytesTotal();
var percentage = Math.round((siteLoaded / siteTotal) * 100);
bytesDisplay.text = percentage;
if (siteLoaded >= siteTotal) {
gotoAndPlay(_currentframe + 2);
}
}
frame 3 {
gotoAndPlay(_currentframe - 1);
}
frame 4 {
stop();
_parent.play();
}
}
movieClip 120 {
}
movieClip 122 {
}
movieClip 127 {
}
movieClip 128 {
frame 76 {
gotoAndPlay('repeat');
}
}
movieClip 129 {
frame 1 {
ParamsValue = '<ParamsValue><Bg.Color>0xFFFFFF</Bg.Color><Bg.BgColor>0x000000</Bg.BgColor></ParamsValue>';
}
frame 1 {
ParamsDefine = '<ParamsDefine><Bg.Color caption="Color" type="color" default="0xFFFFFF"/><Bg.BgColor caption="Background color" type="color" default="0x000000"/></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 = 16777215;
param.Bg.BgColor = 0;
}
_parent.stop();
var myColor = new Color(loadingCircle);
myColor.setRGB(param.Bg.Color);
bytesDisplay.textColor = param.Bg.Color;
}
frame 2 {
var siteLoaded = _parent.getBytesLoaded();
var siteTotal = _parent.getBytesTotal();
var percentage = Math.round((siteLoaded / siteTotal) * 100);
bytesDisplay.text = percentage;
if (siteLoaded >= siteTotal) {
gotoAndPlay(_currentframe + 2);
}
}
frame 3 {
gotoAndPlay(_currentframe - 1);
}
frame 4 {
stop();
_parent.play();
}
}
movieClip 193 {
frame 1 {
stop();
}
}
movieClip 194 {
}
movieClip 195 {
frame 8 {
hart.heart.play();
}
frame 38 {
gotoAndPlay('s1');
}
}
movieClip 197 {
}
movieClip 199 {
}
movieClip 201 {
}
movieClip 204 {
}
movieClip 205 {
frame 1 {
stop();
var i = 0;
while (i < 5) {
this['EffectBar' + i]._visible = true;
this['EffectBar' + i].onEnterFrame = function () {
this._yscale -= (this._yscale - (random(80) + 20)) / 2;
};
++i;
}
}
}
movieClip 207 {
frame 1 {
stop();
var i = 0;
while (i < 5) {
this['EffectBar' + i]._visible = true;
this['EffectBar' + i]._yscale = 20 * (i + 1);
++i;
}
}
}
movieClip 208 {
frame 1 {
stop();
this.onRelease = function () {
var v2 = new Sound();
v2.setVolume(0);
_parent.VolumeSlideMC._x = _parent.VolumeBarMC._x;
nextFrame();
};
}
frame 2 {
stop();
this.onRelease = function () {
var v2 = new Sound();
v2.setVolume(volumeValue);
_parent.VolumeSlideMC._x = _parent.VolumeBarMC._x + _parent.VolumeBarMC._width * volumeValue / 100;
prevFrame();
};
}
}
movieClip 209 {
frame 1 {
ParamsValue = '<ParamsValue><Bg.Color>0xC0C0C0</Bg.Color><Bg.AutoStart>true</Bg.AutoStart><Bg.AutoStart>True</Bg.AutoStart></ParamsValue>';
}
frame 1 {
ParamsDefine = '<ParamsDefine><Bg.Color caption="Color" type="color" default="0xFFFFFF"/><Bg.AutoStart caption="Auto Start" type="bool" default="true"/></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);
param.Bg.AutoStart = param.Bg.AutoStart.toLowerCase() == 'true';
} else {
param.Bg.Color = 16777215;
param.Bg.AutoStart = true;
}
var myColor = new Color(this);
myColor.setRGB(param.Bg.Color);
var globalVolume = 100;
soundSwitch.volumeValue = globalVolume;
var globalSound = new Sound();
if (!param.Bg.AutoStart) {
globalSound.setVolume(0);
soundSwitch.gotoAndStop(2);
VolumeSlideMC._x = VolumeBarMC._x;
} else {
globalSound.setVolume(globalVolume);
soundSwitch.gotoAndStop(1);
VolumeSlideMC._x = VolumeBarMC._x + VolumeBarMC._width * globalVolume / 100;
}
VolumeBarMC.onPress = function () {
VolumeSlideMC._x = this._xmouse + this._x;
globalVolume = 100 * this._xmouse / this._width;
var v2 = new Sound();
v2.setVolume(globalVolume);
soundSwitch.volumeValue = globalVolume;
};
VolumeSlideMC.onPress = function () {
startDrag(this, false, VolumeBarMC._x, VolumeSlideMC._y, VolumeBarMC._x + VolumeBarMC._width, VolumeSlideMC._y);
globalVolume = 100 * (VolumeSlideMC._x - VolumeBarMC._x) / (VolumeBarMC._width - VolumeSlideMC._width);
var v2 = new Sound();
v2.setVolume(globalVolume);
soundSwitch.volumeValue = globalVolume;
};
VolumeSlideMC.onRelease = function () {
stopDrag();
globalVolume = 100 * (VolumeSlideMC._x - VolumeBarMC._x) / (VolumeBarMC._width - VolumeSlideMC._width);
var v1 = new Sound();
v1.setVolume(globalVolume);
soundSwitch.volumeValue = globalVolume;
};
VolumeSlideMC.onReleaseOutside = VolumeSlideMC.onRelease;
}
}
movieClip 214 {
frame 1 {
this.setMask(movieShapeMaskMC);
}
frame 3 {
play();
}
frame 4 {
play();
}
frame 5 {
stop();
}
frame 6 {
gotoAndPlay('loopstart');
}
}
movieClip 216 {
}
movieClip 218 {
}
movieClip 220 {
}
movieClip 223 {
}
movieClip 224 {
frame 1 {
stop();
var i = 0;
while (i < 5) {
this['EffectBar' + i]._visible = true;
this['EffectBar' + i].onEnterFrame = function () {
this._yscale -= (this._yscale - (random(80) + 20)) / 2;
};
++i;
}
}
}
movieClip 226 {
frame 1 {
stop();
var i = 0;
while (i < 5) {
this['EffectBar' + i]._visible = true;
this['EffectBar' + i]._yscale = 20 * (i + 1);
++i;
}
}
}
movieClip 227 {
frame 1 {
stop();
this.onRelease = function () {
var v2 = new Sound();
v2.setVolume(0);
_parent.VolumeSlideMC._x = _parent.VolumeBarMC._x;
nextFrame();
};
}
frame 2 {
stop();
this.onRelease = function () {
var v2 = new Sound();
v2.setVolume(volumeValue);
_parent.VolumeSlideMC._x = _parent.VolumeBarMC._x + _parent.VolumeBarMC._width * volumeValue / 100;
prevFrame();
};
}
}
movieClip 228 {
frame 1 {
ParamsValue = '<ParamsValue><Bg.Color>0xC0C0C0</Bg.Color><Bg.AutoStart>true</Bg.AutoStart><Bg.AutoStart>True</Bg.AutoStart></ParamsValue>';
}
frame 1 {
ParamsDefine = '<ParamsDefine><Bg.Color caption="Color" type="color" default="0xFFFFFF"/><Bg.AutoStart caption="Auto Start" type="bool" default="true"/></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);
param.Bg.AutoStart = param.Bg.AutoStart.toLowerCase() == 'true';
} else {
param.Bg.Color = 16777215;
param.Bg.AutoStart = true;
}
var myColor = new Color(this);
myColor.setRGB(param.Bg.Color);
var globalVolume = 100;
soundSwitch.volumeValue = globalVolume;
var globalSound = new Sound();
if (!param.Bg.AutoStart) {
globalSound.setVolume(0);
soundSwitch.gotoAndStop(2);
VolumeSlideMC._x = VolumeBarMC._x;
} else {
globalSound.setVolume(globalVolume);
soundSwitch.gotoAndStop(1);
VolumeSlideMC._x = VolumeBarMC._x + VolumeBarMC._width * globalVolume / 100;
}
VolumeBarMC.onPress = function () {
VolumeSlideMC._x = this._xmouse + this._x;
globalVolume = 100 * this._xmouse / this._width;
var v2 = new Sound();
v2.setVolume(globalVolume);
soundSwitch.volumeValue = globalVolume;
};
VolumeSlideMC.onPress = function () {
startDrag(this, false, VolumeBarMC._x, VolumeSlideMC._y, VolumeBarMC._x + VolumeBarMC._width, VolumeSlideMC._y);
globalVolume = 100 * (VolumeSlideMC._x - VolumeBarMC._x) / (VolumeBarMC._width - VolumeSlideMC._width);
var v2 = new Sound();
v2.setVolume(globalVolume);
soundSwitch.volumeValue = globalVolume;
};
VolumeSlideMC.onRelease = function () {
stopDrag();
globalVolume = 100 * (VolumeSlideMC._x - VolumeBarMC._x) / (VolumeBarMC._width - VolumeSlideMC._width);
var v1 = new Sound();
v1.setVolume(globalVolume);
soundSwitch.volumeValue = globalVolume;
};
VolumeSlideMC.onReleaseOutside = VolumeSlideMC.onRelease;
}
}
movieClip 107 {
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();
}
frame 6 {
gotoAndPlay('loopstart');
}
}
frame 4 {
play();
}
movieClip 238 {
frame 1 {
ParamsValue = '<ParamsValue><Movie.Width>800</Movie.Width><Movie.Height>500</Movie.Height><Txt.StrFormatedText><Txt.StrLine><StrText format="Font7992default">Edit Fekete: Az én szózatom</StrText></Txt.StrLine></Txt.StrFormatedText>\r\n<Txt.Font><Txt.Format name="Font7992default"><FontFormatName>Font7992default</FontFormatName><FontSize>16</FontSize><FontUnderline>false</FontUnderline><FontXScale>100</FontXScale><FontYScale>78</FontYScale><Alpha>100</Alpha><TextSpace>0</TextSpace><FillStyle>linear</FillStyle><FontBeginColor>0xFFFFFF</FontBeginColor><FontEndColor>0xFFFFFF</FontEndColor><Border>true</Border><BorderColor>0x000000</BorderColor><BorderSize>2</BorderSize><BorderShadow>true</BorderShadow><CharRotation>0</CharRotation></Txt.Format><Txt.Format name="Font7992default large"><FontFormatName>Font7992default 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="Font7992default small"><FontFormatName>Font7992default 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="Font7992web link"><FontFormatName>Font7992web link</FontFormatName><FontSize>17</FontSize><FontUnderline>false</FontUnderline><FontXScale>100</FontXScale><FontYScale>80</FontYScale><Alpha>100</Alpha><TextSpace>0</TextSpace><FillStyle>linear</FillStyle><FontBeginColor>0x000000</FontBeginColor><FontEndColor>0xFFFFFF</FontEndColor><Border>true</Border><BorderColor>0x000000</BorderColor><BorderSize>2</BorderSize><BorderShadow>true</BorderShadow><CharRotation>0</CharRotation></Txt.Format></Txt.Font><Txt.InSpeed>2</Txt.InSpeed><Txt.InDelay>2</Txt.InDelay><Txt.OutSpeed>2</Txt.OutSpeed><Txt.OutDelay>2</Txt.OutDelay><Txt.PosX>420</Txt.PosX><Txt.PosY>35</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>10</Txt.DurationFrame><Txt.SkipLeave>false</Txt.SkipLeave><Txt.LinesSyncLeave>true</Txt.LinesSyncLeave><Txt.LeaveFromBegin>true</Txt.LeaveFromBegin><Txt.KeepText>true</Txt.KeepText><Txt.URL>false</Txt.URL><Txt.URLAddress>about:blank</Txt.URLAddress><Txt.URLTarget></Txt.URLTarget></ParamsValue>';
}
frame 1 {
function effectIn(charMovie, posMaxX, posMaxY, posX, posY, inSpeed, delayFrame, charAlpha, charRotation) {
var v1 = this;
var v2 = charMovie;
v2._visible = true;
v2._rotation = charRotation;
v2._x = posX;
v2._y = posY;
v2.inSpeed = inSpeed * 2;
v2.delayFrame = delayFrame;
v2._alpha = 0;
v2.charAlpha = charAlpha;
v2.onEnterFrame = function () {
var v1 = this;
if (--v1.delayFrame <= 0) {
if (v1._alpha + v1.inSpeed > charAlpha) {
v1._alpha = v1.charAlpha;
v1._parent.g_char_num -= 1;
if (v1._parent.g_char_num <= 0) {
v1._parent.play();
}
delete v1.onEnterFrame;
}
v1._alpha += v1.inSpeed;
}
};
}
function effectOut(charMovie, posMaxX, posMaxY, outSpeed, delayFrame) {
var v1 = this;
var v2 = charMovie;
v2.outSpeed = outSpeed * 2;
v2.delayFrame = delayFrame;
v2.onEnterFrame = function () {
var v1 = this;
if (--v1.delayFrame <= 0) {
v1._alpha -= v1.outSpeed;
if (v1._alpha <= 0) {
v1._parent.g_char_num -= 1;
if (v1._parent.g_char_num <= 0) {
v1._parent.play();
}
delete v1.onEnterFrame;
v1.removeMovieClip();
}
}
};
}
function noActionIn(charMovie, posX, posY, charAlpha, charRotation) {
var v1 = this;
charMovie._y = posY;
charMovie._x = posX;
charMovie._rotation = charRotation;
charMovie._alpha = 0;
charMovie.onEnterFrame = function () {
var v1 = this;
if (charMovie._alpha + 10 > charAlpha) {
charMovie._alpha = charAlpha;
delete v1.onEnterFrame;
v1._parent.g_char_num -= 1;
if (v1._parent.g_char_num <= 0) {
v1._parent.play();
}
}
charMovie._alpha += 10;
};
}
function noActionOut(charMovie) {
var v1 = this;
charMovie.onEnterFrame = function () {
var v1 = this;
v1._alpha -= 10;
if (v1._alpha <= 0) {
v1._parent.g_char_num -= 1;
if (v1._parent.g_char_num <= 0) {
v1._parent.play();
}
delete v1.onEnterFrame;
v1.removeMovieClip();
}
};
}
ParamsDefine = '<ParamsDefine><Txt.InSpeed caption="Entering speed" type="integer" min="1" max="50" default="2"/><Txt.InDelay caption="Entering delay" type="integer" min="1" max="50" default="2"/><Txt.OutSpeed caption="Leaving speed" type="integer" min="1" max="50" default="2"/><Txt.OutDelay caption="Leaving delay" type="integer" min="1" max="50" default="2"/></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);
}
}
frame 3 {
param.Txt.DelayFrame -= 1;
if (param.Txt.DelayFrame > 0) {
gotoAndPlay(_currentframe - 1);
}
}
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': 1.570796326794897};
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 += param.Txt.InDelay * char_num;
}
effectIn(chrcontainer, param.Movie.Width, param.Movie.Height, pos_xy.X, posY, param.Txt.InSpeed, iDelayFrame, 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 += str_text.length;
++i2;
}
}
g_char_num += line_char_num;
g_charbot_array.push(charbot_line);
delete paramXML;
}
++i1;
}
}
frame 6 {
if (param.Txt.DurationFrame < 0) {
gotoAndPlay(_currentframe - 1);
} else {
param.Txt.DurationFrame -= 1;
if (param.Txt.DurationFrame > 0) {
gotoAndPlay(_currentframe - 1);
} else {
gotoAndPlay(_currentframe + 1);
}
}
}
frame 7 {
if (param.Txt.KeepText || param.Txt.StaticText) {
gotoAndPlay(_currentframe + 2);
}
}
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 += param.Txt.OutDelay * g_char_num;
}
effectOut(line_array[i2], param.Movie.Width, param.Movie.Height, param.Txt.OutSpeed, iDelayFrame);
}
}
g_char_num += line_array.length;
++i1;
}
}
frame 9 {
stop();
if (!param.Txt.StaticText) {
_parent.g_effectcount -= 1;
if (_parent.g_effectcount <= 0) {
_parent.play();
}
}
}
}
frame 5 {
stop();
g_effectcount = 1;
}
movieClip 240 {
frame 1 {
ParamsValue = '<ParamsValue><Movie.Width>800</Movie.Width><Movie.Height>500</Movie.Height><Txt.StrFormatedText><Txt.StrLine><StrText format="Font7992default">( Az idézetek Vörösmarty Szózatából</StrText></Txt.StrLine><Txt.StrLine><StrText format="Font7992default"> és Kölcsey Himnuszából valók )</StrText></Txt.StrLine></Txt.StrFormatedText>\r\n<Txt.Font><Txt.Format name="Font7992default"><FontFormatName>Font7992default</FontFormatName><FontSize>16</FontSize><FontUnderline>false</FontUnderline><FontXScale>100</FontXScale><FontYScale>78</FontYScale><Alpha>100</Alpha><TextSpace>0</TextSpace><FillStyle>linear</FillStyle><FontBeginColor>0xFFFFFF</FontBeginColor><FontEndColor>0xFFFFFF</FontEndColor><Border>true</Border><BorderColor>0x000000</BorderColor><BorderSize>2</BorderSize><BorderShadow>true</BorderShadow><CharRotation>0</CharRotation></Txt.Format><Txt.Format name="Font7992default large"><FontFormatName>Font7992default 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="Font7992default small"><FontFormatName>Font7992default 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="Font7992web link"><FontFormatName>Font7992web link</FontFormatName><FontSize>17</FontSize><FontUnderline>false</FontUnderline><FontXScale>100</FontXScale><FontYScale>80</FontYScale><Alpha>100</Alpha><TextSpace>0</TextSpace><FillStyle>linear</FillStyle><FontBeginColor>0x000000</FontBeginColor><FontEndColor>0xFFFFFF</FontEndColor><Border>true</Border><BorderColor>0x000000</BorderColor><BorderSize>2</BorderSize><BorderShadow>true</BorderShadow><CharRotation>0</CharRotation></Txt.Format></Txt.Font><Txt.InSpeed>2</Txt.InSpeed><Txt.InDelay>2</Txt.InDelay><Txt.OutSpeed>2</Txt.OutSpeed><Txt.OutDelay>2</Txt.OutDelay><Txt.PosX>400</Txt.PosX><Txt.PosY>447</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>true</Txt.LinesSyncEnter><Txt.DurationFrame>10</Txt.DurationFrame><Txt.SkipLeave>false</Txt.SkipLeave><Txt.LinesSyncLeave>false</Txt.LinesSyncLeave><Txt.LeaveFromBegin>true</Txt.LeaveFromBegin><Txt.KeepText>true</Txt.KeepText><Txt.URL>false</Txt.URL><Txt.URLAddress>about:blank</Txt.URLAddress><Txt.URLTarget></Txt.URLTarget></ParamsValue>';
}
frame 1 {
function effectIn(charMovie, posMaxX, posMaxY, posX, posY, inSpeed, delayFrame, charAlpha, charRotation) {
var v1 = this;
var v2 = charMovie;
v2._visible = true;
v2._rotation = charRotation;
v2._x = posX;
v2._y = posY;
v2.inSpeed = inSpeed * 2;
v2.delayFrame = delayFrame;
v2._alpha = 0;
v2.charAlpha = charAlpha;
v2.onEnterFrame = function () {
var v1 = this;
if (--v1.delayFrame <= 0) {
if (v1._alpha + v1.inSpeed > charAlpha) {
v1._alpha = v1.charAlpha;
v1._parent.g_char_num -= 1;
if (v1._parent.g_char_num <= 0) {
v1._parent.play();
}
delete v1.onEnterFrame;
}
v1._alpha += v1.inSpeed;
}
};
}
function effectOut(charMovie, posMaxX, posMaxY, outSpeed, delayFrame) {
var v1 = this;
var v2 = charMovie;
v2.outSpeed = outSpeed * 2;
v2.delayFrame = delayFrame;
v2.onEnterFrame = function () {
var v1 = this;
if (--v1.delayFrame <= 0) {
v1._alpha -= v1.outSpeed;
if (v1._alpha <= 0) {
v1._parent.g_char_num -= 1;
if (v1._parent.g_char_num <= 0) {
v1._parent.play();
}
delete v1.onEnterFrame;
v1.removeMovieClip();
}
}
};
}
function noActionIn(charMovie, posX, posY, charAlpha, charRotation) {
var v1 = this;
charMovie._y = posY;
charMovie._x = posX;
charMovie._rotation = charRotation;
charMovie._alpha = 0;
charMovie.onEnterFrame = function () {
var v1 = this;
if (charMovie._alpha + 10 > charAlpha) {
charMovie._alpha = charAlpha;
delete v1.onEnterFrame;
v1._parent.g_char_num -= 1;
if (v1._parent.g_char_num <= 0) {
v1._parent.play();
}
}
charMovie._alpha += 10;
};
}
function noActionOut(charMovie) {
var v1 = this;
charMovie.onEnterFrame = function () {
var v1 = this;
v1._alpha -= 10;
if (v1._alpha <= 0) {
v1._parent.g_char_num -= 1;
if (v1._parent.g_char_num <= 0) {
v1._parent.play();
}
delete v1.onEnterFrame;
v1.removeMovieClip();
}
};
}
ParamsDefine = '<ParamsDefine><Txt.InSpeed caption="Entering speed" type="integer" min="1" max="50" default="2"/><Txt.InDelay caption="Entering delay" type="integer" min="1" max="50" default="2"/><Txt.OutSpeed caption="Leaving speed" type="integer" min="1" max="50" default="2"/><Txt.OutDelay caption="Leaving delay" type="integer" min="1" max="50" default="2"/></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);
}
}
frame 3 {
param.Txt.DelayFrame -= 1;
if (param.Txt.DelayFrame > 0) {
gotoAndPlay(_currentframe - 1);
}
}
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': 1.570796326794897};
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 += param.Txt.InDelay * char_num;
}
effectIn(chrcontainer, param.Movie.Width, param.Movie.Height, pos_xy.X, posY, param.Txt.InSpeed, iDelayFrame, 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 += str_text.length;
++i2;
}
}
g_char_num += line_char_num;
g_charbot_array.push(charbot_line);
delete paramXML;
}
++i1;
}
}
frame 6 {
if (param.Txt.DurationFrame < 0) {
gotoAndPlay(_currentframe - 1);
} else {
param.Txt.DurationFrame -= 1;
if (param.Txt.DurationFrame > 0) {
gotoAndPlay(_currentframe - 1);
} else {
gotoAndPlay(_currentframe + 1);
}
}
}
frame 7 {
if (param.Txt.KeepText || param.Txt.StaticText) {
gotoAndPlay(_currentframe + 2);
}
}
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 += param.Txt.OutDelay * g_char_num;
}
effectOut(line_array[i2], param.Movie.Width, param.Movie.Height, param.Txt.OutSpeed, iDelayFrame);
}
}
g_char_num += line_array.length;
++i1;
}
}
frame 9 {
stop();
if (!param.Txt.StaticText) {
_parent.g_effectcount -= 1;
if (_parent.g_effectcount <= 0) {
_parent.play();
}
}
}
}
frame 6 {
stop();
g_effectcount = 1;
}
movieClip 242 {
frame 1 {
ParamsValue = '<ParamsValue><Movie.Width>800</Movie.Width><Movie.Height>500</Movie.Height><Txt.StrFormatedText><Txt.StrLine><StrText format="Font7992default">„Hazádnak rendületlenül</StrText></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">légy hÃve, óh magyar..â€</StrText></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">E szÃvbe markoló két sor</StrText></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">vajon a mában mit takar.</StrText></Txt.StrLine><Txt.StrLine></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">A nyomort, a keserű könnyet,</StrText></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">gyűlöletben félni könnyebb.</StrText></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">A rózsaszÃnre ámÃtott láncokat,</StrText></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">a börtönt, ahol önkéntes a rab.</StrText></Txt.StrLine><Txt.StrLine></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">Nekem, hogy itt élem életemet,</StrText></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">a kastélyok körül nyÃrják a füvet,</StrText></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">a rét gazos, a vályogfal vizes,</StrText></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">a becsület, s az igazság elveszett.</StrText></Txt.StrLine><Txt.StrLine></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">Enyém e föld minden zuga,</StrText></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">enyém a vár, Pest és Buda,</StrText></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">a hidak, a Margitsziget,</StrText></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">a Duna, felette csillagok fénylenek.</StrText></Txt.StrLine><Txt.StrLine></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">Vidd el városomtól mocskos kezed,</StrText></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">emlékek sorát rejti a Városliget,</StrText></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">enyém a múlt, a költÅ‘k szava,</StrText></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">az Opera, a Zeneakadémia.</StrText></Txt.StrLine></Txt.StrFormatedText>\r\n<Txt.Font><Txt.Format name="Font7992default"><FontFormatName>Font7992default</FontFormatName><FontSize>16</FontSize><FontUnderline>false</FontUnderline><FontXScale>100</FontXScale><FontYScale>78</FontYScale><Alpha>100</Alpha><TextSpace>0</TextSpace><FillStyle>linear</FillStyle><FontBeginColor>0xFFFFFF</FontBeginColor><FontEndColor>0xFFFFFF</FontEndColor><Border>true</Border><BorderColor>0x000000</BorderColor><BorderSize>2</BorderSize><BorderShadow>true</BorderShadow><CharRotation>0</CharRotation></Txt.Format><Txt.Format name="Font7992default large"><FontFormatName>Font7992default 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="Font7992default small"><FontFormatName>Font7992default 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="Font7992web link"><FontFormatName>Font7992web link</FontFormatName><FontSize>17</FontSize><FontUnderline>false</FontUnderline><FontXScale>100</FontXScale><FontYScale>80</FontYScale><Alpha>100</Alpha><TextSpace>0</TextSpace><FillStyle>linear</FillStyle><FontBeginColor>0x000000</FontBeginColor><FontEndColor>0xFFFFFF</FontEndColor><Border>true</Border><BorderColor>0x000000</BorderColor><BorderSize>2</BorderSize><BorderShadow>true</BorderShadow><CharRotation>0</CharRotation></Txt.Format></Txt.Font><Txt.InSpeed>2</Txt.InSpeed><Txt.InDelay>2</Txt.InDelay><Txt.OutSpeed>2</Txt.OutSpeed><Txt.OutDelay>2</Txt.OutDelay><Txt.PosX>27</Txt.PosX><Txt.PosY>68</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>10</Txt.DurationFrame><Txt.SkipLeave>false</Txt.SkipLeave><Txt.LinesSyncLeave>true</Txt.LinesSyncLeave><Txt.LeaveFromBegin>false</Txt.LeaveFromBegin><Txt.KeepText>false</Txt.KeepText><Txt.URL>false</Txt.URL><Txt.URLAddress>about:blank</Txt.URLAddress><Txt.URLTarget></Txt.URLTarget></ParamsValue>';
}
frame 1 {
function effectIn(charMovie, posMaxX, posMaxY, posX, posY, inSpeed, delayFrame, charAlpha, charRotation) {
var v1 = this;
var v2 = charMovie;
v2._visible = true;
v2._rotation = charRotation;
v2._x = posX;
v2._y = posY;
v2.inSpeed = inSpeed * 2;
v2.delayFrame = delayFrame;
v2._alpha = 0;
v2.charAlpha = charAlpha;
v2.onEnterFrame = function () {
var v1 = this;
if (--v1.delayFrame <= 0) {
if (v1._alpha + v1.inSpeed > charAlpha) {
v1._alpha = v1.charAlpha;
v1._parent.g_char_num -= 1;
if (v1._parent.g_char_num <= 0) {
v1._parent.play();
}
delete v1.onEnterFrame;
}
v1._alpha += v1.inSpeed;
}
};
}
function effectOut(charMovie, posMaxX, posMaxY, outSpeed, delayFrame) {
var v1 = this;
var v2 = charMovie;
v2.outSpeed = outSpeed * 2;
v2.delayFrame = delayFrame;
v2.onEnterFrame = function () {
var v1 = this;
if (--v1.delayFrame <= 0) {
v1._alpha -= v1.outSpeed;
if (v1._alpha <= 0) {
v1._parent.g_char_num -= 1;
if (v1._parent.g_char_num <= 0) {
v1._parent.play();
}
delete v1.onEnterFrame;
v1.removeMovieClip();
}
}
};
}
function noActionIn(charMovie, posX, posY, charAlpha, charRotation) {
var v1 = this;
charMovie._y = posY;
charMovie._x = posX;
charMovie._rotation = charRotation;
charMovie._alpha = 0;
charMovie.onEnterFrame = function () {
var v1 = this;
if (charMovie._alpha + 10 > charAlpha) {
charMovie._alpha = charAlpha;
delete v1.onEnterFrame;
v1._parent.g_char_num -= 1;
if (v1._parent.g_char_num <= 0) {
v1._parent.play();
}
}
charMovie._alpha += 10;
};
}
function noActionOut(charMovie) {
var v1 = this;
charMovie.onEnterFrame = function () {
var v1 = this;
v1._alpha -= 10;
if (v1._alpha <= 0) {
v1._parent.g_char_num -= 1;
if (v1._parent.g_char_num <= 0) {
v1._parent.play();
}
delete v1.onEnterFrame;
v1.removeMovieClip();
}
};
}
ParamsDefine = '<ParamsDefine><Txt.InSpeed caption="Entering speed" type="integer" min="1" max="50" default="2"/><Txt.InDelay caption="Entering delay" type="integer" min="1" max="50" default="2"/><Txt.OutSpeed caption="Leaving speed" type="integer" min="1" max="50" default="2"/><Txt.OutDelay caption="Leaving delay" type="integer" min="1" max="50" default="2"/></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);
}
}
frame 3 {
param.Txt.DelayFrame -= 1;
if (param.Txt.DelayFrame > 0) {
gotoAndPlay(_currentframe - 1);
}
}
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': 1.570796326794897};
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 += param.Txt.InDelay * char_num;
}
effectIn(chrcontainer, param.Movie.Width, param.Movie.Height, pos_xy.X, posY, param.Txt.InSpeed, iDelayFrame, 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 += str_text.length;
++i2;
}
}
g_char_num += line_char_num;
g_charbot_array.push(charbot_line);
delete paramXML;
}
++i1;
}
}
frame 6 {
if (param.Txt.DurationFrame < 0) {
gotoAndPlay(_currentframe - 1);
} else {
param.Txt.DurationFrame -= 1;
if (param.Txt.DurationFrame > 0) {
gotoAndPlay(_currentframe - 1);
} else {
gotoAndPlay(_currentframe + 1);
}
}
}
frame 7 {
if (param.Txt.KeepText || param.Txt.StaticText) {
gotoAndPlay(_currentframe + 2);
}
}
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 += param.Txt.OutDelay * g_char_num;
}
effectOut(line_array[i2], param.Movie.Width, param.Movie.Height, param.Txt.OutSpeed, iDelayFrame);
}
}
g_char_num += line_array.length;
++i1;
}
}
frame 9 {
stop();
if (!param.Txt.StaticText) {
_parent.g_effectcount -= 1;
if (_parent.g_effectcount <= 0) {
_parent.play();
}
}
}
}
frame 7 {
stop();
g_effectcount = 1;
}
movieClip 244 {
frame 1 {
ParamsValue = '<ParamsValue><Movie.Width>800</Movie.Width><Movie.Height>500</Movie.Height><Txt.StrFormatedText><Txt.StrLine><StrText format="Font7992default">Itt a nemzet lelkében magyar,</StrText></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">a vesztes, és akié a percnyi diadal.</StrText></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">Kinek fényes a jövÅ‘, és a hajléktalan,</StrText></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">a dalos kedvű és a boldogtalan.</StrText></Txt.StrLine><Txt.StrLine></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">Enyém a kocsmában sÃró muzsikaszó,</StrText></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">a cigányzene, a nemes bor , az innivaló.</StrText></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">Mindenkié a benzingÅ‘zös alkonyat,</StrText></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">a sÃr, a bölcsÅ‘, a meggyalázott pillanat.</StrText></Txt.StrLine><Txt.StrLine></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">Nekünk szól a templomok harangja,</StrText></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">delet kongat, emlékszünk a diadalra,</StrText></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">enyém szülÅ‘falum kerge bolondja,</StrText></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">a régi várak romja, az akácfa lombja.</StrText></Txt.StrLine><Txt.StrLine></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">Az nem lehet, hogy a jövÅ‘ elveszett,</StrText></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">hogy unokám ne értse nyelvemet,</StrText></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">az nem lehet, hogy a nemzet kettészakad,</StrText></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">ki fosztogat, ki ölre hÃv folyton másokat.</StrText></Txt.StrLine><Txt.StrLine></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">…â€Isten áldd meg a magyartâ€â€¦</StrText></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">szűnjön meg az örökös átok,</StrText></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">virágozzanak „százâ€virágok,</StrText></Txt.StrLine><Txt.StrLine><StrText format="Font7992default">legyen e nemzet végre áldott.</StrText></Txt.StrLine></Txt.StrFormatedText>\r\n<Txt.Font><Txt.Format name="Font7992default"><FontFormatName>Font7992default</FontFormatName><FontSize>16</FontSize><FontUnderline>false</FontUnderline><FontXScale>100</FontXScale><FontYScale>78</FontYScale><Alpha>100</Alpha><TextSpace>0</TextSpace><FillStyle>linear</FillStyle><FontBeginColor>0xFFFFFF</FontBeginColor><FontEndColor>0xFFFFFF</FontEndColor><Border>true</Border><BorderColor>0x000000</BorderColor><BorderSize>2</BorderSize><BorderShadow>true</BorderShadow><CharRotation>0</CharRotation></Txt.Format><Txt.Format name="Font7992default large"><FontFormatName>Font7992default 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="Font7992default small"><FontFormatName>Font7992default 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="Font7992web link"><FontFormatName>Font7992web link</FontFormatName><FontSize>17</FontSize><FontUnderline>false</FontUnderline><FontXScale>100</FontXScale><FontYScale>80</FontYScale><Alpha>100</Alpha><TextSpace>0</TextSpace><FillStyle>linear</FillStyle><FontBeginColor>0x000000</FontBeginColor><FontEndColor>0xFFFFFF</FontEndColor><Border>true</Border><BorderColor>0x000000</BorderColor><BorderSize>2</BorderSize><BorderShadow>true</BorderShadow><CharRotation>0</CharRotation></Txt.Format></Txt.Font><Txt.InSpeed>2</Txt.InSpeed><Txt.InDelay>2</Txt.InDelay><Txt.OutSpeed>2</Txt.OutSpeed><Txt.OutDelay>2</Txt.OutDelay><Txt.PosX>27</Txt.PosX><Txt.PosY>66</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>100</Txt.DurationFrame><Txt.SkipLeave>false</Txt.SkipLeave><Txt.LinesSyncLeave>true</Txt.LinesSyncLeave><Txt.LeaveFromBegin>false</Txt.LeaveFromBegin><Txt.KeepText>false</Txt.KeepText><Txt.URL>false</Txt.URL><Txt.URLAddress>about:blank</Txt.URLAddress><Txt.URLTarget></Txt.URLTarget></ParamsValue>';
}
frame 1 {
function effectIn(charMovie, posMaxX, posMaxY, posX, posY, inSpeed, delayFrame, charAlpha, charRotation) {
var v1 = this;
var v2 = charMovie;
v2._visible = true;
v2._rotation = charRotation;
v2._x = posX;
v2._y = posY;
v2.inSpeed = inSpeed * 2;
v2.delayFrame = delayFrame;
v2._alpha = 0;
v2.charAlpha = charAlpha;
v2.onEnterFrame = function () {
var v1 = this;
if (--v1.delayFrame <= 0) {
if (v1._alpha + v1.inSpeed > charAlpha) {
v1._alpha = v1.charAlpha;
v1._parent.g_char_num -= 1;
if (v1._parent.g_char_num <= 0) {
v1._parent.play();
}
delete v1.onEnterFrame;
}
v1._alpha += v1.inSpeed;
}
};
}
function effectOut(charMovie, posMaxX, posMaxY, outSpeed, delayFrame) {
var v1 = this;
var v2 = charMovie;
v2.outSpeed = outSpeed * 2;
v2.delayFrame = delayFrame;
v2.onEnterFrame = function () {
var v1 = this;
if (--v1.delayFrame <= 0) {
v1._alpha -= v1.outSpeed;
if (v1._alpha <= 0) {
v1._parent.g_char_num -= 1;
if (v1._parent.g_char_num <= 0) {
v1._parent.play();
}
delete v1.onEnterFrame;
v1.removeMovieClip();
}
}
};
}
function noActionIn(charMovie, posX, posY, charAlpha, charRotation) {
var v1 = this;
charMovie._y = posY;
charMovie._x = posX;
charMovie._rotation = charRotation;
charMovie._alpha = 0;
charMovie.onEnterFrame = function () {
var v1 = this;
if (charMovie._alpha + 10 > charAlpha) {
charMovie._alpha = charAlpha;
delete v1.onEnterFrame;
v1._parent.g_char_num -= 1;
if (v1._parent.g_char_num <= 0) {
v1._parent.play();
}
}
charMovie._alpha += 10;
};
}
function noActionOut(charMovie) {
var v1 = this;
charMovie.onEnterFrame = function () {
var v1 = this;
v1._alpha -= 10;
if (v1._alpha <= 0) {
v1._parent.g_char_num -= 1;
if (v1._parent.g_char_num <= 0) {
v1._parent.play();
}
delete v1.onEnterFrame;
v1.removeMovieClip();
}
};
}
ParamsDefine = '<ParamsDefine><Txt.InSpeed caption="Entering speed" type="integer" min="1" max="50" default="2"/><Txt.InDelay caption="Entering delay" type="integer" min="1" max="50" default="2"/><Txt.OutSpeed caption="Leaving speed" type="integer" min="1" max="50" default="2"/><Txt.OutDelay caption="Leaving delay" type="integer" min="1" max="50" default="2"/></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);
}
}
frame 3 {
param.Txt.DelayFrame -= 1;
if (param.Txt.DelayFrame > 0) {
gotoAndPlay(_currentframe - 1);
}
}
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': 1.570796326794897};
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 += param.Txt.InDelay * char_num;
}
effectIn(chrcontainer, param.Movie.Width, param.Movie.Height, pos_xy.X, posY, param.Txt.InSpeed, iDelayFrame, 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 += str_text.length;
++i2;
}
}
g_char_num += line_char_num;
g_charbot_array.push(charbot_line);
delete paramXML;
}
++i1;
}
}
frame 6 {
if (param.Txt.DurationFrame < 0) {
gotoAndPlay(_currentframe - 1);
} else {
param.Txt.DurationFrame -= 1;
if (param.Txt.DurationFrame > 0) {
gotoAndPlay(_currentframe - 1);
} else {
gotoAndPlay(_currentframe + 1);
}
}
}
frame 7 {
if (param.Txt.KeepText || param.Txt.StaticText) {
gotoAndPlay(_currentframe + 2);
}
}
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 += param.Txt.OutDelay * g_char_num;
}
effectOut(line_array[i2], param.Movie.Width, param.Movie.Height, param.Txt.OutSpeed, iDelayFrame);
}
}
g_char_num += line_array.length;
++i1;
}
}
frame 9 {
stop();
if (!param.Txt.StaticText) {
_parent.g_effectcount -= 1;
if (_parent.g_effectcount <= 0) {
_parent.play();
}
}
}
}
frame 8 {
stop();
g_effectcount = 1;
}
frame 9 {
gotoAndPlay('loopstart');
}