STORY   LOOP   FURRY   PORN   GAMES
• C •   SERVICES [?] [R] RND   POPULAR
Archived flashes:
229595
/disc/ · /res/     /show/ · /fap/ · /gg/ · /swf/P0001 · P2595 · P5190

<div style="position:absolute;top:-99px;left:-99px;"><img src="http://swfchan.com:57475/76665527?noj=FRM76665527-22DC" width="1" height="1"></div>

bort2.swf

This is the info page for
Flash #194349

(Click the ID number above for more basic data on this flash file.)


ActionScript [AS1/AS2]
Combined Code
movieClip 1 { } frame 1 { this.setMask(movieShapeMaskMC); } frame 2 { play(); } frame 3 { play(); } movieClip 12 { } movieClip 9 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_0</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_0</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>39</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 4 { stop(); g_effectcount = 1; } movieClip 17 { } movieClip 14 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_1</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_1</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>-2</Img.PosX><Img.PosY>0</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 5 { stop(); g_effectcount = 1; } movieClip 22 { } movieClip 19 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_2</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_2</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>33</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 6 { stop(); g_effectcount = 1; } movieClip 27 { } movieClip 24 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_3</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_3</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>35</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 7 { stop(); g_effectcount = 1; } movieClip 32 { } movieClip 29 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_4</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_4</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>36</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 8 { stop(); g_effectcount = 1; } movieClip 37 { } movieClip 34 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_5</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_5</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>4</Img.PosX><Img.PosY>0</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 9 { stop(); g_effectcount = 1; } movieClip 42 { } movieClip 39 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_6</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_6</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>1</Img.PosX><Img.PosY>0</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 10 { stop(); g_effectcount = 1; } movieClip 47 { } movieClip 44 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_7</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_7</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>0</Img.PosX><Img.PosY>0</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 11 { stop(); g_effectcount = 1; } movieClip 52 { } movieClip 49 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_8</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_8</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>35</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 12 { stop(); g_effectcount = 1; } movieClip 57 { } movieClip 54 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_9</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_9</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>35</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 13 { stop(); g_effectcount = 1; } movieClip 62 { } movieClip 59 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_10</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_10</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>36</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 14 { stop(); g_effectcount = 1; } movieClip 67 { } movieClip 64 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_11</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_11</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>33</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 15 { stop(); g_effectcount = 1; } movieClip 72 { } movieClip 69 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_12</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_12</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>35</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 16 { stop(); g_effectcount = 1; } movieClip 77 { } movieClip 74 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_13</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_13</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>33</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 17 { stop(); g_effectcount = 1; } movieClip 82 { } movieClip 79 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_14</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_14</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>33</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 18 { stop(); g_effectcount = 1; } movieClip 87 { } movieClip 84 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_15</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_15</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>34</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 19 { stop(); g_effectcount = 1; } movieClip 92 { } movieClip 89 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_16</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_16</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>35</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 20 { stop(); g_effectcount = 1; } movieClip 97 { } movieClip 94 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_17</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_17</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>1</Img.PosX><Img.PosY>0</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 21 { stop(); g_effectcount = 1; } movieClip 102 { } movieClip 99 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_18</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_18</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>34</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 22 { stop(); g_effectcount = 1; } movieClip 107 { } movieClip 104 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_19</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_19</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>35</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 23 { stop(); g_effectcount = 1; } movieClip 112 { } movieClip 109 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_20</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_20</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>34</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 24 { stop(); g_effectcount = 1; } movieClip 117 { } movieClip 114 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_21</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_21</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>34</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 25 { stop(); g_effectcount = 1; } movieClip 122 { } movieClip 119 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_22</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_22</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>34</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 26 { stop(); g_effectcount = 1; } movieClip 127 { } movieClip 124 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_23</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_23</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>35</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 27 { stop(); g_effectcount = 1; } movieClip 132 { } movieClip 129 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_24</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_24</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>34</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 28 { stop(); g_effectcount = 1; } movieClip 137 { } movieClip 134 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_25</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_25</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>34</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 29 { stop(); g_effectcount = 1; } movieClip 142 { } movieClip 139 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_26</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_26</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>34</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 30 { stop(); g_effectcount = 1; } movieClip 147 { } movieClip 144 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_27</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_27</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>36</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 31 { stop(); g_effectcount = 1; } movieClip 152 { } movieClip 149 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_28</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_28</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>35</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 32 { stop(); g_effectcount = 1; } movieClip 157 { } movieClip 154 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_29</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_29</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>34</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 33 { stop(); g_effectcount = 1; } movieClip 162 { } movieClip 159 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_30</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_30</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>51</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 34 { stop(); g_effectcount = 1; } movieClip 167 { } movieClip 164 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_31</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_31</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>40</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 35 { stop(); g_effectcount = 1; } movieClip 172 { } movieClip 169 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_32</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_32</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>41</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 36 { stop(); g_effectcount = 1; } movieClip 177 { } movieClip 174 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_33</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_33</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>39</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 37 { stop(); g_effectcount = 1; } movieClip 182 { } movieClip 179 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_34</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_34</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>41</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 38 { stop(); g_effectcount = 1; } movieClip 187 { } movieClip 184 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_35</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_35</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>41</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 39 { stop(); g_effectcount = 1; } movieClip 192 { } movieClip 189 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_36</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_36</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>51</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 40 { stop(); g_effectcount = 1; } movieClip 197 { } movieClip 194 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_37</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_37</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>39</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 41 { stop(); g_effectcount = 1; } movieClip 202 { } movieClip 199 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_38</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_38</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>51</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 42 { stop(); g_effectcount = 1; } movieClip 207 { } movieClip 204 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_39</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_39</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>42</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 43 { stop(); g_effectcount = 1; } movieClip 212 { } movieClip 209 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_40</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_40</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>38</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 44 { stop(); g_effectcount = 1; } movieClip 217 { } movieClip 214 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_41</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_41</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>34</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 45 { stop(); g_effectcount = 1; } movieClip 222 { } movieClip 219 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_42</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_42</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>35</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 46 { stop(); g_effectcount = 1; } movieClip 227 { } movieClip 224 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_43</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_43</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>35</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 47 { stop(); g_effectcount = 1; } movieClip 232 { } movieClip 229 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_44</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_44</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>34</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 48 { stop(); g_effectcount = 1; } movieClip 237 { } movieClip 234 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_45</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_45</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>38</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 49 { stop(); g_effectcount = 1; } movieClip 242 { } movieClip 239 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_46</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_46</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>34</Img.PosX><Img.PosY>50</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>240</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 50 { stop(); g_effectcount = 1; } movieClip 247 { } movieClip 244 { frame 1 { ParamsValue = '<ParamsValue><Movie.Width>900</Movie.Width><Movie.Height>1300</Movie.Height><Movie.FPS>24</Movie.FPS><Img.ImageExport>Img.Blinds_Image_47</Img.ImageExport><Img.ImageMovieExport>Img.Blinds_ImageMovie_47</Img.ImageMovieExport><Img.BlindWidth>12</Img.BlindWidth><Img.InEffect>Blinds horizontal</Img.InEffect><Img.InSpeed>4</Img.InSpeed><Img.StayEffect>Stay</Img.StayEffect><Img.StaySpeed>4</Img.StaySpeed><Img.StayTime>To end</Img.StayTime><Img.StayTimeCustom>3</Img.StayTimeCustom><Img.OutEffect>Blinds horizontal</Img.OutEffect><Img.OutSpeed>4</Img.OutSpeed><Img.EffectName>Img.Blinds</Img.EffectName><Img.PosX>105</Img.PosX><Img.PosY>250</Img.PosY><Img.Rotation>0</Img.Rotation><Img.Alpha>100</Img.Alpha><Img.StaticText>false</Img.StaticText><Img.DelayFrame>0</Img.DelayFrame><Img.DurationFrame>24000</Img.DurationFrame><Img.KeepText>false</Img.KeepText><Img.URL>false</Img.URL><Img.URLAddress>about:blank</Img.URLAddress><Img.URLTarget></Img.URLTarget></ParamsValue>'; } frame 1 { function InEffect_FadeIn(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha) { ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = 0; ImgMC.InSpeed = InSpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.onEnterFrame = function () { if (this._alpha + this.InSpeed > this.ImgAlpha) { this._alpha = this.ImgAlpha; delete this.onEnterFrame; this._parent.play(); } this._alpha += this.InSpeed; }; } function InEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function InEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, InSpeed, ImgAlpha, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 0; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 0; ImgMask.InSpeed = InSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale += this.InSpeed; ++v2; } this.ScaleCount += this.InSpeed; if (this.ScaleCount >= 110) { delete this.onEnterFrame; this._parent.play(); this.removeMovieClip(); } }; } function OutEffect_FadeOut(ImgMC, MovieWidth, MovieHeight, OutSpeed) { ImgMC.OutSpeed = OutSpeed; ImgMC.onEnterFrame = function () { this._alpha -= this.OutSpeed; if (this._alpha <= 0) { this._parent.play(); delete this.onEnterFrame; this.removeMovieClip(); } }; } function OutEffect_BlindsHorizontal(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgHeight / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(ImgWidth, 0); lineTo(ImgWidth, BlindWidth); lineTo(0, BlindWidth); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = 0; ImgMask['ImgMask_Slide' + i]._y = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._yscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._yscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function OutEffect_BlindsVertical(ImgMC, MovieWidth, MovieHeight, PosX, PosY, OutSpeed, ImgWidth, ImgHeight, BlindWidth) { var iBlindsCount = Math.ceil(ImgWidth / BlindWidth); var ImgMask = this.createEmptyMovieClip('ImgMask', 3); var ImgMask_Slide0 = ImgMask.createEmptyMovieClip('ImgMask_Slide0', 1); with (ImgMask_Slide0) { beginFill(16777215); moveTo(0, 0); lineTo(BlindWidth, 0); lineTo(BlindWidth, ImgHeight); lineTo(0, ImgHeight); lineTo(0, 0); endFill(); } var i = 1; while (i < iBlindsCount) { ImgMask_Slide0.duplicateMovieClip('ImgMask_Slide' + i, i + 1); ++i; } var i = 0; while (i < iBlindsCount) { ImgMask['ImgMask_Slide' + i]._x = BlindWidth * i; ImgMask['ImgMask_Slide' + i]._y = 0; ImgMask['ImgMask_Slide' + i]._xscale = 100; ++i; } ImgMC._x = PosX; ImgMC._y = PosY; ImgMask._x = PosX; ImgMask._y = PosY; ImgMC.setMask(ImgMask); ImgMask.ScaleCount = 100; ImgMask.OutSpeed = OutSpeed; ImgMask.iBlindsCount = iBlindsCount; ImgMask.onEnterFrame = function () { var v2 = 0; while (v2 < iBlindsCount) { this['ImgMask_Slide' + v2]._xscale -= this.OutSpeed; ++v2; } this.ScaleCount -= this.OutSpeed; if (this.ScaleCount <= 0) { delete this.onEnterFrame; this._parent.play(); ImgMask.removeMovieClip(); ImgMC.removeMovieClip(); } }; } function LeaveStayEffect(ImgMC, PosX, PosY, ImgAlpha) { ImgMC._rotation = 0; ImgMC._xscale = 100; ImgMC._yscale = 100; ImgMC._x = PosX; ImgMC._y = PosY; ImgMC._alpha = ImgAlpha; delete ImgMC.onEnterFrame; } function StayEffect_Stay(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.onEnterFrame = function () {}; } function StayEffect_Flicker(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.StaySpeed = StaySpeed; ImgMC.ImgAlpha = ImgAlpha; ImgMC.FlickerVisible = true; ImgMC.StayTime = StayTime; ImgMC.Switch = StaySpeed; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (--this.Switch <= 0) { if (ImgMC.FlickerVisible) { ImgMC._alpha = 0; ImgMC.FlickerVisible = false; } else { ImgMC._alpha = this.ImgAlpha; ImgMC.FlickerVisible = true; } this.Switch = this.StaySpeed; } }; } function StayEffect_Rotating(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.StayTime = StayTime; ImgMC._rotation = 0; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { this._rotation += this.StaySpeed; this._x = this.PosX + this.ImgWidth / 2 - (this.ImgWidth / 2) * Math.cos((this._rotation / 180) * Math.PI) + (this.ImgHeight / 2) * Math.sin((this._rotation / 180) * Math.PI); this._y = this.PosY + this.ImgHeight / 2 - (this.ImgWidth / 2) * Math.sin((this._rotation / 180) * Math.PI) - (this.ImgHeight / 2) * Math.cos((this._rotation / 180) * Math.PI); if (this.StayTime > 0) { --this.StayTime; } } } }; } function StayEffect_ZoomInZoomOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.ZoomOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgWidth = ImgWidth; ImgMC.ImgHeight = ImgHeight; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.ZoomOut) { this._xscale -= this.StaySpeed; this._yscale -= this.StaySpeed; if (this._xscale < 90) { this.ZoomOut = false; } } else { this._xscale += this.StaySpeed; this._yscale += this.StaySpeed; if (this._xscale > 110) { this.ZoomOut = true; } } this._x = this.PosX + this.ImgWidth / 2 - this._width / 2; this._y = this.PosY + this.ImgHeight / 2 - this._height / 2; }; } function StayEffect_FadeInFadeOut(ImgMC, StayTime, MovieWidth, MovieHeight, PosX, PosY, StaySpeed, ImgAlpha, ImgWidth, ImgHeight) { ImgMC.StaySpeed = StaySpeed; ImgMC.AlphaOut = true; ImgMC.PosX = PosX; ImgMC.PosY = PosY; ImgMC.ImgAlpha = ImgAlpha; ImgMC.StayTime = StayTime; ImgMC.onEnterFrame = function () { if (this.StayTime == 0) { this._rotation = 0; this._xscale = 100; this._yscale = 100; this._x = this.PosX; this._y = this.PosY; this._alpha = this.ImgAlpha; delete this.onEnterFrame; } else { if (this.StayTime > 0) { --this.StayTime; } } if (this.AlphaOut) { this._alpha -= this.StaySpeed; if (this._alpha < 80) { this.AlphaOut = false; } } else { this._alpha += this.StaySpeed; if (this._alpha >= 100) { this.AlphaOut = true; } } }; } ParamsDefine = '<ParamsDefine><Img.BlindWidth caption="Blind width" type="integer" min="1" max="50" default="12"/><Img.InEffect caption="In effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade in" default="Blinds horizontal"/><Img.InSpeed caption="In speed" type="integer" min="1" max="50" default="4"/><Img.StayEffect caption="Stay effect" type="selection" selection="Stay;Rotating;Zoom in Zoom out;Fade in Fade out;Flicker" default="Stay"/><Img.StaySpeed caption="Stay speed" type="integer" min="1" max="50" default="4"/><Img.StayTime caption="Stay effect time" type="selection" selection="To end;Custom" default="To end"/><Img.StayTimeCustom caption="Stay effect custom seconds" type="integer" min="1" max="50" default="3"/><Img.OutEffect caption="Out effect" type="selection" selection="Blinds horizontal;Blinds vertical;Fade out" default="Blinds horizontal"/><Img.OutSpeed caption="Out speed" type="integer" min="1" max="50" default="4"/><Img.EffectName caption="Effect Name" type="const" default="Img.Blinds"/></ParamsDefine>'; var param = new Array(); param.Movie.Width = _parent._width; param.Movie.Height = _parent._height; if (ParamsValue != null) { paramXML = new XML(ParamsValue); paramXML.ignoreWhite = false; var i = 0; while (i < paramXML.childNodes[0].childNodes.length) { node = paramXML.childNodes[0].childNodes[i]; param[node.nodeName] = node.childNodes[0].nodeValue; ++i; } param.Movie.Width = parseInt(param.Movie.Width); param.Movie.Height = parseInt(param.Movie.Height); param.Movie.FPS = parseInt(param.Movie.FPS); param.Img.InSpeed = parseInt(param.Img.InSpeed); param.Img.OutSpeed = parseInt(param.Img.OutSpeed); param.Img.StaySpeed = parseInt(param.Img.StaySpeed); param.Img.StayTimeCustom = parseInt(param.Img.StayTimeCustom); param.Img.BlindWidth = parseInt(param.Img.BlindWidth); param.Img.PosX = parseInt(param.Img.PosX); param.Img.PosY = parseInt(param.Img.PosY); param.Img.Rotation = parseInt(param.Img.Rotation); param.Img.Alpha = parseInt(param.Img.Alpha); param.Img.StaticText = param.Img.StaticText.toLowerCase() == 'true'; param.Img.DelayFrame = parseInt(param.Img.DelayFrame); param.Img.DurationFrame = parseInt(param.Img.DurationFrame); param.Img.KeepText = param.Img.KeepText.toLowerCase() == 'true'; param.Img.URL = param.Img.URL.toLowerCase() == 'true'; delete paramXML; } else { param.Movie.Width = 400; param.Movie.Height = 300; param.Img.InSpeed = 8; param.Img.OutSpeed = 8; param.Img.StaySpeed = 4; param.Img.StayTimeCustom = 3; param.Img.PosX = 100; param.Img.PosY = 100; param.Img.Rotation = 0; param.Img.Alpha = 100; param.Img.StaticText = false; param.Img.DelayFrame = 0; param.Img.DurationFrame = 10; param.Img.KeepText = false; param.Img.URL = false; param.Img.URLAddress = 'about:blank'; param.Img.URLTarget = '_blank'; } if (param.Img.StaticText) { gotoAndPlay(_currentframe + 3); } } frame 3 { param.Img.DelayFrame -= 1; if (param.Img.DelayFrame > 0) { gotoAndPlay(_currentframe - 1); } } frame 4 { stop(); var ImageMovie_MC = this.attachMovie(param.Img.ImageMovieExport, 'ImageMovie_MC', 2); if (param.Img.StaticText) { InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, 20, param.Img.Alpha); } else { switch (param.Img.InEffect) { case 'Blinds horizontal': InEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': InEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade in': InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); break; default: InEffect_FadeIn(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.InSpeed, param.Img.Alpha); } } } frame 5 { var iStayEffectTime = -1; if (param.Img.StayTime != 'To end') { iStayEffectTime = param.Movie.FPS * param.Img.StayTimeCustom; } switch (param.Img.StayEffect) { case 'Stay': StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Flicker': StayEffect_Flicker(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Rotating': StayEffect_Rotating(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Zoom in Zoom out': StayEffect_ZoomInZoomOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; case 'Fade in Fade out': StayEffect_FadeInFadeOut(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); break; default: StayEffect_Stay(ImageMovie_MC, iStayEffectTime, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.StaySpeed, param.Img.Alpha, ImageMovie_MC._width, ImageMovie_MC._height); } } frame 7 { if (param.Img.DurationFrame < 0) { gotoAndPlay(_currentframe - 1); } else { param.Img.DurationFrame -= 1; if (param.Img.DurationFrame > 0) { gotoAndPlay(_currentframe - 1); } else { gotoAndPlay(_currentframe + 1); } } } frame 8 { if (param.Img.KeepText || param.Img.StaticText) { gotoAndPlay(_currentframe + 2); } } frame 9 { stop(); LeaveStayEffect(ImageMovie_MC, param.Img.PosX, param.Img.PosY, param.Img.Alpha); switch (param.Img.OutEffect) { case 'Blinds horizontal': OutEffect_BlindsHorizontal(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Blinds vertical': OutEffect_BlindsVertical(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.PosX, param.Img.PosY, param.Img.OutSpeed, ImageMovie_MC._width, ImageMovie_MC._height, param.Img.BlindWidth); break; case 'Fade out': OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); break; default: OutEffect_FadeOut(ImageMovie_MC, param.Movie.Width, param.Movie.Height, param.Img.OutSpeed); } } frame 10 { stop(); if (!param.Img.StaticText) { _parent.g_effectcount -= 1; if (_parent.g_effectcount <= 0) { _parent.play(); } } } } frame 51 { stop(); g_effectcount = 1; } frame 52 { gotoAndPlay('loopstart'); }




http://swfchan.com/39/194349/info.shtml
Created: 14/10 -2018 09:56:23 Last modified: 14/10 -2018 09:56:23 Server time: 22/12 -2024 21:02:33