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

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

Escape_.swf

This is the info page for
Flash #48650

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


Text
M

L

LOADING

<p align="center"><font face="Pixelyn" size="30" color="#ffff00" letterSpacing="0.000000" kerning="1">200</font></p>

gridHolder

PLAY

vnum

how to play

Slide the KING        PIECE to the exit to solve each puzzle.

the less moves you use, the higher your score

your progress will be saved while using this computer

Use the mouse to click and drag the pieces

your best score for each level will be kept

8

control

levels
unlocked

-

your total score

-

PLAY MORE
FREE GAMES

at terrypaton.com

CLICK TO

escape

you have unlocked

0

PICK A LEVEL

50

50

blockHolder

miscHolder

MOVES

LEVEL

CLICK TO CHANGE THEME

RESTART LEVEL

QUIT CURRENT GAME

AND SUBMIT YOUR SCORE

YOUR PROGRESS HAS BEEN SAVED

1000

BONUS

SCORE

0

BEST LEVEL SCORE

SCORE IS ADDED WHEN YOU
COMPLETE EACH LEVEL

well done, you have beaten all stages

game complete!

You may only submit a highscore when you
beat your previous best SCORE

-

your highscore

ActionScript [AS1/AS2]

Frame 1
Security.allowDomain("*"); MochiAd.showPreGameAd({id:"12b75ebd1bf3da4e", res:"640x480"});
Frame 2
function gameMenu(menu, obj) { getURL (_root.webSite, "_blank"); } function qualityHigh() { _quality = "high"; } function qualityLow() { _quality = "low"; } this._lockroot = true; var gameName = "escape"; vNum = "1.01"; gameQuality = "AUTO"; _quality = "HIGH"; authorsSite = "http://www.terrypaton.com"; var menu_cm = new ContextMenu(); menu_cm.customItems.push(new ContextMenuItem(authorsSite, gameMenu)); menu_cm.customItems.push(new ContextMenuItem("HIGH Quality", qualityHigh)); menu_cm.customItems.push(new ContextMenuItem("LOW Quality", qualityLow)); menu_cm.hideBuiltInItems(); _root.menu = menu_cm; legalDomain = "http://www.terrypaton.com"; gameLocation = _root._url.substr(0, legalDomain.length); if (gameLocation != legalDomain) { } _global.$createTweenController = function () { var _local3 = _root.createEmptyMovieClip("__tweenController__", 123432); _local3.$_tweenPropList = new Array(); _local3.$_tTime = getTimer(); _local3.onEnterFrame = _global.$updateTweens; }; ASSetPropFlags(_global, "$createTweenController", 1, 0); _global.$removeTweenController = function () { delete _root.__tweenController__.$_tweenPropList; delete _root.__tweenController__.$_tTime; delete _root.__tweenController__.onEnterFrame; _root.__tweenController__.removeMovieClip(); }; ASSetPropFlags(_global, "$removeTweenController", 1, 0); _global.$addTween = function (mtarget, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2, extras) { if (timeSeconds == undefined) { timeSeconds = 0; } if ((animType == undefined) || (animType == "")) { animType = "easeOutExpo"; } if (delay == undefined) { delay = 0; } if (typeof(prop) == "string") { var _local7 = [prop]; var _local11 = [mtarget[prop]]; var _local9 = [propDest]; } else { var _local7 = []; var _local11 = []; var _local9 = []; for (var _local32 in prop) { _local11.push(mtarget[prop[_local32]]); } for (var _local32 in prop) { _local7.push(prop[_local32]); } for (var _local32 in propDest) { _local9.push(propDest[_local32]); } } var _local12 = false; if (_root.__tweenController__ == undefined) { _global.$createTweenController(); } var _local4 = _root.__tweenController__.$_tweenPropList; var _local8 = _root.__tweenController__.$_tTime; for (var _local32 in _local11) { if ((_local9[_local32] != undefined) && (!mtarget.$_isTweenLocked)) { if (mtarget.$_tweenCount > 0) { var _local3 = 0; while (_local3 < _local4.length) { if ((_local4[_local3]._targ == mtarget) && (_local4[_local3]._prop == _local7[_local32])) { if ((_local8 + (delay * 1000)) < _local4[_local3]._timeDest) { _local4.splice(_local3, 1); _local3--; mtarget.$_tweenCount--; } } _local3++; } } _local4.push({_prop:_local7[_local32], _targ:mtarget, _propStart:undefined, _propDest:_local9[_local32], _timeStart:_local8, _timeDest:_local8 + (timeSeconds * 1000), _animType:animType, _extra1:extra1, _extra2:extra2, _extras:extras, _delay:delay, _isPaused:false, _timePaused:0, _callback:(_local12 ? undefined : (callback))}); mtarget.$_tweenCount = ((mtarget.$_tweenCount > 0) ? (mtarget.$_tweenCount + 1) : 1); _local12 = true; } } ASSetPropFlags(mtarget, "$_tweenCount", 1, 0); }; ASSetPropFlags(_global, "$addTween", 1, 0); _global.$updateTweens = function () { var _local8 = (this.$_tTime = getTimer()); var _local6 = 0; while (_local6 < this.$_tweenPropList.length) { var _local3 = this.$_tweenPropList[_local6]; if (_local3._targ.toString() == undefined) { this.$_tweenPropList.splice(_local6, 1); _local6--; } else if (((_local3._timeStart + (_local3._delay * 1000)) <= _local8) && (!_local3._isPaused)) { if (_local3._propStart == undefined) { if (_local3._prop.substr(0, 10) == "__special_") { if (_local3._prop == "__special_mc_frame__") { _local3._propStart = _local3._targ._currentframe; } else if (_local3._prop == "__special_mc_ra__") { _local3._propStart = new Color(_local3._targ).getTransform().ra; } else if (_local3._prop == "__special_mc_rb__") { _local3._propStart = new Color(_local3._targ).getTransform().rb; } else if (_local3._prop == "__special_mc_ga__") { _local3._propStart = new Color(_local3._targ).getTransform().ga; } else if (_local3._prop == "__special_mc_gb__") { _local3._propStart = new Color(_local3._targ).getTransform().gb; } else if (_local3._prop == "__special_mc_ba__") { _local3._propStart = new Color(_local3._targ).getTransform().ba; } else if (_local3._prop == "__special_mc_bb__") { _local3._propStart = new Color(_local3._targ).getTransform().bb; } else if (_local3._prop == "__special_mc_aa__") { _local3._propStart = new Color(_local3._targ).getTransform().aa; } else if (_local3._prop == "__special_mc_ab__") { _local3._propStart = new Color(_local3._targ).getTransform().ab; } else if (_local3._prop == "__special_text_r__") { _local3._propStart = _local3._targ.textColor >> 16; } else if (_local3._prop == "__special_text_g__") { _local3._propStart = (_local3._targ.textColor & 65280) >> 8; } else if (_local3._prop == "__special_text_b__") { _local3._propStart = _local3._targ.textColor & 255; } else if (_local3._prop == "__special_sound_volume__") { _local3._propStart = _local3._targ.getVolume(); } else if (_local3._prop == "__special_sound_pan__") { _local3._propStart = _local3._targ.getPan(); } else if (_local3._prop == "__special_bst_t__") { _local3._propStart = 0; _local3._extras.__special_bst_ix__ = _local3._targ._x; _local3._extras.__special_bst_iy__ = _local3._targ._y; } else if (_local3._prop == "__special_blur_x__") { var _local5 = 0; while (_local5 < _local3._targ.filters.length) { if (_local3._targ.filters[_local5] instanceof flash.filters.BlurFilter) { _local3._propStart = _local3._targ.filters[_local5].blurX; } _local5++; } if (_local3._propStart == undefined) { _local3._propStart = 0; } } else if (_local3._prop == "__special_blur_y__") { var _local5 = 0; while (_local5 < _local3._targ.filters.length) { if (_local3._targ.filters[_local5] instanceof flash.filters.BlurFilter) { _local3._propStart = _local3._targ.filters[_local5].blurY; } _local5++; } if (_local3._propStart == undefined) { _local3._propStart = 0; } } else if (_local3._prop == "__special_glow_color__") { var _local5 = 0; while (_local5 < _local3._targ.filters.length) { if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) { _local3._propStart = _local3._targ.filters[_local5].color; } _local5++; } if (_local3._propStart == undefined) { _local3._propStart = 16777215 /* 0xFFFFFF */; } } else if (_local3._prop == "__special_glow_alpha__") { var _local5 = 0; while (_local5 < _local3._targ.filters.length) { if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) { _local3._propStart = _local3._targ.filters[_local5].alpha; } _local5++; } if (_local3._propStart == undefined) { _local3._propStart = 1; } } else if (_local3._prop == "__special_glow_blurX__") { var _local5 = 0; while (_local5 < _local3._targ.filters.length) { if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) { _local3._propStart = _local3._targ.filters[_local5].blurX; } _local5++; } if (_local3._propStart == undefined) { _local3._propStart = 0; } } else if (_local3._prop == "__special_glow_blurY__") { var _local5 = 0; while (_local5 < _local3._targ.filters.length) { if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) { _local3._propStart = _local3._targ.filters[_local5].blurY; } _local5++; } if (_local3._propStart == undefined) { _local3._propStart = 0; } } else if (_local3._prop == "__special_glow_strength__") { var _local5 = 0; while (_local5 < _local3._targ.filters.length) { if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) { _local3._propStart = _local3._targ.filters[_local5].strength; } _local5++; } if (_local3._propStart == undefined) { _local3._propStart = 1; } } else if (_local3._prop == "__special_bevel_distance__") { var _local5 = 0; while (_local5 < _local3._targ.filters.length) { if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) { _local3._propStart = _local3._targ.filters[_local5].distance; } _local5++; } if (_local3._propStart == undefined) { _local3._propStart = 0; } } else if (_local3._prop == "__special_bevel_angle__") { var _local5 = 0; while (_local5 < _local3._targ.filters.length) { if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) { _local3._propStart = _local3._targ.filters[_local5].angle; } _local5++; } if (_local3._propStart == undefined) { _local3._propStart = 45; } } else if (_local3._prop == "__special_bevel_highlightColor__") { var _local5 = 0; while (_local5 < _local3._targ.filters.length) { if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) { _local3._propStart = _local3._targ.filters[_local5].highlightColor; } _local5++; } if (_local3._propStart == undefined) { _local3._propStart = 16777215 /* 0xFFFFFF */; } } else if (_local3._prop == "__special_bevel_highlightAlpha__") { var _local5 = 0; while (_local5 < _local3._targ.filters.length) { if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) { _local3._propStart = _local3._targ.filters[_local5].highlightAlpha; } _local5++; } if (_local3._propStart == undefined) { _local3._propStart = 1; } } else if (_local3._prop == "__special_bevel_shadowColor__") { var _local5 = 0; while (_local5 < _local3._targ.filters.length) { if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) { _local3._propStart = _local3._targ.filters[_local5].shadowColor; } _local5++; } if (_local3._propStart == undefined) { _local3._propStart = 0; } } else if (_local3._prop == "__special_bevel_shadowAlpha__") { var _local5 = 0; while (_local5 < _local3._targ.filters.length) { if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) { _local3._propStart = _local3._targ.filters[_local5].shadowAlpha; } _local5++; } if (_local3._propStart == undefined) { _local3._propStart = 1; } } else if (_local3._prop == "__special_bevel_blurX__") { var _local5 = 0; while (_local5 < _local3._targ.filters.length) { if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) { _local3._propStart = _local3._targ.filters[_local5].blurX; } _local5++; } if (_local3._propStart == undefined) { _local3._propStart = 0; } } else if (_local3._prop == "__special_bevel_blurY__") { var _local5 = 0; while (_local5 < _local3._targ.filters.length) { if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) { _local3._propStart = _local3._targ.filters[_local5].blurY; } _local5++; } if (_local3._propStart == undefined) { _local3._propStart = 0; } } else if (_local3._prop == "__special_bevel_strength__") { var _local5 = 0; while (_local5 < _local3._targ.filters.length) { if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) { _local3._propStart = _local3._targ.filters[_local5].strength; } _local5++; } if (_local3._propStart == undefined) { _local3._propStart = 1; } } else { _local3._propStart = _local3._targ[_local3._prop]; } } else { _local3._propStart = _local3._targ[_local3._prop]; } } var _local10 = _local3._timeDest + (_local3._delay * 1000); if (_local10 <= _local8) { var _local4 = _local3._propDest; } else { var _local4 = _global.findTweenValue(_local3._propStart, _local3._propDest, _local3._timeStart, _local8 - (_local3._delay * 1000), _local3._timeDest, _local3._animType, _local3._extra1, _local3._extra2); } _local3._targ[_local3._prop] = (_local3._extras.mustRound ? (Math.round(_local4)) : (_local4)); if (_local3._prop == "__special_mc_frame__") { _local3._targ.gotoAndStop(Math.round(_local4)); } else if (_local3._prop == "__special_mc_ra__") { new Color(_local3._targ).setTransform({ra:_local4}); } else if (_local3._prop == "__special_mc_rb__") { new Color(_local3._targ).setTransform({rb:_local4}); } else if (_local3._prop == "__special_mc_ga__") { new Color(_local3._targ).setTransform({ga:_local4}); } else if (_local3._prop == "__special_mc_gb__") { new Color(_local3._targ).setTransform({gb:_local4}); } else if (_local3._prop == "__special_mc_ba__") { new Color(_local3._targ).setTransform({ba:_local4}); } else if (_local3._prop == "__special_mc_bb__") { new Color(_local3._targ).setTransform({bb:_local4}); } else if (_local3._prop == "__special_mc_aa__") { new Color(_local3._targ).setTransform({aa:_local4}); } else if (_local3._prop == "__special_mc_ab__") { new Color(_local3._targ).setTransform({ab:_local4}); } if (_local3._prop == "__special_bst_t__") { var _local7 = _local3._extras; var _local9 = _global.findPointOnCurve(_local7.__special_bst_ix__, _local7.__special_bst_iy__, _local7.__special_bst_cx__, _local7.__special_bst_cy__, _local7.__special_bst_dx__, _local7.__special_bst_dy__, _local4); if (_local3._extras.mustRound) { _local3._targ._x = Math.round(_local9.x); _local3._targ._y = Math.round(_local9.y); } else { _local3._targ._x = _local9.x; _local3._targ._y = _local9.y; } } if ((typeof(_local3._targ) != "movieclip") && (_local3._prop == "__special_text_b__")) { _local3._targ.textColor = ((_local3._targ.__special_text_r__ << 16) + (_local3._targ.__special_text_g__ << 8)) + _local3._targ.__special_text_b__; } if (_local3._prop == "__special_sound_volume__") { _local3._targ.setVolume(_local4); } if (_local3._prop == "__special_sound_pan__") { _local3._targ.setPan(_local4); } if (_local3._prop == "__special_blur_x__") { _global.$setFilterProperty(_local3._targ, "blur_blurX", _local4, _local3._extras); } if (_local3._prop == "__special_blur_y__") { _global.$setFilterProperty(_local3._targ, "blur_blurY", _local4, _local3._extras); } if (_local3._prop == "__special_glow_color__") { _global.$setFilterProperty(_local3._targ, "glow_color", _global.findTweenColor(_local3, _local8), _local3._extras); } if (_local3._prop == "__special_glow_alpha__") { _global.$setFilterProperty(_local3._targ, "glow_alpha", _local4, _local3._extras); } if (_local3._prop == "__special_glow_blurX__") { _global.$setFilterProperty(_local3._targ, "glow_blurX", _local4, _local3._extras); } if (_local3._prop == "__special_glow_blurY__") { _global.$setFilterProperty(_local3._targ, "glow_blurY", _local4, _local3._extras); } if (_local3._prop == "__special_glow_strength__") { _global.$setFilterProperty(_local3._targ, "glow_strength", _local4, _local3._extras); } if (_local3._prop == "__special_bevel_distance__") { _global.$setFilterProperty(_local3._targ, "bevel_distance", _local4, _local3._extras); } if (_local3._prop == "__special_bevel_angle__") { _global.$setFilterProperty(_local3._targ, "bevel_angle", _local4, _local3._extras); } if (_local3._prop == "__special_bevel_highlightColor__") { _global.$setFilterProperty(_local3._targ, "bevel_highlightColor", _global.findTweenColor(_local3, _local8), _local3._extras); } if (_local3._prop == "__special_bevel_highlightAlpha__") { _global.$setFilterProperty(_local3._targ, "bevel_highlightAlpha", _local4, _local3._extras); } if (_local3._prop == "__special_bevel_shadowColor__") { _global.$setFilterProperty(_local3._targ, "bevel_shadowColor", _global.findTweenColor(_local3, _local8), _local3._extras); } if (_local3._prop == "__special_bevel_shadowAlpha__") { _global.$setFilterProperty(_local3._targ, "bevel_shadowAlpha", _local4, _local3._extras); } if (_local3._prop == "__special_bevel_blurX__") { _global.$setFilterProperty(_local3._targ, "bevel_blurX", _local4, _local3._extras); } if (_local3._prop == "__special_bevel_blurY__") { _global.$setFilterProperty(_local3._targ, "bevel_blurY", _local4, _local3._extras); } if (_local3._prop == "__special_bevel_strength__") { _global.$setFilterProperty(_local3._targ, "bevel_strength", _local4, _local3._extras); } if (_local3._targ.onTweenUpdate != undefined) { _local3._targ.onTweenUpdate(_local3._prop); } if (_local10 <= _local8) { if (_local3._targ.onTweenComplete != undefined) { _local3._targ.onTweenComplete(_local3._prop); } _global.$stopTween(_local3._targ, [_local3._prop], false); _local6--; if (_local3._callback != undefined) { if (_global.backwardCallbackTweening) { var _local11 = _local3._targ.createEmptyMovieClip("__child__", 122344); _local3._callback.apply(_local11, null); _local11.removeMovieClip(); } else { _local3._callback.apply(_local3._targ, null); } } } } _local6++; } if (this.$_tweenPropList.length == 0) { _global.$removeTweenController(); } }; ASSetPropFlags(_global, "$updateTween", 1, 0); _global.$stopTween = function (mtarget, props, wipeFuture) { var _local4 = _root.__tweenController__.$_tweenPropList; var _local7; for (var _local9 in _local4) { _local7 = _local4[_local9]._prop; var _local5 = 0; while ((_local5 < props.length) || ((_local5 < 1) && (props == undefined))) { if (((_local4[_local9]._targ == mtarget) && ((_local7 == props[_local5]) || (props == undefined))) && (wipeFuture || ((_local4[_local9]._timeDest + (_local4[_local9]._delay * 1000)) <= getTimer()))) { switch (_local7) { case "__special_mc_frame__" : case "__special_mc_ra__" : case "__special_mc_rb__" : case "__special_mc_ga__" : case "__special_mc_gb__" : case "__special_mc_ba__" : case "__special_mc_bb__" : case "__special_mc_aa__" : case "__special_mc_ab__" : case "__special_sound_volume__" : case "__special_bst_t__" : delete mtarget[_local7]; break; case "__special_text_b__" : delete mtarget.__special_text_r__; delete mtarget.__special_text_g__; delete mtarget.__special_text_b__; } _local4.splice(_local9, 1); } _local5++; } } if (props == undefined) { delete mtarget.$_tweenCount; } else { mtarget.$_tweenCount = 0; for (var _local9 in _local4) { if (_local4[_local9]._targ == mtarget) { mtarget.$_tweenCount++; } } if (mtarget.$_tweenCount == 0) { delete mtarget.$_tweenCount; } } if (_local4.length == 0) { _global.$removeTweenController(); } }; ASSetPropFlags(_global, "$stopTween", 1, 0); _global.$setFilterProperty = function (mtarget, propName, propValue, extras) { var _local1; var _local7 = false; var _local3 = []; _local1 = 0; while (_local1 < mtarget.filters.length) { _local3.push(mtarget.filters[_local1]); _local1++; } if (propName.substr(0, 5) == "blur_") { _local1 = 0; while (_local1 < mtarget.filters.length) { if (_local3[_local1] instanceof flash.filters.BlurFilter) { _local3[_local1][propName.substr(5)] = propValue; if (extras.__special_blur_quality__ != undefined) { _local3[_local1].quality = extras.__special_blur_quality__; } _local7 = true; break; } _local1++; } if (!_local7) { var _local9; var _local8 = ((extras.__special_blur_quality__ == undefined) ? 2 : (extras.__special_blur_quality__)); if (propName == "blur_blurX") { _local9 = new flash.filters.BlurFilter(propValue, 0, _local8); } if (propName == "blur_blurY") { _local9 = new flash.filters.BlurFilter(0, propValue, _local8); } _local3.push(_local9); } } else if (propName.substr(0, 5) == "glow_") { _local1 = 0; while (_local1 < mtarget.filters.length) { if (_local3[_local1] instanceof flash.filters.GlowFilter) { _local3[_local1][propName.substr(5)] = propValue; if (extras.__special_glow_quality__ != undefined) { _local3[_local1].quality = extras.__special_glow_quality__; } if (extras.__special_glow_inner__ != undefined) { _local3[_local1].inner = extras.__special_glow_inner__; } if (extras.__special_glow_knockout__ != undefined) { _local3[_local1].knockout = extras.__special_glow_knockout__; } _local7 = true; break; } _local1++; } if (!_local7) { var _local8 = ((extras.__special_glow_quality__ == undefined) ? 2 : (extras.__special_glow_quality__)); var _local12 = ((extras.__special_glow_inner__ == undefined) ? false : (extras.__special_glow_inner__)); var _local10 = ((extras.__special_glow_knockout__ == undefined) ? false : (extras.__special_glow_knockout__)); if (propName == "glow_color") { var _local9 = new flash.filters.GlowFilter(propValue, 1, 0, 0, 1, _local8, _local12, _local10); } if (propName == "glow_alpha") { var _local9 = new flash.filters.GlowFilter(16777215, propValue, 0, 0, 1, _local8, _local12, _local10); } if (propName == "glow_blurX") { var _local9 = new flash.filters.GlowFilter(16777215, 1, propValue, 0, 1, _local8, _local12, _local10); } if (propName == "glow_blurY") { var _local9 = new flash.filters.GlowFilter(16777215, 1, 0, propValue, 1, _local8, _local12, _local10); } if (propName == "glow_strength") { var _local9 = new flash.filters.GlowFilter(16777215, 1, 0, 0, propValue, _local8, _local12, _local10); } _local3.push(_local9); } } else if (propName.substr(0, 6) == "bevel_") { _local1 = 0; while (_local1 < mtarget.filters.length) { if (_local3[_local1] instanceof flash.filters.BevelFilter) { _local3[_local1][propName.substr(6)] = propValue; if (extras.__special_bevel_quality__ != undefined) { _local3[_local1].quality = extras.__special_bevel_quality__; } if (extras.__special_bevel_type__ != undefined) { _local3[_local1].inner = extras.__special_bevel_type__; } if (extras.__special_bevel_knockout__ != undefined) { _local3[_local1].knockout = extras.__special_bevel_knockout__; } _local7 = true; break; } _local1++; } if (!_local7) { var _local8 = ((extras.__special_bevel_quality__ == undefined) ? 2 : (extras.__special_bevel_quality__)); var _local11 = ((extras.__special_bevel_type__ == undefined) ? "inner" : (extras.__special_bevel_type__)); var _local10 = ((extras.__special_bevel_knockout__ == undefined) ? false : (extras.__special_bevel_knockout__)); if (propName == "bevel_distance") { var _local9 = new flash.filters.BevelFilter(propValue, 45, 16777215, 1, 0, 1, 0, 0, 1, _local8, _local11, _local10); } if (propName == "bevel_angle") { var _local9 = new flash.filters.BevelFilter(0, propValue, 16777215, 1, 0, 1, 0, 0, 1, _local8, _local11, _local10); } if (propName == "bevel_highlightColor") { var _local9 = new flash.filters.BevelFilter(0, 45, propValue, 1, 0, 1, 0, 0, 1, _local8, _local11, _local10); } if (propName == "bevel_highlightAlpha") { var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, propValue, 0, 1, 0, 0, 1, _local8, _local11, _local10); } if (propName == "bevel_shadowColor") { var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, propValue, 1, 0, 0, 1, _local8, _local11, _local10); } if (propName == "bevel_shadowAlpha") { var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, propValue, 0, 0, 1, _local8, _local11, _local10); } if (propName == "bevel_blurX") { var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, propValue, 0, 1, _local8, _local11, _local10); } if (propName == "bevel_blurY") { var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, 0, propValue, 1, _local8, _local11, _local10); } if (propName == "bevel_strength") { var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, 0, 0, propValue, _local8, _local11, _local10); } _local3.push(_local9); } } else { return(undefined); } mtarget.filters = _local3; }; MovieClip.prototype.tween = (TextField.prototype.tween = (Sound.prototype.tween = function (prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2); })); ASSetPropFlags(MovieClip.prototype, "tween", 1, 0); ASSetPropFlags(TextField.prototype, "tween", 1, 0); ASSetPropFlags(Sound.prototype, "tween", 1, 0); MovieClip.prototype.roundedTween = (TextField.prototype.roundedTween = (Sound.prototype.roundedTween = function (prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true}); })); ASSetPropFlags(MovieClip.prototype, "roundedTween", 1, 0); ASSetPropFlags(TextField.prototype, "roundedTween", 1, 0); ASSetPropFlags(Sound.prototype, "roundedTween", 1, 0); MovieClip.prototype.stopTween = (TextField.prototype.stopTween = (Sound.prototype.stopTween = function (props) { if (typeof(props) == "string") { props = [props]; } if (props != undefined) { var _local4 = 1; while (_local4 < arguments.length) { props.push(arguments[_local4]); _local4++; } } _global.$stopTween(this, props, true); })); ASSetPropFlags(MovieClip.prototype, "stopTween", 1, 0); ASSetPropFlags(TextField.prototype, "stopTween", 1, 0); ASSetPropFlags(Sound.prototype, "stopTween", 1, 0); MovieClip.prototype.pauseTween = (TextField.prototype.pauseTween = (Sound.prototype.pauseTween = function (props) { if (props != undefined) { if (typeof(props) == "string") { props = [props]; } var _local6 = 1; while (_local6 < Arguments.length) { props.push(Arguments[_local6]); _local6++; } } var _local4 = _root.__tweenController__.$_tweenPropList; var _local5; for (var _local7 in _local4) { if ((_local4[_local7]._targ == this) && (!_local4[_local7]._isPaused)) { if (props != undefined) { _local5 = false; for (var _local6 in props) { if (props[_local6] == _local4[_local7]._prop) { _local5 = true; break; } } } if ((props == undefined) || (_local5)) { _local4[_local7]._isPaused = true; _local4[_local7]._timePaused = _root.__tweenController__.$_tTime; } } } })); ASSetPropFlags(MovieClip.prototype, "pauseTween", 1, 0); ASSetPropFlags(TextField.prototype, "pauseTween", 1, 0); ASSetPropFlags(Sound.prototype, "pauseTween", 1, 0); MovieClip.prototype.resumeTween = (TextField.prototype.resumeTween = (Sound.prototype.resumeTween = function (props) { if (props != undefined) { if (typeof(props) == "string") { props = [props]; } var _local7 = 1; while (_local7 < Arguments.length) { props.push(Arguments[_local7]); _local7++; } } var _local3 = _root.__tweenController__.$_tweenPropList; var _local5; var _local6; for (var _local8 in _local3) { if ((_local3[_local8]._targ == this) && (_local3[_local8]._isPaused)) { if (props != undefined) { _local5 = false; for (var _local7 in props) { if (props[_local7] == _local3[_local8]._prop) { _local5 = true; break; } } } if ((props == undefined) || (_local5)) { _local3[_local8]._isPaused = false; _local6 = _root.__tweenController__.$_tTime - _local3[_local8]._timePaused; _local3[_local8]._timeStart = _local3[_local8]._timeStart + _local6; _local3[_local8]._timeDest = _local3[_local8]._timeDest + _local6; _local3[_local8]._timePaused = 0; } } } })); ASSetPropFlags(MovieClip.prototype, "resumeTween", 1, 0); ASSetPropFlags(TextField.prototype, "resumeTween", 1, 0); ASSetPropFlags(Sound.prototype, "resumeTween", 1, 0); MovieClip.prototype.lockTween = (TextField.prototype.lockTween = (Sound.prototype.lockTween = function () { this.$_isTweenLocked = true; ASSetPropFlags(this, "this.$_isTweenLocked", 1, 0); })); ASSetPropFlags(MovieClip.prototype, "lockTween", 1, 0); ASSetPropFlags(TextField.prototype, "lockTween", 1, 0); ASSetPropFlags(Sound.prototype, "lockTween", 1, 0); MovieClip.prototype.unlockTween = (TextField.prototype.unlockTween = (Sound.prototype.unlockTween = function () { delete this.$_isTweenLocked; })); ASSetPropFlags(MovieClip.prototype, "unlockTween", 1, 0); ASSetPropFlags(TextField.prototype, "unlockTween", 1, 0); ASSetPropFlags(Sound.prototype, "unlockTween", 1, 0); MovieClip.prototype.getTweens = (TextField.prototype.getTweens = (Sound.prototype.getTweens = function () { return(this.$_tweenCount); })); ASSetPropFlags(MovieClip.prototype, "getTweens", 1, 0); ASSetPropFlags(TextField.prototype, "getTweens", 1, 0); ASSetPropFlags(Sound.prototype, "getTweens", 1, 0); MovieClip.prototype.isTweening = (TextField.prototype.isTweening = (Sound.prototype.isTweening = function () { return(((this.$_tweenCount > 0) ? true : false)); })); ASSetPropFlags(MovieClip.prototype, "isTweening", 1, 0); ASSetPropFlags(TextField.prototype, "isTweening", 1, 0); ASSetPropFlags(Sound.prototype, "isTweening", 1, 0); MovieClip.prototype.alphaTo = (TextField.prototype.alphaTo = function (propDest_a, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, "_alpha", propDest_a, timeSeconds, animType, delay, callback, extra1, extra2); }); ASSetPropFlags(MovieClip.prototype, "alphaTo", 1, 0); ASSetPropFlags(TextField.prototype, "alphaTo", 1, 0); MovieClip.prototype.frameTo = function (propDest_frame, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, "__special_mc_frame__", propDest_frame, timeSeconds, animType, delay, callback, extra1, extra2); }; ASSetPropFlags(MovieClip.prototype, "frameTo", 1, 0); MovieClip.prototype.resizeTo = (TextField.prototype.resizeTo = function (propDest_width, propDest_height, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, ["_width", "_height"], [propDest_width, propDest_height], timeSeconds, animType, delay, callback, extra1, extra2); }); ASSetPropFlags(MovieClip.prototype, "resizeTo", 1, 0); ASSetPropFlags(TextField.prototype, "resizeTo", 1, 0); MovieClip.prototype.rotateTo = (TextField.prototype.rotateTo = function (propDest_rotation, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, "_rotation", propDest_rotation, timeSeconds, animType, delay, callback, extra1, extra2); }); ASSetPropFlags(MovieClip.prototype, "rotateTo", 1, 0); ASSetPropFlags(TextField.prototype, "rotateTo", 1, 0); MovieClip.prototype.scaleTo = (TextField.prototype.scaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, ["_xscale", "_yscale"], [propDest_scale, propDest_scale], timeSeconds, animType, delay, callback, extra1, extra2); }); ASSetPropFlags(MovieClip.prototype, "scaleTo", 1, 0); ASSetPropFlags(TextField.prototype, "scaleTo", 1, 0); MovieClip.prototype.xScaleTo = (TextField.prototype.xScaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, "_xscale", propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2); }); ASSetPropFlags(MovieClip.prototype, "xScaleTo", 1, 0); ASSetPropFlags(TextField.prototype, "xScaleTo", 1, 0); MovieClip.prototype.yScaleTo = (TextField.prototype.yScaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, "_yscale", propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2); }); ASSetPropFlags(MovieClip.prototype, "yScaleTo", 1, 0); ASSetPropFlags(TextField.prototype, "yScaleTo", 1, 0); TextField.prototype.scrollTo = function (propDest_scroll, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, "scroll", propDest_scroll, timeSeconds, animType, delay, callback, extra1, extra2); }; ASSetPropFlags(TextField.prototype, "scrollTo", 1, 0); MovieClip.prototype.slideTo = (TextField.prototype.slideTo = function (propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, ["_x", "_y"], [propDest_x, propDest_y], timeSeconds, animType, delay, callback, extra1, extra2); }); ASSetPropFlags(MovieClip.prototype, "slideTo", 1, 0); ASSetPropFlags(TextField.prototype, "slideTo", 1, 0); MovieClip.prototype.roundedSlideTo = (TextField.prototype.roundedSlideTo = function (propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, ["_x", "_y"], [propDest_x, propDest_y], timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true}); }); ASSetPropFlags(MovieClip.prototype, "roundedSlideTo", 1, 0); ASSetPropFlags(TextField.prototype, "roundedSlideTo", 1, 0); MovieClip.prototype.xSlideTo = (TextField.prototype.xSlideTo = function (propDest_x, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, "_x", propDest_x, timeSeconds, animType, delay, callback, extra1, extra2); }); ASSetPropFlags(MovieClip.prototype, "xSlideTo", 1, 0); ASSetPropFlags(TextField.prototype, "xSlideTo", 1, 0); MovieClip.prototype.roundedXSlideTo = (TextField.prototype.roundedXSlideTo = function (propDest_x, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, "_x", propDest_x, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true}); }); ASSetPropFlags(MovieClip.prototype, "roundedXSlideTo", 1, 0); ASSetPropFlags(TextField.prototype, "roundedXSlideTo", 1, 0); MovieClip.prototype.ySlideTo = (TextField.prototype.ySlideTo = function (propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, "_y", propDest_y, timeSeconds, animType, delay, callback, extra1, extra2); }); ASSetPropFlags(MovieClip.prototype, "ySlideTo", 1, 0); ASSetPropFlags(TextField.prototype, "ySlideTo", 1, 0); MovieClip.prototype.roundedYSlideTo = (TextField.prototype.roundedYSlideTo = function (propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, "_y", propDest_y, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true}); }); ASSetPropFlags(MovieClip.prototype, "roundedYSlideTo", 1, 0); ASSetPropFlags(TextField.prototype, "roundedYSlideTo", 1, 0); MovieClip.prototype.bezierSlideTo = (TextField.prototype.bezierSlideTo = function (cpoint_x, cpoint_y, propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) { var _local3 = new Object(); _local3.__special_bst_ix__ = undefined; _local3.__special_bst_iy__ = undefined; _local3.__special_bst_cx__ = cpoint_x; _local3.__special_bst_cy__ = cpoint_y; _local3.__special_bst_dx__ = propDest_x; _local3.__special_bst_dy__ = propDest_y; _global.$addTween(this, "__special_bst_t__", 1, timeSeconds, animType, delay, callback, extra1, extra2, _local3); }); ASSetPropFlags(MovieClip.prototype, "bezierSlideTo", 1, 0); ASSetPropFlags(TextField.prototype, "bezierSlideTo", 1, 0); MovieClip.prototype.roundedBezierSlideTo = (TextField.prototype.roundedBezierSlideTo = function (cpoint_x, cpoint_y, propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) { var _local3 = new Object(); _local3.__special_bst_ix__ = undefined; _local3.__special_bst_iy__ = undefined; _local3.__special_bst_cx__ = cpoint_x; _local3.__special_bst_cy__ = cpoint_y; _local3.__special_bst_dx__ = propDest_x; _local3.__special_bst_dy__ = propDest_y; _local3.mustRound = true; _global.$addTween(this, "__special_bst_t__", 1, timeSeconds, animType, delay, callback, extra1, extra2, _local3); }); ASSetPropFlags(MovieClip.prototype, "roundedBezierSlideTo", 1, 0); ASSetPropFlags(TextField.prototype, "roundedBezierSlideTo", 1, 0); Sound.prototype.volumeTo = function (propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, "__special_sound_volume__", propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2); }; ASSetPropFlags(Sound.prototype, "volumeTo", 1, 0); Sound.prototype.panTo = function (propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, "__special_sound_pan__", propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2); }; ASSetPropFlags(Sound.prototype, "panTo", 1, 0); MovieClip.prototype.colorTo = function (propDest_color, timeSeconds, animType, delay, callback, extra1, extra2) { if (propDest_color == null) { this.colorTransformTo(100, 0, 100, 0, 100, 0, undefined, undefined, timeSeconds, animType, delay, callback, extra1, extra2); } else { var _local3 = propDest_color >> 16; var _local5 = (propDest_color & 65280) >> 8; var _local4 = propDest_color & 255; this.colorTransformTo(0, _local3, 0, _local5, 0, _local4, undefined, undefined, timeSeconds, animType, delay, callback, extra1, extra2); } }; ASSetPropFlags(MovieClip.prototype, "colorTo", 1, 0); TextField.prototype.colorTo = function (propDest_color, timeSeconds, animType, delay, callback, extra1, extra2) { var _local3 = propDest_color >> 16; var _local6 = (propDest_color & 65280) >> 8; var _local4 = propDest_color & 255; _global.$addTween(this, ["__special_text_r__", "__special_text_g__", "__special_text_b__"], [_local3, _local6, _local4], timeSeconds, animType, delay, callback, extra1, extra2); }; ASSetPropFlags(TextField.prototype, "colorTo", 1, 0); MovieClip.prototype.colorTransformTo = function () { if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) { _global.$addTween(this, ["__special_mc_ra__", "__special_mc_rb__", "__special_mc_ga__", "__special_mc_gb__", "__special_mc_ba__", "__special_mc_bb__", "__special_mc_aa__", "__special_mc_ab__"], [arguments[0].ra, arguments[0].rb, arguments[0].ga, arguments[0].gb, arguments[0].ba, arguments[0].bb, arguments[0].aa, arguments[0].ab], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6]); } else { _global.$addTween(this, ["__special_mc_ra__", "__special_mc_rb__", "__special_mc_ga__", "__special_mc_gb__", "__special_mc_ba__", "__special_mc_bb__", "__special_mc_aa__", "__special_mc_ab__"], [arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[7]], arguments[8], arguments[9], arguments[10], arguments[11], arguments[12], arguments[13]); } }; ASSetPropFlags(MovieClip.prototype, "colorTransformTo", 1, 0); MovieClip.prototype.blurTo = (TextField.prototype.blurTo = function () { if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) { _global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [arguments[0].blurX, arguments[0].blurY], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_blur_quality__:arguments[0].quality}); } else { _global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [arguments[0], arguments[0]], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[7], {__special_blur_quality__:arguments[1]}); } }); ASSetPropFlags(MovieClip.prototype, "blurTo", 1, 0); ASSetPropFlags(TextField.prototype, "blurTo", 1, 0); MovieClip.prototype.xyBlurTo = (TextField.prototype.xyBlurTo = function (propDest_blurX, propDest_blurY, quality, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [propDest_blurX, propDest_blurY], timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__:quality}); }); ASSetPropFlags(MovieClip.prototype, "xyBlurTo", 1, 0); ASSetPropFlags(TextField.prototype, "xyBlurTo", 1, 0); MovieClip.prototype.xBlurTo = (TextField.prototype.xBlurTo = function (propDest_blur, quality, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, "__special_blur_x__", propDest_blur, timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__:quality}); }); ASSetPropFlags(MovieClip.prototype, "xBlurTo", 1, 0); ASSetPropFlags(TextField.prototype, "xBlurTo", 1, 0); MovieClip.prototype.yBlurTo = (TextField.prototype.yBlurTo = function (propDest_blur, quality, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, "__special_blur_y__", propDest_blur, timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__:quality}); }); ASSetPropFlags(MovieClip.prototype, "yBlurTo", 1, 0); ASSetPropFlags(TextField.prototype, "yBlurTo", 1, 0); MovieClip.prototype.glowTo = (TextField.prototype.glowTo = function () { if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) { _global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [arguments[0].color, arguments[0].alpha, arguments[0].blurX, arguments[0].blurY, arguments[0].strength], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_glow_quality__:arguments[0].quality, __special_glow_inner__:arguments[0].inner, __special_glow_knockout__:arguments[0].knockout}); } else { _global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [arguments[0], arguments[1], arguments[2], arguments[2], arguments[3]], arguments[7], arguments[8], arguments[9], arguments[10], arguments[11], arguments[12], {__special_glow_quality__:arguments[4], __special_glow_inner__:arguments[5], __special_glow_knockout__:arguments[6]}); } }); ASSetPropFlags(MovieClip.prototype, "glowTo", 1, 0); ASSetPropFlags(TextField.prototype, "glowTo", 1, 0); MovieClip.prototype.xyGlowTo = (TextField.prototype.xyGlowTo = function (propDest_color, propDest_alpha, propDest_blurX, propDest_blurY, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blurX, propDest_blurY, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__:quality, __special_glow_inner__:inner, __special_glow_knockout__:knockout}); }); ASSetPropFlags(MovieClip.prototype, "xyGlowTo", 1, 0); ASSetPropFlags(TextField.prototype, "xyGlowTo", 1, 0); MovieClip.prototype.xGlowTo = (TextField.prototype.xGlowTo = function (propDest_color, propDest_alpha, propDest_blur, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__:quality, __special_glow_inner__:inner, __special_glow_knockout__:knockout}); }); ASSetPropFlags(MovieClip.prototype, "xGlowTo", 1, 0); ASSetPropFlags(TextField.prototype, "xGlowTo", 1, 0); MovieClip.prototype.yGlowTo = (TextField.prototype.yGlowTo = function (propDest_color, propDest_alpha, propDest_blur, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurY__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__:quality, __special_glow_inner__:inner, __special_glow_knockout__:knockout}); }); ASSetPropFlags(MovieClip.prototype, "yGlowTo", 1, 0); ASSetPropFlags(TextField.prototype, "yGlowTo", 1, 0); MovieClip.prototype.bevelTo = (TextField.prototype.bevelTo = function () { if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) { _global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_strength__"], [arguments[0].distance, arguments[0].angle, arguments[0].highlightColor, arguments[0].highlightAlpha * 100, arguments[0].shadowColor, arguments[0].shadowAlpha * 100, arguments[0].blurX, arguments[0].blurY, arguments[0].strength], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_bevel_quality__:arguments[0].quality, __special_bevel_type__:arguments[0].type, __special_bevel_knockout__:arguments[0].knockout}); } else { _global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_strength__"], [arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[6], arguments[7]], arguments[11], arguments[12], arguments[13], arguments[14], arguments[15], arguments[16], {__special_bevel_quality__:arguments[8], __special_bevel_type__:arguments[9], __special_bevel_knockout__:arguments[10]}); } }); ASSetPropFlags(MovieClip.prototype, "bevelTo", 1, 0); ASSetPropFlags(TextField.prototype, "bevelTo", 1, 0); MovieClip.prototype.xyBevelTo = (TextField.prototype.xyBevelTo = function (propDest_distance, propDest_angle, propDest_highlightColor, propDest_highlightAlpha, propDest_shadowColor, propDest_shadowAlpha, propDest_blurX, propDest_blurY, propDest_strength, quality, type, knockout, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_blurY__", "__special_bevel_strength__"], [propDest_distance, propDest_angle, propDest_highlightColor, propDest_highlightAlpha, propDest_shadowColor, propDest_shadowAlpha, propDest_blur, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_bevel_quality__:quality, __special_bevel_type__:type, __special_bevel_knockout__:knockout}); }); ASSetPropFlags(MovieClip.prototype, "xyBevelTo", 1, 0); ASSetPropFlags(TextField.prototype, "xyBevelTo", 1, 0); _global.findPointOnCurve = function (p1x, p1y, cx, cy, p2x, p2y, t) { return({x:p1x + (t * (((2 * (1 - t)) * (cx - p1x)) + (t * (p2x - p1x)))), y:p1y + (t * (((2 * (1 - t)) * (cy - p1y)) + (t * (p2y - p1y))))}); }; ASSetPropFlags(_global, "findPointOnCurve", 1, 0); _global.findTweenColor = function (objProp, tTime) { var _local8 = objProp._propStart >> 16; var _local4 = objProp._propDest >> 16; var _local5 = (objProp._propStart >> 8) & 255; var _local6 = (objProp._propDest >> 8) & 255; var _local9 = objProp._propStart & 255; var _local7 = objProp._propDest & 255; var _local12 = Math.round(_global.findTweenValue(_local8, _local4, objProp._timeStart, tTime - (objProp._delay * 1000), objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2)); var _local10 = Math.round(_global.findTweenValue(_local5, _local6, objProp._timeStart, tTime - (objProp._delay * 1000), objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2)); var _local3 = Math.round(_global.findTweenValue(_local9, _local7, objProp._timeStart, tTime - (objProp._delay * 1000), objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2)); return(((_local12 << 16) + (_local10 << 8)) + _local3); }; _global.findTweenValue = function (_propStart, _propDest, _timeStart, _timeNow, _timeDest, _animType, _extra1, _extra2) { var _local1 = _timeNow - _timeStart; var _local4 = _propStart; var _local2 = _propDest - _propStart; var _local3 = _timeDest - _timeStart; var _local6 = _extra1; var _local7 = _extra2; var _local5 = _extra1; switch (_animType.toLowerCase()) { case "linear" : return(((_local2 * _local1) / _local3) + _local4); case "easeinquad" : _local1 = _local1 / _local3; return(((_local2 * _local1) * _local1) + _local4); case "easeoutquad" : _local1 = _local1 / _local3; return((((-_local2) * _local1) * (_local1 - 2)) + _local4); case "easeinoutquad" : _local1 = _local1 / (_local3 / 2); if (_local1 < 1) { return((((_local2 / 2) * _local1) * _local1) + _local4); } _local1--; return((((-_local2) / 2) * ((_local1 * (_local1 - 2)) - 1)) + _local4); case "easeoutinquad" : if (_local1 < (_local3 / 2)) { return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutQuad") * 0.5) + _local4); } return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInQuad") * 0.5) + (_local2 * 0.5)) + _local4); case "easeincubic" : _local1 = _local1 / _local3; return((((_local2 * _local1) * _local1) * _local1) + _local4); case "easeoutcubic" : _local1 = (_local1 / _local3) - 1; return((_local2 * (((_local1 * _local1) * _local1) + 1)) + _local4); case "easeinoutcubic" : _local1 = _local1 / (_local3 / 2); if (_local1 < 1) { return(((((_local2 / 2) * _local1) * _local1) * _local1) + _local4); } _local1 = _local1 - 2; return(((_local2 / 2) * (((_local1 * _local1) * _local1) + 2)) + _local4); case "easeoutincubic" : if (_local1 < (_local3 / 2)) { return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutCubic") * 0.5) + _local4); } return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInCubic") * 0.5) + (_local2 * 0.5)) + _local4); case "easeinquart" : _local1 = _local1 / _local3; return(((((_local2 * _local1) * _local1) * _local1) * _local1) + _local4); case "easeoutquart" : _local1 = (_local1 / _local3) - 1; return(((-_local2) * ((((_local1 * _local1) * _local1) * _local1) - 1)) + _local4); case "easeinoutquart" : _local1 = _local1 / (_local3 / 2); if (_local1 < 1) { return((((((_local2 / 2) * _local1) * _local1) * _local1) * _local1) + _local4); } _local1 = _local1 - 2; return((((-_local2) / 2) * ((((_local1 * _local1) * _local1) * _local1) - 2)) + _local4); case "easeoutinquart" : if (_local1 < (_local3 / 2)) { return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutQuart") * 0.5) + _local4); } return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInQuart") * 0.5) + (_local2 * 0.5)) + _local4); case "easeinquint" : _local1 = _local1 / _local3; return((((((_local2 * _local1) * _local1) * _local1) * _local1) * _local1) + _local4); case "easeoutquint" : _local1 = (_local1 / _local3) - 1; return((_local2 * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 1)) + _local4); case "easeinoutquint" : _local1 = _local1 / (_local3 / 2); if (_local1 < 1) { return(((((((_local2 / 2) * _local1) * _local1) * _local1) * _local1) * _local1) + _local4); } _local1 = _local1 - 2; return(((_local2 / 2) * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 2)) + _local4); case "easeoutinquint" : if (_local1 < (_local3 / 2)) { return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutQuint") * 0.5) + _local4); } return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInQuint") * 0.5) + (_local2 * 0.5)) + _local4); case "easeinsine" : return((((-_local2) * Math.cos((_local1 / _local3) * (Math.PI/2))) + _local2) + _local4); case "easeoutsine" : return((_local2 * Math.sin((_local1 / _local3) * (Math.PI/2))) + _local4); case "easeinoutsine" : return((((-_local2) / 2) * (Math.cos((Math.PI * _local1) / _local3) - 1)) + _local4); case "easeoutinsine" : if (_local1 < (_local3 / 2)) { return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutSine") * 0.5) + _local4); } return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInSine") * 0.5) + (_local2 * 0.5)) + _local4); case "easeinexpo" : return(((_local1 == 0) ? (_local4) : ((_local2 * Math.pow(2, 10 * ((_local1 / _local3) - 1))) + _local4))); case "easeoutexpo" : return(((_local1 == _local3) ? (_local4 + _local2) : ((_local2 * ((-Math.pow(2, (-10 * _local1) / _local3)) + 1)) + _local4))); case "easeinoutexpo" : if (_local1 == 0) { return(_local4); } if (_local1 == _local3) { return(_local4 + _local2); } _local1 = _local1 / (_local3 / 2); if (_local1 < 1) { return(((_local2 / 2) * Math.pow(2, 10 * (_local1 - 1))) + _local4); } _local1--; return(((_local2 / 2) * ((-Math.pow(2, -10 * _local1)) + 2)) + _local4); case "easeoutinexpo" : if (_local1 == 0) { return(_local4); } if (_local1 == _local3) { return(_local4 + _local2); } _local1 = _local1 / (_local3 / 2); if (_local1 < 1) { return(((_local2 / 2) * ((-Math.pow(2, (-10 * _local1) / 1)) + 1)) + _local4); } return(((_local2 / 2) * (Math.pow(2, (10 * (_local1 - 2)) / 1) + 1)) + _local4); case "easeincirc" : _local1 = _local1 / _local3; return(((-_local2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + _local4); case "easeoutcirc" : _local1 = (_local1 / _local3) - 1; return((_local2 * Math.sqrt(1 - (_local1 * _local1))) + _local4); case "easeinoutcirc" : _local1 = _local1 / (_local3 / 2); if (_local1 < 1) { return((((-_local2) / 2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + _local4); } _local1 = _local1 - 2; return(((_local2 / 2) * (Math.sqrt(1 - (_local1 * _local1)) + 1)) + _local4); case "easeoutincirc" : if (_local1 < (_local3 / 2)) { return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutCirc") * 0.5) + _local4); } return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInCirc") * 0.5) + (_local2 * 0.5)) + _local4); case "easeinelastic" : if (_local1 == 0) { return(_local4); } _local1 = _local1 / _local3; if (_local1 == 1) { return(_local4 + _local2); } if (!_local7) { _local7 = _local3 * 0.3; } if ((!_local6) || (_local6 < Math.abs(_local2))) { _local6 = _local2; _local5 = _local7 / 4; } else { _local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6); } _local1 = _local1 - 1; return((-((_local6 * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7))) + _local4); case "easeoutelastic" : if (_local1 == 0) { return(_local4); } _local1 = _local1 / _local3; if (_local1 == 1) { return(_local4 + _local2); } if (!_local7) { _local7 = _local3 * 0.3; } if ((!_local6) || (_local6 < Math.abs(_local2))) { _local6 = _local2; _local5 = _local7 / 4; } else { _local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6); } return((((_local6 * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7)) + _local2) + _local4); case "easeinoutelastic" : if (_local1 == 0) { return(_local4); } _local1 = _local1 / (_local3 / 2); if (_local1 == 2) { return(_local4 + _local2); } if (!_local7) { _local7 = _local3 * 0.45; } if ((!_local6) || (_local6 < Math.abs(_local2))) { _local6 = _local2; _local5 = _local7 / 4; } else { _local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6); } if (_local1 < 1) { _local1 = _local1 - 1; return((-0.5 * ((_local6 * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7))) + _local4); } _local1 = _local1 - 1; return(((((_local6 * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7)) * 0.5) + _local2) + _local4); case "easeoutinelastic" : if (_local1 < (_local3 / 2)) { return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutElastic") * 0.5) + _local4); } return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInElastic") * 0.5) + (_local2 * 0.5)) + _local4); case "easeinback" : if (_local5 == undefined) { _local5 = 1.70158; } _local1 = _local1 / _local3; return((((_local2 * _local1) * _local1) * (((_local5 + 1) * _local1) - _local5)) + _local4); case "easeoutback" : if (_local5 == undefined) { _local5 = 1.70158; } _local1 = (_local1 / _local3) - 1; return((_local2 * (((_local1 * _local1) * (((_local5 + 1) * _local1) + _local5)) + 1)) + _local4); case "easeinoutback" : if (_local5 == undefined) { _local5 = 1.70158; } _local1 = _local1 / (_local3 / 2); if (_local1 < 1) { _local5 = _local5 * 1.525; return(((_local2 / 2) * ((_local1 * _local1) * (((_local5 + 1) * _local1) - _local5))) + _local4); } _local1 = _local1 - 2; _local5 = _local5 * 1.525; return(((_local2 / 2) * (((_local1 * _local1) * (((_local5 + 1) * _local1) + _local5)) + 2)) + _local4); case "easeoutinback" : if (_local1 < (_local3 / 2)) { return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutBack") * 0.5) + _local4); } return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInBack") * 0.5) + (_local2 * 0.5)) + _local4); case "easeinbounce" : return((_local2 - findTweenValue(0, _local2, 0, _local3 - _local1, _local3, "easeOutBounce")) + _local4); case "easeoutbounce" : _local1 = _local1 / _local3; if (_local1 < 0.363636363636364) { return((_local2 * ((7.5625 * _local1) * _local1)) + _local4); } if (_local1 < 0.727272727272727) { _local1 = _local1 - 0.545454545454545; return((_local2 * (((7.5625 * _local1) * _local1) + 0.75)) + _local4); } if (_local1 < 0.909090909090909) { _local1 = _local1 - 0.818181818181818; return((_local2 * (((7.5625 * _local1) * _local1) + 0.9375)) + _local4); } _local1 = _local1 - 0.954545454545455; return((_local2 * (((7.5625 * _local1) * _local1) + 0.984375)) + _local4); case "easeinoutbounce" : if (_local1 < (_local3 / 2)) { return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeInBounce") * 0.5) + _local4); } return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeOutBounce") * 0.5) + (_local2 * 0.5)) + _local4); case "easeoutinbounce" : if (_local1 < (_local3 / 2)) { return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutBounce") * 0.5) + _local4); } return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInBounce") * 0.5) + (_local2 * 0.5)) + _local4); } trace(("MC TWEEN ### Error on transition: there's no \"" + _animType) + "\" animation type."); return(0); }; ASSetPropFlags(_global, "findTweenValue", 1, 0); _global.showWord = function (theWord, animationType, theX, theY, theTime, theClip, removeWhenFinished, frameToGoto, wordColour) { var letterWidth = 30; if (theClip == undefined) { theClip = _root; } if (theX == undefined) { theX = Stage.width / 2; } if (theY == undefined) { theY = Stage.height / 2; } if (removeWhenFinished == undefined) { removeWhenFinished = true; } if (animationType == undefined) { animationType = "slide down"; } if (theTime == undefined) { theTime = 1; } if (frameToGoto == undefined) { frameToGoto = 1; } if (wordColour == undefined) { wordColour = "0xFFFFFF"; } tname = "wordHolder" + Math.floor(Math.random() * 100); tempHolder = theClip.createEmptyMovieClip(tname, theClip.getNextHighestDepth()); i = 0; while (i < theWord.length) { t = tempHolder.attachMovie("showWordLetter", "l" + i, i); i++; } xOffset = theX - ((theWord.length * letterWidth) / 2); timeDelay = 0; timeIncrease = theTime / theWord.length; theFrame = Math.floor(Math.random() * 6) + 1; i = 0; while (i < theWord.length) { t = eval ("tempHolder.l" + i); t.textBox.text = theWord.charAt(i); theXpos = (xOffset + (i * letterWidth)) + letterWidth; t.gotoAndStop(frameToGoto); t.colorTo(wordColour); switch (animationType) { case "slide random smooth" : t._x = Math.random() * Stage.width; t._y = Math.random() * Stage.height; t._alpha = 0; t.slideTo(theXpos, theY, theTime, "", timeDelay); t.alphaTo(100, theTime / 2, "", timeDelay); break; case "slide random bounce" : t._x = Math.random() * Stage.width; t._y = Math.random() * Stage.height; t._alpha = 0; t.slideTo(theXpos, theY, theTime, "easeOutElastic", timeDelay); t.alphaTo(100, theTime / 2, "", timeDelay); break; case "slide zoom 3" : t._x = Stage.width / 2; t._y = theY; t._alpha = 0; t.slideTo(theXpos, theY, theTime, "easeOutCirc", timeDelay); t.alphaTo(100, theTime, "", timeDelay + 0.2); t._yscale = (t._xscale = 10); t.scaleTo(100, theTime); break; case "slide zoom 1" : t._x = Stage.width / 2; t._y = theY; t._alpha = 0; t.slideTo(theXpos, theY, theTime); t.alphaTo(100, theTime / 2); t._yscale = (t._xscale = 10); t.scaleTo(100, theTime); break; case "slide zoom 2" : t._x = (theX - (theWord.length * letterWidth)) + ((i * letterWidth) * 2); t._y = theY; t._alpha = 0; t._yscale = 500; t._xscale = 500; t.slideTo(theXpos, theY, theTime); t.alphaTo(100, theTime / 2); t.scaleTo(100, theTime); break; case "scale 1" : t._x = theXpos; t._y = theY; t._alpha = 0; t.alphaTo(100, theTime, "", timeDelay); t._yscale = 1500; t._xscale = 5; t.scaleTo(100, theTime, "", timeDelay); break; case "scale 2" : t._x = xOffset + (i * letterWidth); t._y = theY; t._alpha = 0; t.alphaTo(100, theTime, "", timeDelay); t._yscale = 10; t._xscale = 500; t.scaleTo(100, theTime, "", timeDelay); break; case "scale 3" : t._x = xOffset + (i * letterWidth); t._y = theY; t._alpha = 0; t.alphaTo(100, theTime, "", timeDelay); t._yscale = Math.random() * 500; t._xscale = Math.random() * 500; t.scaleTo(100, theTime, "", timeDelay); break; case "scale 4" : t._x = theXpos; t._y = theY; t._alpha = 0; t.alphaTo(100, theTime, "", timeDelay); t._yscale = 1500; t._xscale = 5; t.scaleTo(100, theTime, "easeOutBounce", timeDelay); break; case "scale 5" : t._x = theXpos; t._y = theY; t._alpha = 0; t.alphaTo(100, theTime, "", timeDelay); t._yscale = 1500; t._xscale = 5; t.scaleTo(100, theTime, "easeOutElastic", timeDelay); break; case "scale 6" : t._x = theXpos; t._y = theY; t._alpha = 0; t.alphaTo(100, theTime, "", timeDelay); t._yscale = 1500; t._xscale = 1500; t.scaleTo(100, theTime, "easeOutBounce", timeDelay); break; case "scale up" : t._x = xOffset + (i * letterWidth); t._y = theY; t._alpha = 0; t.alphaTo(100, theTime, "", timeDelay); t._yscale = (t._xscale = 10); t.scaleTo(100, theTime, "", timeDelay); break; case "slide random" : t._x = Math.random() * Stage.width; t._y = Math.random() * Stage.height; t._alpha = 0; t.slideTo(xOffset + (i * letterWidth), theY, theTime); t.alphaTo(100, theTime / 2); break; case "scale down rotate" : t._x = xOffset + (i * letterWidth); t._y = theY; t._alpha = 0; t.alphaTo(100, theTime, "", timeDelay); t._yscale = (t._xscale = 500); t.scaleTo(100, theTime, "", timeDelay); t._rotation = 180; t.rotateTo(0, theTime, "", timeDelay); break; case "slide down" : t = eval ("tempHolder.l" + i); t._x = xOffset + (i * letterWidth); t._y = -20; t.ySlideTo(theY, theTime, undefined, timeDelay); t.textBox.text = theWord.charAt(i); break; case "scale down" : t._x = xOffset + (i * letterWidth); t._y = theY; t._alpha = 0; t.alphaTo(100, theTime, "", timeDelay); t._yscale = (t._xscale = 500); t.scaleTo(100, theTime, "", timeDelay); break; case "scale up" : t = eval ("tempHolder.l" + i); t._x = xOffset + (i * letterWidth); t._y = theY; t._alpha = 0; t.alphaTo(100, theTime, "", timeDelay); t._yscale = (t._xscale = 500); t.scaleTo(100, theTime, "", timeDelay); t.textBox.text = theWord.charAt(i); break; case "slide down bounce" : t = eval ("tempHolder.l" + i); t._x = xOffset + (i * letterWidth); t._y = -20; t.ySlideTo(theY, theTime, "easeOutBounce", timeDelay); t.textBox.text = theWord.charAt(i); break; case "slide down elastic" : t = eval ("tempHolder.l" + i); t._x = xOffset + (i * letterWidth); t._y = -20; t.ySlideTo(theY, theTime, "easeOutElastic", timeDelay); t.textBox.text = theWord.charAt(i); break; case "slide down back" : t = eval ("tempHolder.l" + i); t._x = xOffset + (i * letterWidth); t._y = -20; t.ySlideTo(theY, theTime, "easeOutBack", timeDelay); t.textBox.text = theWord.charAt(i); } trace(t); t.ySlideTo(520, 1, "easeInExpo", 2, function () { removeMovieClip(this); }); timeDelay = timeDelay + timeIncrease; i++; } };
Frame 3
gameLoadingName = "escape"; loadingClip.onEnterFrame = function () { pL = Math.floor((this._parent.getBytesLoaded() / this._parent.getBytesTotal()) * 100); if (pL < 100) { this.mask._xscale = (pL / 100) * 100; this._parent.stop(); } else { i = 0; while (i < stringLength) { removeMovieClip(eval ("loadingHolder.l" + i)); i++; } this._parent.play(); } }; stringLength = gameLoadingName.length; wordOffset = (stringLength * 20) / 2; this.createEmptyMovieClip("loadingHolder", 1); loadingHolder._x = (320 - wordOffset) + 10; loadingHolder._y = 160; i = 0; while (i < stringLength) { t = loadingHolder.attachMovie("letter", "l" + i, i); t._x = i * 20; t.angle = i; t.Lvar.text = gameLoadingName.charAt(i); t._xscale = (t._yscale = 200); i++; } stop();
Frame 6
function addUpScore() { score = 0; tempString = new String(); i = 0; while (i < playerScoreArray.length) { a = playerScoreArray[i]; if (a > -1) { score = score + Number(a); tempString = tempString + (a + ","); } i++; } storage.data.playerScore = tempString; storage.flush(); trace("score = " + score); trace("tempString = " + tempString); scoreTextBox.text = score; } function playSound(temp) { switch (temp) { case "points" : pointsSnd.start(); return; case "explode" : a = random(2) + 1; eval (("explode" + a) + "Snd").start(); return; case "energy" : energySnd.start(); return; case "jump" : jumpSnd.start(); return; case "mouseOver" : mouseOverSnd.start(); return; case "mouseDown" : mouseDownSnd.start(); } } function attachSoundFromLibrary(idname) { var _local2 = new Sound(this); _local2.attachSound(idname); return(_local2); } storage = SharedObject.getLocal(gameName + "2storage"); yourhigh = storage.data.myhighscore; if (yourhigh == undefined) { storage.data.myhighscore = 0; yourhigh = 0; } level = storage.data.uptolevel; levelsUnlocked = storage.data.levelsUnlocked; if (level == undefined) { storage.data.uptolevel = 1; level = 1; } if (levelsUnlocked == undefined) { storage.data.levelsUnlocked = 1; levelsUnlocked = 1; } amountOfLevels = levelsUnlocked; playerScore = storage.data.playerScore; if (playerScore == undefined) { playerScore = (storage.data.playerScore = "0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0"); } storage.flush(); tempPlayerScoreArray = playerScore.split(","); playerScoreArray = new Array(); i = 0; while (i < tempPlayerScoreArray.length) { playerScoreArray[i] = Number(tempPlayerScoreArray[i]); trace(playerScoreArray[i]); i++; } score = 0; addUpScore(); _global.yourhigh = score; trace("your high = " + yourhigh); trace("trace(storage.data.levelsUnlocked) = " + storage.data.levelsUnlocked); mouseOverSnd = attachSoundFromLibrary("mouseOver.wav"); mouseDownSnd = attachSoundFromLibrary("mouseDownSnd.wav"); explode1Snd = attachSoundFromLibrary("explode1Snd.wav"); explode2Snd = attachSoundFromLibrary("explode2Snd.wav"); explode3Snd = attachSoundFromLibrary("explode3Snd.wav"); pointsSnd = attachSoundFromLibrary("pointsSnd.wav"); energySnd = attachSoundFromLibrary("energySnd.wav"); jumpSnd = attachSoundFromLibrary("jumpSnd.wav");
Frame 7
_quality = "HIGH"; this.playBtn.onRelease = function () { gotoAndPlay (11); playSound("mouseDown"); }; this.playBtn.onRollOver = function () { playSound("mouseOver"); }; this.reset_btn.onRelease = function () { playSound("mouseDown"); _root.yourhigh = 0; trace(yourhigh); resetclip.gotoAndPlay(2); storage.data.myhighscore = 0; storage.flush(); }; this.reset_btn.onRollOver = function () { playSound("mouseOver"); }; yourHighTextBox.text = yourhigh; trace(yourhigh); if (yourhigh == 0) { trace("hide the buttons"); this.yourHighTextBox._visible = false; this.yourH._visible = false; this.reset_btn._visible = false; } helpBtn.onRollOver = function () { howToPlayClip.ySlideTo(174, 1); }; helpBtn.onRollOut = function () { howToPlayClip.ySlideTo(0, 1); }; this.levelsUnlockedDisplayClip._x = -100; this.levelsUnlockedDisplayClip.levelUnlockedTextBox.text = levelsUnlocked; trace("levels unlocked = " + levelsUnlocked); if (levelsUnlocked > 1) { this.levelsUnlockedDisplayClip.xSlideTo(12, 1, "", 1); this.highScoreClip.xSlideTo(12, 1, "", 1); } addUpScore(); this.highScoreClip.scoreTextBox.text = score; this.highScoreClip._x = -200; mouseIcon._y = 550; mouseIcon.ySlideTo(395, 1);
Frame 10
stop();
Frame 11
if (false) { }
Frame 12
function goPlay(temp) { i = 0; while (i < 51) { removeMovieClip(eval ("l" + i)); i++; } trace(temp); level = temp; musicTrack.stop(); gotoAndPlay (20); } if (levelsUnlocked == 1) { level = 1; gotoAndPlay (20); } else { i = 0; while (i < 20) { ty = Math.floor(i / 10); tx = i - (ty * 10); t = attachMovie("lvlBtn", "l" + i, i); eval ("l" + i)._x = 140 + (tx * 43); eval ("l" + i)._y = 230 + (ty * 35); eval ("l" + i).num = i + 1; if (i >= levelsUnlocked) { eval ("l" + i).gotoAndStop(2); } else { t.unlockedMarker._xscale = (t.unlockedMarker._yscale = 1); t.unlockedMarker._rotation = -90; t.unlockedMarker.rotateTo(0, 1, "", i / 10); t.unlockedMarker.scaleTo(100, 1, "", i / 10); eval ("l" + i).gotoAndStop(1); eval ("l" + i).btn.onRelease = function () { trace(this._parent._parent); this._parent._parent.goPlay(this._parent.num); }; eval ("l" + i).btn.onRollOver = function () { mOverSnd.start(); }; eval ("l" + i).btn.onPress = function () { mDownSnd.start(); }; } if (i != (level - 1)) { eval ("l" + i).ind._visible = false; } i++; } } startmainmenu.onRelease = function () { i = 0; while (i < 51) { removeMovieClip(eval ("l" + i)); i++; } gotoAndPlay (30); }; startmainmenu.onRollOver = function () { mOverSnd.start(); }; startmainmenu.onPress = function () { mDownSnd.start(); }; if (levelsUnlocked > 19) { levelTexBox.text = "ALL"; } else { levelTexBox.text = levelsUnlocked; } trace("levelsUnlocked = " + levelsUnlocked);
Frame 19
stop();
Frame 20
function launchFireWorks(cx, cy, fxtype) { sndR = random(3) + 1; if (sndR == 1) { fireWorkSnd1.start(); } if (sndR == 2) { fireWorkSnd2.start(); } if (sndR == 3) { fireWorkSnd3.start(); } fxAm = random(50) + 50; rotDiv = 360 / fxAm; fxNum = this.fireWorksClip.getNextHighestDepth(); this.fireWorksClip.createEmptyMovieClip("fxholder" + fxNum, fxNum); i = 0; while (i < fxAm) { eval ("fireWorksClip.fxholder" + fxNum).attachMovie("fireWorksParticle", "fx" + i, i + (100 * fxNum)); eval ((("fireWorksClip.fxholder" + fxNum) + ".fx") + i)._x = cx; eval ((("fireWorksClip.fxholder" + fxNum) + ".fx") + i)._y = cy; eval ((("fireWorksClip.fxholder" + fxNum) + ".fx") + i).gotoAndStop(fxtype); eval ((("fireWorksClip.fxholder" + fxNum) + ".fx") + i).rot = i * rotDiv; eval ((("fireWorksClip.fxholder" + fxNum) + ".fx") + i).fxtype = fxtype; i++; } } function changeThemeColour(tempColour) { if (tempColour == 0) { gridHolder.colorTransformTo(200, undefined, 0, undefined, 0, undefined, undefined, undefined, 0.6, "linear"); } if (tempColour == 1) { gridHolder.colorTransformTo(0, undefined, 200, undefined, undefined, undefined, undefined, undefined, 0.6, "linear"); } if (tempColour == 2) { gridHolder.colorTransformTo(0, undefined, 0, undefined, 200, undefined, undefined, undefined, 0.6, "linear"); } if (tempColour == 3) { gridHolder.colorTransformTo(255, undefined, 112, undefined, -255, undefined, undefined, undefined, 0.6, "linear"); } if (tempColour == 4) { gridHolder.colorTransformTo(255, undefined, 128, undefined, 255, undefined, undefined, undefined, 0.6, "linear"); } if (tempColour == 5) { gridHolder.colorTransformTo(128, undefined, 128, undefined, -255, undefined, undefined, undefined, 0.6, "linear"); } } function testIndiviualBlock(tx, ty) { objectsCurrentX = findTheXLocation(tx + 5); objectsCurrentY = findTheYLocation(ty + 5); objectsCurrent2X = findTheXLocation(tx + 40); objectsCurrent2Y = findTheYLocation(ty + 40); if (Math.abs(xMove) > 0) { if (xMove < 0) { if (xMove < -20) { xMove = -20; } testXDir = xMove; testX = findTheXLocation(tx + testXDir); objectInTestLocation = levelData[objectsCurrentY][testX][0]; objectInTest2Location = levelData[objectsCurrent2Y][testX][0]; } if (xMove > 0) { if (xMove > 20) { xMove = 20; } testXDir = xMove; testX = findTheXLocation(tx + 50); objectInTestLocation = levelData[objectsCurrentY][testX][0]; objectInTest2Location = levelData[objectsCurrent2Y][testX][0]; } if ((objectInTestLocation == 0) && (objectInTest2Location == 0)) { moveTheX = true; } else { dontMoveX = true; moveTheX = false; } } if (Math.abs(yMove) > 0) { if (yMove < 0) { if (yMove < -20) { yMove = -20; } testYDir = yMove; testY = findTheYLocation(ty + testYDir); objectInTestLocation = levelData[testY][objectsCurrentX][0]; objectInTest2Location = levelData[testY][objectsCurrent2X][0]; } if (yMove > 0) { if (yMove > 20) { yMove = 20; } testYDir = yMove; testY = findTheYLocation(ty + 50); objectInTestLocation = levelData[testY][objectsCurrentX][0]; objectInTest2Location = levelData[testY][objectsCurrent2X][0]; } if ((objectInTestLocation == 0) && (objectInTest2Location == 0)) { moveTheY = true; } else { dontMoveY = true; moveTheY = false; } } } function testBlocksMove() { moveTheX = false; moveTheY = false; xMove = (_xmouse - testClip._x) + theObjectsX; yMove = (_ymouse - testClip._y) + theObjectsY; typeOfBlock = testClip.typeOfBlock; dontMoveX = false; dontMoveY = false; theTempArray = eval (("block" + typeOfBlock) + "Type"); m = 0; while (m < theTempArray.length) { testIndiviualBlock(testClip._x + (theTempArray[m] * 50), testClip._y + (theTempArray[m + 1] * 50)); if (!moveTheX) { dontMoveX = true; } if (!moveTheY) { dontMoveY = true; } m = m + 2; } if (!dontMoveX) { if (moveTheX) { testClip._x = testClip._x + testXDir; } } if (!dontMoveY) { if (moveTheY) { testClip._y = testClip._y + testYDir; } } } function findBlockUserIsClicking() { i = 0; while (i < blockNameArray.length) { testClip = blockNameArray[i]; if (testClip.hitTest(_xmouse, _ymouse, true)) { gameState = "user is dragging"; draggingBlock = testClip; theObjectsX = testClip._x - _xmouse; theObjectsY = testClip._y - _ymouse; testX = findTheXLocation(testClip._x); testY = findTheYLocation(testClip._y); theBlockType = testClip.typeOfBlock; theTempArray = eval (("block" + theBlockType) + "Type"); trace("you have picked up block type " + theBlockType); l = 0; while (l < theTempArray.length) { levelData[testY + theTempArray[l + 1]][testX + theTempArray[l]][0] = 0; levelData[testY + theTempArray[l]][testX + theTempArray[l + 1]][1] = undefined; l = l + 2; } lastX = testClip._x; lastY = testClip._y; gameState = "user is dragging"; return(undefined); } i++; } gameState = "wait for users click"; return(undefined); } function findTheXLocation(tempN) { return(Math.floor((tempN - gridXOffset) / 50)); } function findTheYLocation(tempN) { return(Math.floor((tempN - gridYOffset) / 50)); } function setup() { addUpScore(); } function setupLevel() { levelTextBox.text = level; blockList = new Array(); switch (level) { case 1 : gridWidth = 4; gridHeight = 4; blockList.push(1, 0, 0); blockList.push(1, 3, 0); blockList.push(1, 0, 3); blockList.push(1, 3, 3); blockList.push(1, 2, 1); blockList.push(1, 2, 2); blockList.push(3, 1, 0); blockList.push(3, 1, 3); blockList.push(4, 0, 1); solvedX = 2; solvedY = 1; break; case 2 : gridWidth = 6; gridHeight = 5; solvedX = 4; solvedY = 2; blockList.push(4, 0, 0); blockList.push(17, 1, 2); blockList.push(2, 3, 1); blockList.push(3, 4, 1); blockList.push(1, 2, 4); blockList.push(1, 4, 4); blockList.push(2, 5, 2); blockList.push(11, 3, 3); break; case 3 : gridWidth = 5; gridHeight = 4; blockList.push(1, 0, 0); blockList.push(3, 1, 0); blockList.push(3, 3, 0); blockList.push(4, 0, 1); blockList.push(1, 2, 1); blockList.push(1, 2, 2); blockList.push(2, 3, 1); blockList.push(1, 0, 3); blockList.push(3, 1, 3); blockList.push(3, 3, 3); solvedX = 3; solvedY = 1; break; case 4 : gridWidth = 4; gridHeight = 4; blockList.push(4, 0, 0); blockList.push(1, 2, 0); blockList.push(1, 3, 0); blockList.push(1, 0, 2); blockList.push(1, 3, 1); blockList.push(3, 2, 3); blockList.push(6, 1, 1); solvedX = 2; solvedY = 1; break; case 5 : gridWidth = 5; gridHeight = 4; solvedX = 3; solvedY = 1; blockList.push(3, 0, 0); blockList.push(2, 2, 0); blockList.push(4, 0, 1); blockList.push(3, 1, 3); blockList.push(1, 3, 3); blockList.push(7, 2, 2); break; case 6 : gridWidth = 6; gridHeight = 4; solvedX = 4; solvedY = 1; blockList.push(1, 0, 0); blockList.push(1, 0, 3); blockList.push(4, 0, 1); blockList.push(8, 2, 0); blockList.push(8, 2, 2); blockList.push(2, 5, 1); break; case 7 : gridWidth = 6; gridHeight = 4; solvedX = 4; solvedY = 1; blockList.push(4, 0, 1); blockList.push(9, 2, 0); blockList.push(10, 2, 2); blockList.push(1, 4, 0); blockList.push(1, 5, 0); blockList.push(1, 4, 3); blockList.push(1, 5, 3); break; case 8 : gridWidth = 6; gridHeight = 5; solvedX = 4; solvedY = 2; blockList.push(4, 0, 0); blockList.push(6, 1, 1); blockList.push(6, 2, 2); blockList.push(6, 3, 3); blockList.push(5, 0, 2); blockList.push(5, 3, 0); break; case 9 : gridWidth = 6; gridHeight = 5; solvedX = 4; solvedY = 2; blockList.push(4, 0, 1); blockList.push(1, 1, 0); blockList.push(11, 2, 0); blockList.push(12, 4, 0); blockList.push(5, 2, 3); blockList.push(6, 4, 3); blockList.push(1, 1, 3); blockList.push(3, 2, 2); blockList.push(3, 4, 2); break; case 10 : gridWidth = 5; gridHeight = 4; solvedX = 3; solvedY = 1; blockList.push(4, 0, 0); blockList.push(3, 2, 1); blockList.push(12, 3, 0); blockList.push(5, 1, 2); blockList.push(1, 2, 2); blockList.push(2, 3, 2); break; case 11 : gridWidth = 6; gridHeight = 5; solvedX = 4; solvedY = 2; blockList.push(4, 0, 0); blockList.push(10, 3, 0); blockList.push(6, 1, 1); blockList.push(5, 3, 1); blockList.push(9, 0, 3); blockList.push(12, 2, 3); break; case 12 : gridWidth = 6; gridHeight = 5; solvedX = 4; solvedY = 2; blockList.push(4, 0, 1); blockList.push(1, 0, 0); blockList.push(1, 0, 3); blockList.push(3, 1, 0); blockList.push(3, 1, 3); blockList.push(8, 3, 0); blockList.push(1, 5, 2); blockList.push(13, 3, 3); blockList.push(14, 3, 1); break; case 13 : gridWidth = 6; gridHeight = 5; solvedX = 4; solvedY = 2; blockList.push(4, 1, 1); blockList.push(3, 1, 0); blockList.push(2, 0, 1); blockList.push(15, 3, 0); blockList.push(15, 2, 2); blockList.push(3, 1, 4); break; case 14 : gridWidth = 6; gridHeight = 5; solvedX = 4; solvedY = 2; blockList.push(4, 0, 1); blockList.push(3, 1, 0); blockList.push(12, 4, 0); blockList.push(10, 2, 1); blockList.push(1, 1, 3); blockList.push(5, 2, 3); blockList.push(3, 4, 4); blockList.push(9, 3, 2); break; case 15 : gridWidth = 6; gridHeight = 5; solvedX = 4; solvedY = 2; blockList.push(4, 0, 0); blockList.push(3, 0, 3); blockList.push(3, 0, 4); blockList.push(15, 2, 1); blockList.push(2, 4, 0); blockList.push(14, 5, 0); blockList.push(2, 4, 3); blockList.push(2, 5, 3); break; case 16 : gridWidth = 6; gridHeight = 5; solvedX = 4; solvedY = 2; blockList.push(4, 0, 1); blockList.push(11, 2, 0); blockList.push(3, 4, 0); blockList.push(5, 2, 3); blockList.push(3, 4, 4); blockList.push(16, 2, 1); blockList.push(16, 4, 1); break; case 17 : gridWidth = 6; gridHeight = 5; solvedX = 4; solvedY = 2; blockList.push(4, 0, 1); blockList.push(8, 1, 0); blockList.push(1, 3, 0); blockList.push(3, 4, 0); blockList.push(17, 3, 1); blockList.push(16, 1, 2); blockList.push(1, 1, 4); break; case 18 : gridWidth = 6; gridHeight = 5; solvedX = 4; solvedY = 2; blockList.push(4, 0, 0); blockList.push(3, 2, 0); blockList.push(17, 4, 0); blockList.push(17, 1, 2); blockList.push(14, 3, 1); blockList.push(1, 4, 3); blockList.push(3, 3, 4); break; case 19 : gridWidth = 6; gridHeight = 5; solvedX = 4; solvedY = 2; blockList.push(4, 0, 1); blockList.push(1, 0, 0); blockList.push(3, 0, 3); blockList.push(11, 2, 0); blockList.push(2, 5, 0); blockList.push(15, 3, 1); blockList.push(5, 2, 3); blockList.push(2, 5, 3); break; case 20 : gridWidth = 4; gridHeight = 4; blockList.push(4, 0, 0); blockList.push(2, 2, 0); blockList.push(1, 3, 0); blockList.push(1, 0, 2); blockList.push(1, 1, 2); blockList.push(1, 2, 2); blockList.push(3, 0, 3); blockList.push(1, 2, 3); blockList.push(1, 3, 3); solvedX = 2; solvedY = 1; } gridXOffset = (640 - (gridWidth * 50)) / 2; gridYOffset = (480 - (gridHeight * 50)) / 2; gridXOffset = gridXOffset - 50; t = gridHolder.attachMovie("solvedPosition", "solvedPosition", 1000); t._x = (solvedX * 50) + gridXOffset; t._y = (solvedY * 50) + gridYOffset; moves = 0; movesTextBox.text = moves; arrayNum = 0; levelData = new Array(); i = 0; while (i < 100) { removeMovieClip(eval ("gridHolder.g" + i)); removeMovieClip(eval ("blockHolder.block" + i)); i++; } i = 0; while (i < gridHeight) { levelData[i] = new Array(); j = 0; while (j < gridWidth) { t = gridHolder.attachMovie("grid", "g" + arrayNum, arrayNum + 1500); t._x = (j * 50) + gridXOffset; t._y = (i * 50) + gridYOffset; theData = newLevelData[arrayNum]; levelData[i][j] = new Array(); levelData[i][j][0] = 0; arrayNum++; j++; } i++; } block1Type = new Array(0, 0); block2Type = new Array(0, 0, 0, 1); block3Type = new Array(0, 0, 1, 0); block4Type = new Array(0, 0, 1, 0, 0, 1, 1, 1); block5Type = new Array(0, 0, 0, 1, 1, 1); block6Type = new Array(1, 0, 0, 1, 1, 1); block7Type = new Array(0, 0, 1, 0, 2, 0); block8Type = new Array(0, 0, 1, 0, 1, 1, 2, 1); block9Type = new Array(0, 1, 1, 0, 2, 1, 1, 1); block10Type = new Array(0, 0, 1, 0, 2, 0, 1, 1); block11Type = new Array(0, 0, 1, 0, 0, 1); block12Type = new Array(0, 0, 1, 0, 1, 1); block13Type = new Array(1, 0, 2, 0, 0, 1, 1, 1); block14Type = new Array(0, 0, 0, 1, 0, 2); block15Type = new Array(1, 0, 0, 1, 1, 1, 2, 1, 1, 2); block16Type = new Array(1, 0, 0, 1, 1, 1, 1, 2); block17Type = new Array(1, 0, 0, 1, 1, 1, 0, 2); blockNumber = 1; blockNameArray = new Array(); k = 0; while (k < blockList.length) { typeOfBlock = blockList[k]; blockx = blockList[k + 1]; blocky = blockList[k + 2]; t = blockHolder.attachMovie("block", "block" + blockNumber, blockNumber); t.top = 40; t.left = 40; t.typeOfBlock = typeOfBlock; t.gotoAndStop(typeOfBlock); t.x = blockx * 50; t._x = (blockx * 50) + gridXOffset; t.y = blocky * 50; t._y = (blocky * 50) + gridYOffset; trace(t._y); blockNumber++; blockNameArray.push(t); theTempArray = eval (("block" + typeOfBlock) + "Type"); trace((("block number " + (k / 3)) + " is type ") + typeOfBlock); l = 0; while (l < theTempArray.length) { levelData[blocky + theTempArray[l + 1]][blockx + theTempArray[l]][0] = 1; levelData[blocky + theTempArray[l]][blockx + theTempArray[l + 1]][1] = t; l = l + 2; } k = k + 3; } trace("blockNameArray = " + blockNameArray); gameState = "wait for users click"; } progressSaved._alpha = 0; c = 10; this.createEmptyMovieClip("fireWorksClip", this.getNextHighestDepth()); _global.$createTweenController = function () { var _local3 = _root.createEmptyMovieClip("__tweenController__", 123432); _local3.$_tweenPropList = new Array(); _local3.$_tTime = getTimer(); _local3.onEnterFrame = _global.$updateTweens; }; ASSetPropFlags(_global, "$createTweenController", 1, 0); _global.$removeTweenController = function () { delete _root.__tweenController__.$_tweenPropList; delete _root.__tweenController__.$_tTime; delete _root.__tweenController__.onEnterFrame; _root.__tweenController__.removeMovieClip(); }; ASSetPropFlags(_global, "$removeTweenController", 1, 0); _global.$addTween = function (mtarget, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2, extras) { if (timeSeconds == undefined) { timeSeconds = 0; } if ((animType == undefined) || (animType == "")) { animType = "easeOutExpo"; } if (delay == undefined) { delay = 0; } if (typeof(prop) == "string") { var _local7 = [prop]; var _local11 = [mtarget[prop]]; var _local9 = [propDest]; } else { var _local7 = []; var _local11 = []; var _local9 = []; for (var _local32 in prop) { _local11.push(mtarget[prop[_local32]]); } for (var _local32 in prop) { _local7.push(prop[_local32]); } for (var _local32 in propDest) { _local9.push(propDest[_local32]); } } var _local12 = false; if (_root.__tweenController__ == undefined) { _global.$createTweenController(); } var _local4 = _root.__tweenController__.$_tweenPropList; var _local8 = _root.__tweenController__.$_tTime; for (var _local32 in _local11) { if ((_local9[_local32] != undefined) && (!mtarget.$_isTweenLocked)) { if (mtarget.$_tweenCount > 0) { var _local3 = 0; while (_local3 < _local4.length) { if ((_local4[_local3]._targ == mtarget) && (_local4[_local3]._prop == _local7[_local32])) { if ((_local8 + (delay * 1000)) < _local4[_local3]._timeDest) { _local4.splice(_local3, 1); _local3--; mtarget.$_tweenCount--; } } _local3++; } } _local4.push({_prop:_local7[_local32], _targ:mtarget, _propStart:undefined, _propDest:_local9[_local32], _timeStart:_local8, _timeDest:_local8 + (timeSeconds * 1000), _animType:animType, _extra1:extra1, _extra2:extra2, _extras:extras, _delay:delay, _isPaused:false, _timePaused:0, _callback:(_local12 ? undefined : (callback))}); mtarget.$_tweenCount = ((mtarget.$_tweenCount > 0) ? (mtarget.$_tweenCount + 1) : 1); _local12 = true; } } ASSetPropFlags(mtarget, "$_tweenCount", 1, 0); }; ASSetPropFlags(_global, "$addTween", 1, 0); _global.$updateTweens = function () { var _local8 = (this.$_tTime = getTimer()); var _local6 = 0; while (_local6 < this.$_tweenPropList.length) { var _local3 = this.$_tweenPropList[_local6]; if (_local3._targ.toString() == undefined) { this.$_tweenPropList.splice(_local6, 1); _local6--; } else if (((_local3._timeStart + (_local3._delay * 1000)) <= _local8) && (!_local3._isPaused)) { if (_local3._propStart == undefined) { if (_local3._prop.substr(0, 10) == "__special_") { if (_local3._prop == "__special_mc_frame__") { _local3._propStart = _local3._targ._currentframe; } else if (_local3._prop == "__special_mc_ra__") { _local3._propStart = new Color(_local3._targ).getTransform().ra; } else if (_local3._prop == "__special_mc_rb__") { _local3._propStart = new Color(_local3._targ).getTransform().rb; } else if (_local3._prop == "__special_mc_ga__") { _local3._propStart = new Color(_local3._targ).getTransform().ga; } else if (_local3._prop == "__special_mc_gb__") { _local3._propStart = new Color(_local3._targ).getTransform().gb; } else if (_local3._prop == "__special_mc_ba__") { _local3._propStart = new Color(_local3._targ).getTransform().ba; } else if (_local3._prop == "__special_mc_bb__") { _local3._propStart = new Color(_local3._targ).getTransform().bb; } else if (_local3._prop == "__special_mc_aa__") { _local3._propStart = new Color(_local3._targ).getTransform().aa; } else if (_local3._prop == "__special_mc_ab__") { _local3._propStart = new Color(_local3._targ).getTransform().ab; } else if (_local3._prop == "__special_text_r__") { _local3._propStart = _local3._targ.textColor >> 16; } else if (_local3._prop == "__special_text_g__") { _local3._propStart = (_local3._targ.textColor & 65280) >> 8; } else if (_local3._prop == "__special_text_b__") { _local3._propStart = _local3._targ.textColor & 255; } else if (_local3._prop == "__special_sound_volume__") { _local3._propStart = _local3._targ.getVolume(); } else if (_local3._prop == "__special_sound_pan__") { _local3._propStart = _local3._targ.getPan(); } else if (_local3._prop == "__special_bst_t__") { _local3._propStart = 0; _local3._extras.__special_bst_ix__ = _local3._targ._x; _local3._extras.__special_bst_iy__ = _local3._targ._y; } else if (_local3._prop == "__special_blur_x__") { var _local5 = 0; while (_local5 < _local3._targ.filters.length) { if (_local3._targ.filters[_local5] instanceof flash.filters.BlurFilter) { _local3._propStart = _local3._targ.filters[_local5].blurX; } _local5++; } if (_local3._propStart == undefined) { _local3._propStart = 0; } } else if (_local3._prop == "__special_blur_y__") { var _local5 = 0; while (_local5 < _local3._targ.filters.length) { if (_local3._targ.filters[_local5] instanceof flash.filters.BlurFilter) { _local3._propStart = _local3._targ.filters[_local5].blurY; } _local5++; } if (_local3._propStart == undefined) { _local3._propStart = 0; } } else if (_local3._prop == "__special_glow_color__") { var _local5 = 0; while (_local5 < _local3._targ.filters.length) { if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) { _local3._propStart = _local3._targ.filters[_local5].color; } _local5++; } if (_local3._propStart == undefined) { _local3._propStart = 16777215 /* 0xFFFFFF */; } } else if (_local3._prop == "__special_glow_alpha__") { var _local5 = 0; while (_local5 < _local3._targ.filters.length) { if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) { _local3._propStart = _local3._targ.filters[_local5].alpha; } _local5++; } if (_local3._propStart == undefined) { _local3._propStart = 1; } } else if (_local3._prop == "__special_glow_blurX__") { var _local5 = 0; while (_local5 < _local3._targ.filters.length) { if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) { _local3._propStart = _local3._targ.filters[_local5].blurX; } _local5++; } if (_local3._propStart == undefined) { _local3._propStart = 0; } } else if (_local3._prop == "__special_glow_blurY__") { var _local5 = 0; while (_local5 < _local3._targ.filters.length) { if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) { _local3._propStart = _local3._targ.filters[_local5].blurY; } _local5++; } if (_local3._propStart == undefined) { _local3._propStart = 0; } } else if (_local3._prop == "__special_glow_strength__") { var _local5 = 0; while (_local5 < _local3._targ.filters.length) { if (_local3._targ.filters[_local5] instanceof flash.filters.GlowFilter) { _local3._propStart = _local3._targ.filters[_local5].strength; } _local5++; } if (_local3._propStart == undefined) { _local3._propStart = 1; } } else if (_local3._prop == "__special_bevel_distance__") { var _local5 = 0; while (_local5 < _local3._targ.filters.length) { if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) { _local3._propStart = _local3._targ.filters[_local5].distance; } _local5++; } if (_local3._propStart == undefined) { _local3._propStart = 0; } } else if (_local3._prop == "__special_bevel_angle__") { var _local5 = 0; while (_local5 < _local3._targ.filters.length) { if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) { _local3._propStart = _local3._targ.filters[_local5].angle; } _local5++; } if (_local3._propStart == undefined) { _local3._propStart = 45; } } else if (_local3._prop == "__special_bevel_highlightColor__") { var _local5 = 0; while (_local5 < _local3._targ.filters.length) { if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) { _local3._propStart = _local3._targ.filters[_local5].highlightColor; } _local5++; } if (_local3._propStart == undefined) { _local3._propStart = 16777215 /* 0xFFFFFF */; } } else if (_local3._prop == "__special_bevel_highlightAlpha__") { var _local5 = 0; while (_local5 < _local3._targ.filters.length) { if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) { _local3._propStart = _local3._targ.filters[_local5].highlightAlpha; } _local5++; } if (_local3._propStart == undefined) { _local3._propStart = 1; } } else if (_local3._prop == "__special_bevel_shadowColor__") { var _local5 = 0; while (_local5 < _local3._targ.filters.length) { if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) { _local3._propStart = _local3._targ.filters[_local5].shadowColor; } _local5++; } if (_local3._propStart == undefined) { _local3._propStart = 0; } } else if (_local3._prop == "__special_bevel_shadowAlpha__") { var _local5 = 0; while (_local5 < _local3._targ.filters.length) { if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) { _local3._propStart = _local3._targ.filters[_local5].shadowAlpha; } _local5++; } if (_local3._propStart == undefined) { _local3._propStart = 1; } } else if (_local3._prop == "__special_bevel_blurX__") { var _local5 = 0; while (_local5 < _local3._targ.filters.length) { if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) { _local3._propStart = _local3._targ.filters[_local5].blurX; } _local5++; } if (_local3._propStart == undefined) { _local3._propStart = 0; } } else if (_local3._prop == "__special_bevel_blurY__") { var _local5 = 0; while (_local5 < _local3._targ.filters.length) { if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) { _local3._propStart = _local3._targ.filters[_local5].blurY; } _local5++; } if (_local3._propStart == undefined) { _local3._propStart = 0; } } else if (_local3._prop == "__special_bevel_strength__") { var _local5 = 0; while (_local5 < _local3._targ.filters.length) { if (_local3._targ.filters[_local5] instanceof flash.filters.BevelFilter) { _local3._propStart = _local3._targ.filters[_local5].strength; } _local5++; } if (_local3._propStart == undefined) { _local3._propStart = 1; } } else { _local3._propStart = _local3._targ[_local3._prop]; } } else { _local3._propStart = _local3._targ[_local3._prop]; } } var _local10 = _local3._timeDest + (_local3._delay * 1000); if (_local10 <= _local8) { var _local4 = _local3._propDest; } else { var _local4 = _global.findTweenValue(_local3._propStart, _local3._propDest, _local3._timeStart, _local8 - (_local3._delay * 1000), _local3._timeDest, _local3._animType, _local3._extra1, _local3._extra2); } _local3._targ[_local3._prop] = (_local3._extras.mustRound ? (Math.round(_local4)) : (_local4)); if (_local3._prop == "__special_mc_frame__") { _local3._targ.gotoAndStop(Math.round(_local4)); } else if (_local3._prop == "__special_mc_ra__") { new Color(_local3._targ).setTransform({ra:_local4}); } else if (_local3._prop == "__special_mc_rb__") { new Color(_local3._targ).setTransform({rb:_local4}); } else if (_local3._prop == "__special_mc_ga__") { new Color(_local3._targ).setTransform({ga:_local4}); } else if (_local3._prop == "__special_mc_gb__") { new Color(_local3._targ).setTransform({gb:_local4}); } else if (_local3._prop == "__special_mc_ba__") { new Color(_local3._targ).setTransform({ba:_local4}); } else if (_local3._prop == "__special_mc_bb__") { new Color(_local3._targ).setTransform({bb:_local4}); } else if (_local3._prop == "__special_mc_aa__") { new Color(_local3._targ).setTransform({aa:_local4}); } else if (_local3._prop == "__special_mc_ab__") { new Color(_local3._targ).setTransform({ab:_local4}); } if (_local3._prop == "__special_bst_t__") { var _local7 = _local3._extras; var _local9 = _global.findPointOnCurve(_local7.__special_bst_ix__, _local7.__special_bst_iy__, _local7.__special_bst_cx__, _local7.__special_bst_cy__, _local7.__special_bst_dx__, _local7.__special_bst_dy__, _local4); if (_local3._extras.mustRound) { _local3._targ._x = Math.round(_local9.x); _local3._targ._y = Math.round(_local9.y); } else { _local3._targ._x = _local9.x; _local3._targ._y = _local9.y; } } if ((typeof(_local3._targ) != "movieclip") && (_local3._prop == "__special_text_b__")) { _local3._targ.textColor = ((_local3._targ.__special_text_r__ << 16) + (_local3._targ.__special_text_g__ << 8)) + _local3._targ.__special_text_b__; } if (_local3._prop == "__special_sound_volume__") { _local3._targ.setVolume(_local4); } if (_local3._prop == "__special_sound_pan__") { _local3._targ.setPan(_local4); } if (_local3._prop == "__special_blur_x__") { _global.$setFilterProperty(_local3._targ, "blur_blurX", _local4, _local3._extras); } if (_local3._prop == "__special_blur_y__") { _global.$setFilterProperty(_local3._targ, "blur_blurY", _local4, _local3._extras); } if (_local3._prop == "__special_glow_color__") { _global.$setFilterProperty(_local3._targ, "glow_color", _global.findTweenColor(_local3, _local8), _local3._extras); } if (_local3._prop == "__special_glow_alpha__") { _global.$setFilterProperty(_local3._targ, "glow_alpha", _local4, _local3._extras); } if (_local3._prop == "__special_glow_blurX__") { _global.$setFilterProperty(_local3._targ, "glow_blurX", _local4, _local3._extras); } if (_local3._prop == "__special_glow_blurY__") { _global.$setFilterProperty(_local3._targ, "glow_blurY", _local4, _local3._extras); } if (_local3._prop == "__special_glow_strength__") { _global.$setFilterProperty(_local3._targ, "glow_strength", _local4, _local3._extras); } if (_local3._prop == "__special_bevel_distance__") { _global.$setFilterProperty(_local3._targ, "bevel_distance", _local4, _local3._extras); } if (_local3._prop == "__special_bevel_angle__") { _global.$setFilterProperty(_local3._targ, "bevel_angle", _local4, _local3._extras); } if (_local3._prop == "__special_bevel_highlightColor__") { _global.$setFilterProperty(_local3._targ, "bevel_highlightColor", _global.findTweenColor(_local3, _local8), _local3._extras); } if (_local3._prop == "__special_bevel_highlightAlpha__") { _global.$setFilterProperty(_local3._targ, "bevel_highlightAlpha", _local4, _local3._extras); } if (_local3._prop == "__special_bevel_shadowColor__") { _global.$setFilterProperty(_local3._targ, "bevel_shadowColor", _global.findTweenColor(_local3, _local8), _local3._extras); } if (_local3._prop == "__special_bevel_shadowAlpha__") { _global.$setFilterProperty(_local3._targ, "bevel_shadowAlpha", _local4, _local3._extras); } if (_local3._prop == "__special_bevel_blurX__") { _global.$setFilterProperty(_local3._targ, "bevel_blurX", _local4, _local3._extras); } if (_local3._prop == "__special_bevel_blurY__") { _global.$setFilterProperty(_local3._targ, "bevel_blurY", _local4, _local3._extras); } if (_local3._prop == "__special_bevel_strength__") { _global.$setFilterProperty(_local3._targ, "bevel_strength", _local4, _local3._extras); } if (_local3._targ.onTweenUpdate != undefined) { _local3._targ.onTweenUpdate(_local3._prop); } if (_local10 <= _local8) { if (_local3._targ.onTweenComplete != undefined) { _local3._targ.onTweenComplete(_local3._prop); } _global.$stopTween(_local3._targ, [_local3._prop], false); _local6--; if (_local3._callback != undefined) { if (_global.backwardCallbackTweening) { var _local11 = _local3._targ.createEmptyMovieClip("__child__", 122344); _local3._callback.apply(_local11, null); _local11.removeMovieClip(); } else { _local3._callback.apply(_local3._targ, null); } } } } _local6++; } if (this.$_tweenPropList.length == 0) { _global.$removeTweenController(); } }; ASSetPropFlags(_global, "$updateTween", 1, 0); _global.$stopTween = function (mtarget, props, wipeFuture) { var _local4 = _root.__tweenController__.$_tweenPropList; var _local7; for (var _local9 in _local4) { _local7 = _local4[_local9]._prop; var _local5 = 0; while ((_local5 < props.length) || ((_local5 < 1) && (props == undefined))) { if (((_local4[_local9]._targ == mtarget) && ((_local7 == props[_local5]) || (props == undefined))) && (wipeFuture || ((_local4[_local9]._timeDest + (_local4[_local9]._delay * 1000)) <= getTimer()))) { switch (_local7) { case "__special_mc_frame__" : case "__special_mc_ra__" : case "__special_mc_rb__" : case "__special_mc_ga__" : case "__special_mc_gb__" : case "__special_mc_ba__" : case "__special_mc_bb__" : case "__special_mc_aa__" : case "__special_mc_ab__" : case "__special_sound_volume__" : case "__special_bst_t__" : delete mtarget[_local7]; break; case "__special_text_b__" : delete mtarget.__special_text_r__; delete mtarget.__special_text_g__; delete mtarget.__special_text_b__; } _local4.splice(_local9, 1); } _local5++; } } if (props == undefined) { delete mtarget.$_tweenCount; } else { mtarget.$_tweenCount = 0; for (var _local9 in _local4) { if (_local4[_local9]._targ == mtarget) { mtarget.$_tweenCount++; } } if (mtarget.$_tweenCount == 0) { delete mtarget.$_tweenCount; } } if (_local4.length == 0) { _global.$removeTweenController(); } }; ASSetPropFlags(_global, "$stopTween", 1, 0); _global.$setFilterProperty = function (mtarget, propName, propValue, extras) { var _local1; var _local7 = false; var _local3 = []; _local1 = 0; while (_local1 < mtarget.filters.length) { _local3.push(mtarget.filters[_local1]); _local1++; } if (propName.substr(0, 5) == "blur_") { _local1 = 0; while (_local1 < mtarget.filters.length) { if (_local3[_local1] instanceof flash.filters.BlurFilter) { _local3[_local1][propName.substr(5)] = propValue; if (extras.__special_blur_quality__ != undefined) { _local3[_local1].quality = extras.__special_blur_quality__; } _local7 = true; break; } _local1++; } if (!_local7) { var _local9; var _local8 = ((extras.__special_blur_quality__ == undefined) ? 2 : (extras.__special_blur_quality__)); if (propName == "blur_blurX") { _local9 = new flash.filters.BlurFilter(propValue, 0, _local8); } if (propName == "blur_blurY") { _local9 = new flash.filters.BlurFilter(0, propValue, _local8); } _local3.push(_local9); } } else if (propName.substr(0, 5) == "glow_") { _local1 = 0; while (_local1 < mtarget.filters.length) { if (_local3[_local1] instanceof flash.filters.GlowFilter) { _local3[_local1][propName.substr(5)] = propValue; if (extras.__special_glow_quality__ != undefined) { _local3[_local1].quality = extras.__special_glow_quality__; } if (extras.__special_glow_inner__ != undefined) { _local3[_local1].inner = extras.__special_glow_inner__; } if (extras.__special_glow_knockout__ != undefined) { _local3[_local1].knockout = extras.__special_glow_knockout__; } _local7 = true; break; } _local1++; } if (!_local7) { var _local8 = ((extras.__special_glow_quality__ == undefined) ? 2 : (extras.__special_glow_quality__)); var _local12 = ((extras.__special_glow_inner__ == undefined) ? false : (extras.__special_glow_inner__)); var _local10 = ((extras.__special_glow_knockout__ == undefined) ? false : (extras.__special_glow_knockout__)); if (propName == "glow_color") { var _local9 = new flash.filters.GlowFilter(propValue, 1, 0, 0, 1, _local8, _local12, _local10); } if (propName == "glow_alpha") { var _local9 = new flash.filters.GlowFilter(16777215, propValue, 0, 0, 1, _local8, _local12, _local10); } if (propName == "glow_blurX") { var _local9 = new flash.filters.GlowFilter(16777215, 1, propValue, 0, 1, _local8, _local12, _local10); } if (propName == "glow_blurY") { var _local9 = new flash.filters.GlowFilter(16777215, 1, 0, propValue, 1, _local8, _local12, _local10); } if (propName == "glow_strength") { var _local9 = new flash.filters.GlowFilter(16777215, 1, 0, 0, propValue, _local8, _local12, _local10); } _local3.push(_local9); } } else if (propName.substr(0, 6) == "bevel_") { _local1 = 0; while (_local1 < mtarget.filters.length) { if (_local3[_local1] instanceof flash.filters.BevelFilter) { _local3[_local1][propName.substr(6)] = propValue; if (extras.__special_bevel_quality__ != undefined) { _local3[_local1].quality = extras.__special_bevel_quality__; } if (extras.__special_bevel_type__ != undefined) { _local3[_local1].inner = extras.__special_bevel_type__; } if (extras.__special_bevel_knockout__ != undefined) { _local3[_local1].knockout = extras.__special_bevel_knockout__; } _local7 = true; break; } _local1++; } if (!_local7) { var _local8 = ((extras.__special_bevel_quality__ == undefined) ? 2 : (extras.__special_bevel_quality__)); var _local11 = ((extras.__special_bevel_type__ == undefined) ? "inner" : (extras.__special_bevel_type__)); var _local10 = ((extras.__special_bevel_knockout__ == undefined) ? false : (extras.__special_bevel_knockout__)); if (propName == "bevel_distance") { var _local9 = new flash.filters.BevelFilter(propValue, 45, 16777215, 1, 0, 1, 0, 0, 1, _local8, _local11, _local10); } if (propName == "bevel_angle") { var _local9 = new flash.filters.BevelFilter(0, propValue, 16777215, 1, 0, 1, 0, 0, 1, _local8, _local11, _local10); } if (propName == "bevel_highlightColor") { var _local9 = new flash.filters.BevelFilter(0, 45, propValue, 1, 0, 1, 0, 0, 1, _local8, _local11, _local10); } if (propName == "bevel_highlightAlpha") { var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, propValue, 0, 1, 0, 0, 1, _local8, _local11, _local10); } if (propName == "bevel_shadowColor") { var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, propValue, 1, 0, 0, 1, _local8, _local11, _local10); } if (propName == "bevel_shadowAlpha") { var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, propValue, 0, 0, 1, _local8, _local11, _local10); } if (propName == "bevel_blurX") { var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, propValue, 0, 1, _local8, _local11, _local10); } if (propName == "bevel_blurY") { var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, 0, propValue, 1, _local8, _local11, _local10); } if (propName == "bevel_strength") { var _local9 = new flash.filters.BevelFilter(0, 45, 16777215, 1, 0, 1, 0, 0, propValue, _local8, _local11, _local10); } _local3.push(_local9); } } else { return(undefined); } mtarget.filters = _local3; }; MovieClip.prototype.tween = (TextField.prototype.tween = (Sound.prototype.tween = function (prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2); })); ASSetPropFlags(MovieClip.prototype, "tween", 1, 0); ASSetPropFlags(TextField.prototype, "tween", 1, 0); ASSetPropFlags(Sound.prototype, "tween", 1, 0); MovieClip.prototype.roundedTween = (TextField.prototype.roundedTween = (Sound.prototype.roundedTween = function (prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, prop, propDest, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true}); })); ASSetPropFlags(MovieClip.prototype, "roundedTween", 1, 0); ASSetPropFlags(TextField.prototype, "roundedTween", 1, 0); ASSetPropFlags(Sound.prototype, "roundedTween", 1, 0); MovieClip.prototype.stopTween = (TextField.prototype.stopTween = (Sound.prototype.stopTween = function (props) { if (typeof(props) == "string") { props = [props]; } if (props != undefined) { var _local4 = 1; while (_local4 < arguments.length) { props.push(arguments[_local4]); _local4++; } } _global.$stopTween(this, props, true); })); ASSetPropFlags(MovieClip.prototype, "stopTween", 1, 0); ASSetPropFlags(TextField.prototype, "stopTween", 1, 0); ASSetPropFlags(Sound.prototype, "stopTween", 1, 0); MovieClip.prototype.pauseTween = (TextField.prototype.pauseTween = (Sound.prototype.pauseTween = function (props) { if (props != undefined) { if (typeof(props) == "string") { props = [props]; } var _local6 = 1; while (_local6 < Arguments.length) { props.push(Arguments[_local6]); _local6++; } } var _local4 = _root.__tweenController__.$_tweenPropList; var _local5; for (var _local7 in _local4) { if ((_local4[_local7]._targ == this) && (!_local4[_local7]._isPaused)) { if (props != undefined) { _local5 = false; for (var _local6 in props) { if (props[_local6] == _local4[_local7]._prop) { _local5 = true; break; } } } if ((props == undefined) || (_local5)) { _local4[_local7]._isPaused = true; _local4[_local7]._timePaused = _root.__tweenController__.$_tTime; } } } })); ASSetPropFlags(MovieClip.prototype, "pauseTween", 1, 0); ASSetPropFlags(TextField.prototype, "pauseTween", 1, 0); ASSetPropFlags(Sound.prototype, "pauseTween", 1, 0); MovieClip.prototype.resumeTween = (TextField.prototype.resumeTween = (Sound.prototype.resumeTween = function (props) { if (props != undefined) { if (typeof(props) == "string") { props = [props]; } var _local7 = 1; while (_local7 < Arguments.length) { props.push(Arguments[_local7]); _local7++; } } var _local3 = _root.__tweenController__.$_tweenPropList; var _local5; var _local6; for (var _local8 in _local3) { if ((_local3[_local8]._targ == this) && (_local3[_local8]._isPaused)) { if (props != undefined) { _local5 = false; for (var _local7 in props) { if (props[_local7] == _local3[_local8]._prop) { _local5 = true; break; } } } if ((props == undefined) || (_local5)) { _local3[_local8]._isPaused = false; _local6 = _root.__tweenController__.$_tTime - _local3[_local8]._timePaused; _local3[_local8]._timeStart = _local3[_local8]._timeStart + _local6; _local3[_local8]._timeDest = _local3[_local8]._timeDest + _local6; _local3[_local8]._timePaused = 0; } } } })); ASSetPropFlags(MovieClip.prototype, "resumeTween", 1, 0); ASSetPropFlags(TextField.prototype, "resumeTween", 1, 0); ASSetPropFlags(Sound.prototype, "resumeTween", 1, 0); MovieClip.prototype.lockTween = (TextField.prototype.lockTween = (Sound.prototype.lockTween = function () { this.$_isTweenLocked = true; ASSetPropFlags(this, "this.$_isTweenLocked", 1, 0); })); ASSetPropFlags(MovieClip.prototype, "lockTween", 1, 0); ASSetPropFlags(TextField.prototype, "lockTween", 1, 0); ASSetPropFlags(Sound.prototype, "lockTween", 1, 0); MovieClip.prototype.unlockTween = (TextField.prototype.unlockTween = (Sound.prototype.unlockTween = function () { delete this.$_isTweenLocked; })); ASSetPropFlags(MovieClip.prototype, "unlockTween", 1, 0); ASSetPropFlags(TextField.prototype, "unlockTween", 1, 0); ASSetPropFlags(Sound.prototype, "unlockTween", 1, 0); MovieClip.prototype.getTweens = (TextField.prototype.getTweens = (Sound.prototype.getTweens = function () { return(this.$_tweenCount); })); ASSetPropFlags(MovieClip.prototype, "getTweens", 1, 0); ASSetPropFlags(TextField.prototype, "getTweens", 1, 0); ASSetPropFlags(Sound.prototype, "getTweens", 1, 0); MovieClip.prototype.isTweening = (TextField.prototype.isTweening = (Sound.prototype.isTweening = function () { return(((this.$_tweenCount > 0) ? true : false)); })); ASSetPropFlags(MovieClip.prototype, "isTweening", 1, 0); ASSetPropFlags(TextField.prototype, "isTweening", 1, 0); ASSetPropFlags(Sound.prototype, "isTweening", 1, 0); MovieClip.prototype.alphaTo = (TextField.prototype.alphaTo = function (propDest_a, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, "_alpha", propDest_a, timeSeconds, animType, delay, callback, extra1, extra2); }); ASSetPropFlags(MovieClip.prototype, "alphaTo", 1, 0); ASSetPropFlags(TextField.prototype, "alphaTo", 1, 0); MovieClip.prototype.frameTo = function (propDest_frame, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, "__special_mc_frame__", propDest_frame, timeSeconds, animType, delay, callback, extra1, extra2); }; ASSetPropFlags(MovieClip.prototype, "frameTo", 1, 0); MovieClip.prototype.resizeTo = (TextField.prototype.resizeTo = function (propDest_width, propDest_height, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, ["_width", "_height"], [propDest_width, propDest_height], timeSeconds, animType, delay, callback, extra1, extra2); }); ASSetPropFlags(MovieClip.prototype, "resizeTo", 1, 0); ASSetPropFlags(TextField.prototype, "resizeTo", 1, 0); MovieClip.prototype.rotateTo = (TextField.prototype.rotateTo = function (propDest_rotation, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, "_rotation", propDest_rotation, timeSeconds, animType, delay, callback, extra1, extra2); }); ASSetPropFlags(MovieClip.prototype, "rotateTo", 1, 0); ASSetPropFlags(TextField.prototype, "rotateTo", 1, 0); MovieClip.prototype.scaleTo = (TextField.prototype.scaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, ["_xscale", "_yscale"], [propDest_scale, propDest_scale], timeSeconds, animType, delay, callback, extra1, extra2); }); ASSetPropFlags(MovieClip.prototype, "scaleTo", 1, 0); ASSetPropFlags(TextField.prototype, "scaleTo", 1, 0); MovieClip.prototype.xScaleTo = (TextField.prototype.xScaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, "_xscale", propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2); }); ASSetPropFlags(MovieClip.prototype, "xScaleTo", 1, 0); ASSetPropFlags(TextField.prototype, "xScaleTo", 1, 0); MovieClip.prototype.yScaleTo = (TextField.prototype.yScaleTo = function (propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, "_yscale", propDest_scale, timeSeconds, animType, delay, callback, extra1, extra2); }); ASSetPropFlags(MovieClip.prototype, "yScaleTo", 1, 0); ASSetPropFlags(TextField.prototype, "yScaleTo", 1, 0); TextField.prototype.scrollTo = function (propDest_scroll, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, "scroll", propDest_scroll, timeSeconds, animType, delay, callback, extra1, extra2); }; ASSetPropFlags(TextField.prototype, "scrollTo", 1, 0); MovieClip.prototype.slideTo = (TextField.prototype.slideTo = function (propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, ["_x", "_y"], [propDest_x, propDest_y], timeSeconds, animType, delay, callback, extra1, extra2); }); ASSetPropFlags(MovieClip.prototype, "slideTo", 1, 0); ASSetPropFlags(TextField.prototype, "slideTo", 1, 0); MovieClip.prototype.roundedSlideTo = (TextField.prototype.roundedSlideTo = function (propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, ["_x", "_y"], [propDest_x, propDest_y], timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true}); }); ASSetPropFlags(MovieClip.prototype, "roundedSlideTo", 1, 0); ASSetPropFlags(TextField.prototype, "roundedSlideTo", 1, 0); MovieClip.prototype.xSlideTo = (TextField.prototype.xSlideTo = function (propDest_x, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, "_x", propDest_x, timeSeconds, animType, delay, callback, extra1, extra2); }); ASSetPropFlags(MovieClip.prototype, "xSlideTo", 1, 0); ASSetPropFlags(TextField.prototype, "xSlideTo", 1, 0); MovieClip.prototype.roundedXSlideTo = (TextField.prototype.roundedXSlideTo = function (propDest_x, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, "_x", propDest_x, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true}); }); ASSetPropFlags(MovieClip.prototype, "roundedXSlideTo", 1, 0); ASSetPropFlags(TextField.prototype, "roundedXSlideTo", 1, 0); MovieClip.prototype.ySlideTo = (TextField.prototype.ySlideTo = function (propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, "_y", propDest_y, timeSeconds, animType, delay, callback, extra1, extra2); }); ASSetPropFlags(MovieClip.prototype, "ySlideTo", 1, 0); ASSetPropFlags(TextField.prototype, "ySlideTo", 1, 0); MovieClip.prototype.roundedYSlideTo = (TextField.prototype.roundedYSlideTo = function (propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, "_y", propDest_y, timeSeconds, animType, delay, callback, extra1, extra2, {mustRound:true}); }); ASSetPropFlags(MovieClip.prototype, "roundedYSlideTo", 1, 0); ASSetPropFlags(TextField.prototype, "roundedYSlideTo", 1, 0); MovieClip.prototype.bezierSlideTo = (TextField.prototype.bezierSlideTo = function (cpoint_x, cpoint_y, propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) { var _local3 = new Object(); _local3.__special_bst_ix__ = undefined; _local3.__special_bst_iy__ = undefined; _local3.__special_bst_cx__ = cpoint_x; _local3.__special_bst_cy__ = cpoint_y; _local3.__special_bst_dx__ = propDest_x; _local3.__special_bst_dy__ = propDest_y; _global.$addTween(this, "__special_bst_t__", 1, timeSeconds, animType, delay, callback, extra1, extra2, _local3); }); ASSetPropFlags(MovieClip.prototype, "bezierSlideTo", 1, 0); ASSetPropFlags(TextField.prototype, "bezierSlideTo", 1, 0); MovieClip.prototype.roundedBezierSlideTo = (TextField.prototype.roundedBezierSlideTo = function (cpoint_x, cpoint_y, propDest_x, propDest_y, timeSeconds, animType, delay, callback, extra1, extra2) { var _local3 = new Object(); _local3.__special_bst_ix__ = undefined; _local3.__special_bst_iy__ = undefined; _local3.__special_bst_cx__ = cpoint_x; _local3.__special_bst_cy__ = cpoint_y; _local3.__special_bst_dx__ = propDest_x; _local3.__special_bst_dy__ = propDest_y; _local3.mustRound = true; _global.$addTween(this, "__special_bst_t__", 1, timeSeconds, animType, delay, callback, extra1, extra2, _local3); }); ASSetPropFlags(MovieClip.prototype, "roundedBezierSlideTo", 1, 0); ASSetPropFlags(TextField.prototype, "roundedBezierSlideTo", 1, 0); Sound.prototype.volumeTo = function (propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, "__special_sound_volume__", propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2); }; ASSetPropFlags(Sound.prototype, "volumeTo", 1, 0); Sound.prototype.panTo = function (propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, "__special_sound_pan__", propDest_volume, timeSeconds, animType, delay, callback, extra1, extra2); }; ASSetPropFlags(Sound.prototype, "panTo", 1, 0); MovieClip.prototype.colorTo = function (propDest_color, timeSeconds, animType, delay, callback, extra1, extra2) { if (propDest_color == null) { this.colorTransformTo(100, 0, 100, 0, 100, 0, undefined, undefined, timeSeconds, animType, delay, callback, extra1, extra2); } else { var _local3 = propDest_color >> 16; var _local5 = (propDest_color & 65280) >> 8; var _local4 = propDest_color & 255; this.colorTransformTo(0, _local3, 0, _local5, 0, _local4, undefined, undefined, timeSeconds, animType, delay, callback, extra1, extra2); } }; ASSetPropFlags(MovieClip.prototype, "colorTo", 1, 0); TextField.prototype.colorTo = function (propDest_color, timeSeconds, animType, delay, callback, extra1, extra2) { var _local3 = propDest_color >> 16; var _local6 = (propDest_color & 65280) >> 8; var _local4 = propDest_color & 255; _global.$addTween(this, ["__special_text_r__", "__special_text_g__", "__special_text_b__"], [_local3, _local6, _local4], timeSeconds, animType, delay, callback, extra1, extra2); }; ASSetPropFlags(TextField.prototype, "colorTo", 1, 0); MovieClip.prototype.colorTransformTo = function () { if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) { _global.$addTween(this, ["__special_mc_ra__", "__special_mc_rb__", "__special_mc_ga__", "__special_mc_gb__", "__special_mc_ba__", "__special_mc_bb__", "__special_mc_aa__", "__special_mc_ab__"], [arguments[0].ra, arguments[0].rb, arguments[0].ga, arguments[0].gb, arguments[0].ba, arguments[0].bb, arguments[0].aa, arguments[0].ab], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6]); } else { _global.$addTween(this, ["__special_mc_ra__", "__special_mc_rb__", "__special_mc_ga__", "__special_mc_gb__", "__special_mc_ba__", "__special_mc_bb__", "__special_mc_aa__", "__special_mc_ab__"], [arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[7]], arguments[8], arguments[9], arguments[10], arguments[11], arguments[12], arguments[13]); } }; ASSetPropFlags(MovieClip.prototype, "colorTransformTo", 1, 0); MovieClip.prototype.blurTo = (TextField.prototype.blurTo = function () { if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) { _global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [arguments[0].blurX, arguments[0].blurY], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_blur_quality__:arguments[0].quality}); } else { _global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [arguments[0], arguments[0]], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[7], {__special_blur_quality__:arguments[1]}); } }); ASSetPropFlags(MovieClip.prototype, "blurTo", 1, 0); ASSetPropFlags(TextField.prototype, "blurTo", 1, 0); MovieClip.prototype.xyBlurTo = (TextField.prototype.xyBlurTo = function (propDest_blurX, propDest_blurY, quality, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, ["__special_blur_x__", "__special_blur_y__"], [propDest_blurX, propDest_blurY], timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__:quality}); }); ASSetPropFlags(MovieClip.prototype, "xyBlurTo", 1, 0); ASSetPropFlags(TextField.prototype, "xyBlurTo", 1, 0); MovieClip.prototype.xBlurTo = (TextField.prototype.xBlurTo = function (propDest_blur, quality, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, "__special_blur_x__", propDest_blur, timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__:quality}); }); ASSetPropFlags(MovieClip.prototype, "xBlurTo", 1, 0); ASSetPropFlags(TextField.prototype, "xBlurTo", 1, 0); MovieClip.prototype.yBlurTo = (TextField.prototype.yBlurTo = function (propDest_blur, quality, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, "__special_blur_y__", propDest_blur, timeSeconds, animType, delay, callback, extra1, extra2, {__special_blur_quality__:quality}); }); ASSetPropFlags(MovieClip.prototype, "yBlurTo", 1, 0); ASSetPropFlags(TextField.prototype, "yBlurTo", 1, 0); MovieClip.prototype.glowTo = (TextField.prototype.glowTo = function () { if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) { _global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [arguments[0].color, arguments[0].alpha, arguments[0].blurX, arguments[0].blurY, arguments[0].strength], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_glow_quality__:arguments[0].quality, __special_glow_inner__:arguments[0].inner, __special_glow_knockout__:arguments[0].knockout}); } else { _global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [arguments[0], arguments[1], arguments[2], arguments[2], arguments[3]], arguments[7], arguments[8], arguments[9], arguments[10], arguments[11], arguments[12], {__special_glow_quality__:arguments[4], __special_glow_inner__:arguments[5], __special_glow_knockout__:arguments[6]}); } }); ASSetPropFlags(MovieClip.prototype, "glowTo", 1, 0); ASSetPropFlags(TextField.prototype, "glowTo", 1, 0); MovieClip.prototype.xyGlowTo = (TextField.prototype.xyGlowTo = function (propDest_color, propDest_alpha, propDest_blurX, propDest_blurY, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_blurY__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blurX, propDest_blurY, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__:quality, __special_glow_inner__:inner, __special_glow_knockout__:knockout}); }); ASSetPropFlags(MovieClip.prototype, "xyGlowTo", 1, 0); ASSetPropFlags(TextField.prototype, "xyGlowTo", 1, 0); MovieClip.prototype.xGlowTo = (TextField.prototype.xGlowTo = function (propDest_color, propDest_alpha, propDest_blur, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurX__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__:quality, __special_glow_inner__:inner, __special_glow_knockout__:knockout}); }); ASSetPropFlags(MovieClip.prototype, "xGlowTo", 1, 0); ASSetPropFlags(TextField.prototype, "xGlowTo", 1, 0); MovieClip.prototype.yGlowTo = (TextField.prototype.yGlowTo = function (propDest_color, propDest_alpha, propDest_blur, propDest_strength, quality, inner, knockout, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, ["__special_glow_color__", "__special_glow_alpha__", "__special_glow_blurY__", "__special_glow_strength__"], [propDest_color, propDest_alpha, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_glow_quality__:quality, __special_glow_inner__:inner, __special_glow_knockout__:knockout}); }); ASSetPropFlags(MovieClip.prototype, "yGlowTo", 1, 0); ASSetPropFlags(TextField.prototype, "yGlowTo", 1, 0); MovieClip.prototype.bevelTo = (TextField.prototype.bevelTo = function () { if ((typeof(arguments[0]) == "object") && (arguments[0] != undefined)) { _global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_strength__"], [arguments[0].distance, arguments[0].angle, arguments[0].highlightColor, arguments[0].highlightAlpha * 100, arguments[0].shadowColor, arguments[0].shadowAlpha * 100, arguments[0].blurX, arguments[0].blurY, arguments[0].strength], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], {__special_bevel_quality__:arguments[0].quality, __special_bevel_type__:arguments[0].type, __special_bevel_knockout__:arguments[0].knockout}); } else { _global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_strength__"], [arguments[0], arguments[1], arguments[2], arguments[3], arguments[4], arguments[5], arguments[6], arguments[6], arguments[7]], arguments[11], arguments[12], arguments[13], arguments[14], arguments[15], arguments[16], {__special_bevel_quality__:arguments[8], __special_bevel_type__:arguments[9], __special_bevel_knockout__:arguments[10]}); } }); ASSetPropFlags(MovieClip.prototype, "bevelTo", 1, 0); ASSetPropFlags(TextField.prototype, "bevelTo", 1, 0); MovieClip.prototype.xyBevelTo = (TextField.prototype.xyBevelTo = function (propDest_distance, propDest_angle, propDest_highlightColor, propDest_highlightAlpha, propDest_shadowColor, propDest_shadowAlpha, propDest_blurX, propDest_blurY, propDest_strength, quality, type, knockout, timeSeconds, animType, delay, callback, extra1, extra2) { _global.$addTween(this, ["__special_bevel_distance__", "__special_bevel_angle__", "__special_bevel_highlightColor__", "__special_bevel_highlightAlpha__", "__special_bevel_shadowColor__", "__special_bevel_shadowAlpha__", "__special_bevel_blurX__", "__special_bevel_blurY__", "__special_bevel_blurY__", "__special_bevel_strength__"], [propDest_distance, propDest_angle, propDest_highlightColor, propDest_highlightAlpha, propDest_shadowColor, propDest_shadowAlpha, propDest_blur, propDest_blur, propDest_strength], timeSeconds, animType, delay, callback, extra1, extra2, {__special_bevel_quality__:quality, __special_bevel_type__:type, __special_bevel_knockout__:knockout}); }); ASSetPropFlags(MovieClip.prototype, "xyBevelTo", 1, 0); ASSetPropFlags(TextField.prototype, "xyBevelTo", 1, 0); _global.findPointOnCurve = function (p1x, p1y, cx, cy, p2x, p2y, t) { return({x:p1x + (t * (((2 * (1 - t)) * (cx - p1x)) + (t * (p2x - p1x)))), y:p1y + (t * (((2 * (1 - t)) * (cy - p1y)) + (t * (p2y - p1y))))}); }; ASSetPropFlags(_global, "findPointOnCurve", 1, 0); _global.findTweenColor = function (objProp, tTime) { var _local8 = objProp._propStart >> 16; var _local4 = objProp._propDest >> 16; var _local5 = (objProp._propStart >> 8) & 255; var _local6 = (objProp._propDest >> 8) & 255; var _local9 = objProp._propStart & 255; var _local7 = objProp._propDest & 255; var _local12 = Math.round(_global.findTweenValue(_local8, _local4, objProp._timeStart, tTime - (objProp._delay * 1000), objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2)); var _local10 = Math.round(_global.findTweenValue(_local5, _local6, objProp._timeStart, tTime - (objProp._delay * 1000), objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2)); var _local3 = Math.round(_global.findTweenValue(_local9, _local7, objProp._timeStart, tTime - (objProp._delay * 1000), objProp._timeDest, objProp._animType, objProp._extra1, objProp._extra2)); return(((_local12 << 16) + (_local10 << 8)) + _local3); }; _global.findTweenValue = function (_propStart, _propDest, _timeStart, _timeNow, _timeDest, _animType, _extra1, _extra2) { var _local1 = _timeNow - _timeStart; var _local4 = _propStart; var _local2 = _propDest - _propStart; var _local3 = _timeDest - _timeStart; var _local6 = _extra1; var _local7 = _extra2; var _local5 = _extra1; switch (_animType.toLowerCase()) { case "linear" : return(((_local2 * _local1) / _local3) + _local4); case "easeinquad" : _local1 = _local1 / _local3; return(((_local2 * _local1) * _local1) + _local4); case "easeoutquad" : _local1 = _local1 / _local3; return((((-_local2) * _local1) * (_local1 - 2)) + _local4); case "easeinoutquad" : _local1 = _local1 / (_local3 / 2); if (_local1 < 1) { return((((_local2 / 2) * _local1) * _local1) + _local4); } _local1--; return((((-_local2) / 2) * ((_local1 * (_local1 - 2)) - 1)) + _local4); case "easeoutinquad" : if (_local1 < (_local3 / 2)) { return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutQuad") * 0.5) + _local4); } return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInQuad") * 0.5) + (_local2 * 0.5)) + _local4); case "easeincubic" : _local1 = _local1 / _local3; return((((_local2 * _local1) * _local1) * _local1) + _local4); case "easeoutcubic" : _local1 = (_local1 / _local3) - 1; return((_local2 * (((_local1 * _local1) * _local1) + 1)) + _local4); case "easeinoutcubic" : _local1 = _local1 / (_local3 / 2); if (_local1 < 1) { return(((((_local2 / 2) * _local1) * _local1) * _local1) + _local4); } _local1 = _local1 - 2; return(((_local2 / 2) * (((_local1 * _local1) * _local1) + 2)) + _local4); case "easeoutincubic" : if (_local1 < (_local3 / 2)) { return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutCubic") * 0.5) + _local4); } return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInCubic") * 0.5) + (_local2 * 0.5)) + _local4); case "easeinquart" : _local1 = _local1 / _local3; return(((((_local2 * _local1) * _local1) * _local1) * _local1) + _local4); case "easeoutquart" : _local1 = (_local1 / _local3) - 1; return(((-_local2) * ((((_local1 * _local1) * _local1) * _local1) - 1)) + _local4); case "easeinoutquart" : _local1 = _local1 / (_local3 / 2); if (_local1 < 1) { return((((((_local2 / 2) * _local1) * _local1) * _local1) * _local1) + _local4); } _local1 = _local1 - 2; return((((-_local2) / 2) * ((((_local1 * _local1) * _local1) * _local1) - 2)) + _local4); case "easeoutinquart" : if (_local1 < (_local3 / 2)) { return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutQuart") * 0.5) + _local4); } return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInQuart") * 0.5) + (_local2 * 0.5)) + _local4); case "easeinquint" : _local1 = _local1 / _local3; return((((((_local2 * _local1) * _local1) * _local1) * _local1) * _local1) + _local4); case "easeoutquint" : _local1 = (_local1 / _local3) - 1; return((_local2 * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 1)) + _local4); case "easeinoutquint" : _local1 = _local1 / (_local3 / 2); if (_local1 < 1) { return(((((((_local2 / 2) * _local1) * _local1) * _local1) * _local1) * _local1) + _local4); } _local1 = _local1 - 2; return(((_local2 / 2) * (((((_local1 * _local1) * _local1) * _local1) * _local1) + 2)) + _local4); case "easeoutinquint" : if (_local1 < (_local3 / 2)) { return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutQuint") * 0.5) + _local4); } return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInQuint") * 0.5) + (_local2 * 0.5)) + _local4); case "easeinsine" : return((((-_local2) * Math.cos((_local1 / _local3) * (Math.PI/2))) + _local2) + _local4); case "easeoutsine" : return((_local2 * Math.sin((_local1 / _local3) * (Math.PI/2))) + _local4); case "easeinoutsine" : return((((-_local2) / 2) * (Math.cos((Math.PI * _local1) / _local3) - 1)) + _local4); case "easeoutinsine" : if (_local1 < (_local3 / 2)) { return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutSine") * 0.5) + _local4); } return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInSine") * 0.5) + (_local2 * 0.5)) + _local4); case "easeinexpo" : return(((_local1 == 0) ? (_local4) : ((_local2 * Math.pow(2, 10 * ((_local1 / _local3) - 1))) + _local4))); case "easeoutexpo" : return(((_local1 == _local3) ? (_local4 + _local2) : ((_local2 * ((-Math.pow(2, (-10 * _local1) / _local3)) + 1)) + _local4))); case "easeinoutexpo" : if (_local1 == 0) { return(_local4); } if (_local1 == _local3) { return(_local4 + _local2); } _local1 = _local1 / (_local3 / 2); if (_local1 < 1) { return(((_local2 / 2) * Math.pow(2, 10 * (_local1 - 1))) + _local4); } _local1--; return(((_local2 / 2) * ((-Math.pow(2, -10 * _local1)) + 2)) + _local4); case "easeoutinexpo" : if (_local1 == 0) { return(_local4); } if (_local1 == _local3) { return(_local4 + _local2); } _local1 = _local1 / (_local3 / 2); if (_local1 < 1) { return(((_local2 / 2) * ((-Math.pow(2, (-10 * _local1) / 1)) + 1)) + _local4); } return(((_local2 / 2) * (Math.pow(2, (10 * (_local1 - 2)) / 1) + 1)) + _local4); case "easeincirc" : _local1 = _local1 / _local3; return(((-_local2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + _local4); case "easeoutcirc" : _local1 = (_local1 / _local3) - 1; return((_local2 * Math.sqrt(1 - (_local1 * _local1))) + _local4); case "easeinoutcirc" : _local1 = _local1 / (_local3 / 2); if (_local1 < 1) { return((((-_local2) / 2) * (Math.sqrt(1 - (_local1 * _local1)) - 1)) + _local4); } _local1 = _local1 - 2; return(((_local2 / 2) * (Math.sqrt(1 - (_local1 * _local1)) + 1)) + _local4); case "easeoutincirc" : if (_local1 < (_local3 / 2)) { return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutCirc") * 0.5) + _local4); } return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInCirc") * 0.5) + (_local2 * 0.5)) + _local4); case "easeinelastic" : if (_local1 == 0) { return(_local4); } _local1 = _local1 / _local3; if (_local1 == 1) { return(_local4 + _local2); } if (!_local7) { _local7 = _local3 * 0.3; } if ((!_local6) || (_local6 < Math.abs(_local2))) { _local6 = _local2; _local5 = _local7 / 4; } else { _local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6); } _local1 = _local1 - 1; return((-((_local6 * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7))) + _local4); case "easeoutelastic" : if (_local1 == 0) { return(_local4); } _local1 = _local1 / _local3; if (_local1 == 1) { return(_local4 + _local2); } if (!_local7) { _local7 = _local3 * 0.3; } if ((!_local6) || (_local6 < Math.abs(_local2))) { _local6 = _local2; _local5 = _local7 / 4; } else { _local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6); } return((((_local6 * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7)) + _local2) + _local4); case "easeinoutelastic" : if (_local1 == 0) { return(_local4); } _local1 = _local1 / (_local3 / 2); if (_local1 == 2) { return(_local4 + _local2); } if (!_local7) { _local7 = _local3 * 0.45; } if ((!_local6) || (_local6 < Math.abs(_local2))) { _local6 = _local2; _local5 = _local7 / 4; } else { _local5 = (_local7 / (Math.PI*2)) * Math.asin(_local2 / _local6); } if (_local1 < 1) { _local1 = _local1 - 1; return((-0.5 * ((_local6 * Math.pow(2, 10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7))) + _local4); } _local1 = _local1 - 1; return(((((_local6 * Math.pow(2, -10 * _local1)) * Math.sin((((_local1 * _local3) - _local5) * (Math.PI*2)) / _local7)) * 0.5) + _local2) + _local4); case "easeoutinelastic" : if (_local1 < (_local3 / 2)) { return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutElastic") * 0.5) + _local4); } return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInElastic") * 0.5) + (_local2 * 0.5)) + _local4); case "easeinback" : if (_local5 == undefined) { _local5 = 1.70158; } _local1 = _local1 / _local3; return((((_local2 * _local1) * _local1) * (((_local5 + 1) * _local1) - _local5)) + _local4); case "easeoutback" : if (_local5 == undefined) { _local5 = 1.70158; } _local1 = (_local1 / _local3) - 1; return((_local2 * (((_local1 * _local1) * (((_local5 + 1) * _local1) + _local5)) + 1)) + _local4); case "easeinoutback" : if (_local5 == undefined) { _local5 = 1.70158; } _local1 = _local1 / (_local3 / 2); if (_local1 < 1) { _local5 = _local5 * 1.525; return(((_local2 / 2) * ((_local1 * _local1) * (((_local5 + 1) * _local1) - _local5))) + _local4); } _local1 = _local1 - 2; _local5 = _local5 * 1.525; return(((_local2 / 2) * (((_local1 * _local1) * (((_local5 + 1) * _local1) + _local5)) + 2)) + _local4); case "easeoutinback" : if (_local1 < (_local3 / 2)) { return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutBack") * 0.5) + _local4); } return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInBack") * 0.5) + (_local2 * 0.5)) + _local4); case "easeinbounce" : return((_local2 - findTweenValue(0, _local2, 0, _local3 - _local1, _local3, "easeOutBounce")) + _local4); case "easeoutbounce" : _local1 = _local1 / _local3; if (_local1 < 0.363636363636364) { return((_local2 * ((7.5625 * _local1) * _local1)) + _local4); } if (_local1 < 0.727272727272727) { _local1 = _local1 - 0.545454545454545; return((_local2 * (((7.5625 * _local1) * _local1) + 0.75)) + _local4); } if (_local1 < 0.909090909090909) { _local1 = _local1 - 0.818181818181818; return((_local2 * (((7.5625 * _local1) * _local1) + 0.9375)) + _local4); } _local1 = _local1 - 0.954545454545455; return((_local2 * (((7.5625 * _local1) * _local1) + 0.984375)) + _local4); case "easeinoutbounce" : if (_local1 < (_local3 / 2)) { return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeInBounce") * 0.5) + _local4); } return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeOutBounce") * 0.5) + (_local2 * 0.5)) + _local4); case "easeoutinbounce" : if (_local1 < (_local3 / 2)) { return((findTweenValue(0, _local2, 0, _local1 * 2, _local3, "easeOutBounce") * 0.5) + _local4); } return(((findTweenValue(0, _local2, 0, (_local1 * 2) - _local3, _local3, "easeInBounce") * 0.5) + (_local2 * 0.5)) + _local4); } trace(("MC TWEEN ### Error on transition: there's no \"" + _animType) + "\" animation type."); return(0); }; ASSetPropFlags(_global, "findTweenValue", 1, 0); _global.showWord = function (theWord, animationType, theX, theY, theTime, theClip, removeWhenFinished, frameToGoto, wordColour) { var letterWidth = 30; if (theClip == undefined) { theClip = _root; } if (theX == undefined) { theX = Stage.width / 2; } if (theY == undefined) { theY = Stage.height / 2; } if (removeWhenFinished == undefined) { removeWhenFinished = true; } if (animationType == undefined) { animationType = "slide down"; } if (theTime == undefined) { theTime = 1; } if (frameToGoto == undefined) { frameToGoto = 1; } if (wordColour == undefined) { wordColour = "0xFFFFFF"; } tname = "wordHolder" + Math.floor(Math.random() * 100); tempHolder = theClip.createEmptyMovieClip(tname, theClip.getNextHighestDepth()); i = 0; while (i < theWord.length) { t = tempHolder.attachMovie("showWordLetter", "l" + i, i); i++; } xOffset = theX - ((theWord.length * letterWidth) / 2); timeDelay = 0; timeIncrease = theTime / theWord.length; theFrame = Math.floor(Math.random() * 6) + 1; i = 0; while (i < theWord.length) { t = eval ("tempHolder.l" + i); t.textBox.text = theWord.charAt(i); theXpos = (xOffset + (i * letterWidth)) + letterWidth; t.gotoAndStop(frameToGoto); t.colorTo(wordColour); switch (animationType) { case "slide random smooth" : t._x = Math.random() * Stage.width; t._y = Math.random() * Stage.height; t._alpha = 0; t.slideTo(theXpos, theY, theTime, "", timeDelay); t.alphaTo(100, theTime / 2, "", timeDelay); break; case "slide random bounce" : t._x = Math.random() * Stage.width; t._y = Math.random() * Stage.height; t._alpha = 0; t.slideTo(theXpos, theY, theTime, "easeOutElastic", timeDelay); t.alphaTo(100, theTime / 2, "", timeDelay); break; case "slide zoom 3" : t._x = Stage.width / 2; t._y = theY; t._alpha = 0; t.slideTo(theXpos, theY, theTime, "easeOutCirc", timeDelay); t.alphaTo(100, theTime, "", timeDelay + 0.2); t._yscale = (t._xscale = 10); t.scaleTo(100, theTime); break; case "slide zoom 1" : t._x = Stage.width / 2; t._y = theY; t._alpha = 0; t.slideTo(theXpos, theY, theTime); t.alphaTo(100, theTime / 2); t._yscale = (t._xscale = 10); t.scaleTo(100, theTime); break; case "slide zoom 2" : t._x = (theX - (theWord.length * letterWidth)) + ((i * letterWidth) * 2); t._y = theY; t._alpha = 0; t._yscale = 500; t._xscale = 500; t.slideTo(theXpos, theY, theTime); t.alphaTo(100, theTime / 2); t.scaleTo(100, theTime); break; case "scale 1" : t._x = theXpos; t._y = theY; t._alpha = 0; t.alphaTo(100, theTime, "", timeDelay); t._yscale = 1500; t._xscale = 5; t.scaleTo(100, theTime, "", timeDelay); break; case "scale 2" : t._x = xOffset + (i * letterWidth); t._y = theY; t._alpha = 0; t.alphaTo(100, theTime, "", timeDelay); t._yscale = 10; t._xscale = 500; t.scaleTo(100, theTime, "", timeDelay); break; case "scale 3" : t._x = xOffset + (i * letterWidth); t._y = theY; t._alpha = 0; t.alphaTo(100, theTime, "", timeDelay); t._yscale = Math.random() * 500; t._xscale = Math.random() * 500; t.scaleTo(100, theTime, "", timeDelay); break; case "scale 4" : t._x = theXpos; t._y = theY; t._alpha = 0; t.alphaTo(100, theTime, "", timeDelay); t._yscale = 1500; t._xscale = 5; t.scaleTo(100, theTime, "easeOutBounce", timeDelay); break; case "scale 5" : t._x = theXpos; t._y = theY; t._alpha = 0; t.alphaTo(100, theTime, "", timeDelay); t._yscale = 1500; t._xscale = 5; t.scaleTo(100, theTime, "easeOutElastic", timeDelay); break; case "scale 6" : t._x = theXpos; t._y = theY; t._alpha = 0; t.alphaTo(100, theTime, "", timeDelay); t._yscale = 1500; t._xscale = 1500; t.scaleTo(100, theTime, "easeOutBounce", timeDelay); break; case "scale up" : t._x = xOffset + (i * letterWidth); t._y = theY; t._alpha = 0; t.alphaTo(100, theTime, "", timeDelay); t._yscale = (t._xscale = 10); t.scaleTo(100, theTime, "", timeDelay); break; case "slide random" : t._x = Math.random() * Stage.width; t._y = Math.random() * Stage.height; t._alpha = 0; t.slideTo(xOffset + (i * letterWidth), theY, theTime); t.alphaTo(100, theTime / 2); break; case "scale down rotate" : t._x = xOffset + (i * letterWidth); t._y = theY; t._alpha = 0; t.alphaTo(100, theTime, "", timeDelay); t._yscale = (t._xscale = 500); t.scaleTo(100, theTime, "", timeDelay); t._rotation = 180; t.rotateTo(0, theTime, "", timeDelay); break; case "slide down" : t = eval ("tempHolder.l" + i); t._x = xOffset + (i * letterWidth); t._y = -20; t.ySlideTo(theY, theTime, undefined, timeDelay); t.textBox.text = theWord.charAt(i); break; case "scale down" : t._x = xOffset + (i * letterWidth); t._y = theY; t._alpha = 0; t.alphaTo(100, theTime, "", timeDelay); t._yscale = (t._xscale = 500); t.scaleTo(100, theTime, "", timeDelay); break; case "scale up" : t = eval ("tempHolder.l" + i); t._x = xOffset + (i * letterWidth); t._y = theY; t._alpha = 0; t.alphaTo(100, theTime, "", timeDelay); t._yscale = (t._xscale = 500); t.scaleTo(100, theTime, "", timeDelay); t.textBox.text = theWord.charAt(i); break; case "slide down bounce" : t = eval ("tempHolder.l" + i); t._x = xOffset + (i * letterWidth); t._y = -20; t.ySlideTo(theY, theTime, "easeOutBounce", timeDelay); t.textBox.text = theWord.charAt(i); break; case "slide down elastic" : t = eval ("tempHolder.l" + i); t._x = xOffset + (i * letterWidth); t._y = -20; t.ySlideTo(theY, theTime, "easeOutElastic", timeDelay); t.textBox.text = theWord.charAt(i); break; case "slide down back" : t = eval ("tempHolder.l" + i); t._x = xOffset + (i * letterWidth); t._y = -20; t.ySlideTo(theY, theTime, "easeOutBack", timeDelay); t.textBox.text = theWord.charAt(i); } trace(t); t.ySlideTo(520, 1, "easeInExpo", 2, function () { removeMovieClip(this); }); timeDelay = timeDelay + timeIncrease; i++; } }; restartLevelBtnClip.onRollOver = function () { restartLevelBtnClip.scaleTo(200, 1); }; restartLevelBtnClip.onRollOut = function () { restartLevelBtnClip.scaleTo(100, 0.5); }; restartLevelBtnClip.onRelease = function () { gameState = "quit level"; }; menuBtnClip.onRollOver = function () { menuBtnClip.scaleTo(200, 1); }; menuBtnClip.onRollOut = function () { menuBtnClip.scaleTo(100, 0.5); }; menuBtnClip.onRelease = function () { gameState = "quit game"; }; i = 0; while (i < 6) { t = miscHolder.attachMovie("colourSchemeClip", "colourSchemeClip" + i, i + 10000); t.onRollOver = function () { this.ySlideTo(460, 0.5); }; t.onRollOut = function () { this.ySlideTo(470, 0.5); }; colourClip = colourSchemes[i]; t._y = 470; t._x = 13 + (i * 24); t.colourString = i; if (i == 0) { t.colorTransformTo(200, undefined, -255, undefined, -255, undefined, undefined, undefined, 0.6, "linear"); } if (i == 1) { t.colorTransformTo(-255, undefined, 255, undefined, -255, undefined, undefined, undefined, 0.6, "linear"); } if (i == 2) { t.colorTransformTo(-255, undefined, -255, undefined, 200, undefined, undefined, undefined, 0.6, "linear"); } if (tempColour == 3) { gridHolder.colorTransformTo(255, undefined, 255, undefined, -255, undefined, undefined, undefined, 0.6, "linear"); } if (i == 4) { t.colorTransformTo(255, undefined, 128, undefined, 255, undefined, undefined, undefined, 0.6, "linear"); } if (i == 5) { t.colorTransformTo(128, undefined, 128, undefined, -255, undefined, undefined, undefined, 0.6, "linear"); } t.onRelease = function () { changeThemeColour(this.colourString); }; i++; } onMouseDown = function () { trace(gameState); if (gameState == "wait for users click") { trace("mouse pressed"); findBlockUserIsClicking(); } }; onMouseUp = function () { if (gameState == "user is dragging") { levelBonus = levelBonus - 10; if (levelBonus < 0) { levelBonus = 0; } bonusTextBox.text = levelBonus; testX = findTheXLocation(testClip._x + 25); testY = findTheYLocation(testClip._y + 25); theTempArray = eval (("block" + typeOfBlock) + "Type"); l = 0; while (l < theTempArray.length) { levelData[testY + theTempArray[l + 1]][testX + theTempArray[l]][0] = 1; levelData[testY + theTempArray[l]][testX + theTempArray[l + 1]][1] = t; l = l + 2; } testClip._x = (testX * 50) + gridXOffset; testClip._y = (testY * 50) + gridYOffset; moves++; movesTextBox.text = moves; if (testClip.typeOfBlock == 4) { trace("solvedX = " + solvedX); trace("testX = " + testX); if ((testX == solvedX) && (testY == solvedY)) { trace("level solved"); gameState = "level solved"; } else { gameState = "wait for users click"; } } else { gameState = "wait for users click"; } } }; gameLoop = function () { gameStateTextBox.text = gameState; switch (gameState) { case "wait for users click" : break; case "quit game" : gameState = "null"; gotoAndPlay (30); break; case "quit level" : showWord("restart", "slide zoom 3", 335, 240); blockHolder.alphaTo(0, 1, "easeInSine"); gameState = "quit level wait"; qlw = 60; break; case "quit level wait" : qlw--; if (qlw < 1) { blockHolder.alphaTo(100, 0.5, "easeOutSine", 0.5); gameState = "setup level"; } break; case "user is dragging" : testBlocksMove(); break; case "level solved" : if (levelsUnlocked <= (level + 1)) { trace("level up"); levelsUnlocked = level + 1; storage.data.levelsUnlocked = levelsUnlocked; storage.flush(); } trace("trace(storage.data.levelsUnlocked) = " + storage.data.levelsUnlocked); testClip.slideTo(((solvedX * 50) + gridXOffset) + 100, (solvedY * 50) + gridYOffset, 1, "", 0.5); currentLevelhigh = Number(playerScoreArray[level - 1]); if (currentLevelhigh == undefined) { currentLevelhigh = 0; } bestLevelScoreTextBox.text = Number(playerScoreArray[level - 1]); trace("levelBonus = " + levelBonus); if (levelBonus < 0) { showWord("no Bonus", "slide down bounce", 320, 150); } else if (levelBonus > currentLevelhigh) { playerScoreArray[level - 1] = levelBonus; bestLevelScoreTextBox.text = levelBonus; addUpScore(); scoreTextBox.text = score; } trace("SCORE = " + score); scoreTextBox.text = score; trace(levelPoints); trace(gameState); lcw = 90; gameState = "level complete wait"; break; case "level complete wait" : progressSaved.alphaTo(100, 1, "", 4, function () { this.alphaTo(0, 2, "", 4); }); lcw--; if ((Math.random() * 10) < 0.9) { launchFireWorks((Math.random() * 400) + 70, (Math.random() * 200) + 60, Math.floor(Math.random() * 3) + 1); } if (lcw < 1) { level++; if (level > 20) { gameState = "game complete"; } else { gameState = "setup level"; } } break; case "setup" : setup(); gameState = "setup level"; break; case "setup level" : currentLevelhigh = Number(layerScoreArray[level - 1]); bestLevelScoreTextBox.text = currentLevelhigh; trace("currentLevelhigh = " + currentLevelhigh); levelBonus = 1000; bonusTextBox.text = levelBonus; addUpScore(); if (Number(playerScoreArray[level - 1]) == undefined) { bestLevelScoreTextBox.text = "0"; } else { bestLevelScoreTextBox.text = Number(playerScoreArray[level - 1]); } setupLevel(); blockHolder.alphaTo(100, 0.5, "easeOutSine", 0.5); slw = 60; showWord("level " + level, "slide down bounce", 320, 100, 1); gameState = "setup level wait"; break; case "setup level wait" : slw--; if (slw < 1) { gameState = "wait for users click"; } break; case "game complete" : showWord("g r e a t!", "slide down bounce", 320, 100); gcw = 60; gameState = "game complete wait"; break; case "game complete wait" : gcw--; if (gcw >= 1) { break; } gameState = "wait"; gotoAndPlay (21); } }; gameTimeDelay = 32; theGameLoop = setInterval(this, "gameLoop", gameTimeDelay); gameState = "setup"; stop();
Frame 21
_quality = "high"; if (score > yourhigh) { yourhigh = score; storage.data.myhighscore = score; } this.playBtn.onRelease = function () { playSound("mouseDown"); removeMovieClip(highHolder); gotoAndPlay (11); }; this.playBtn.onRollOver = function () { playSound("mouseOver"); }; addUpScore(); if (score > 1000) { t = this.createEmptyMovieClip("highHolder", 1000); loadMovie ("http://www.terrypaton.com/highscores/highscoreSubmit.swf", highHolder); t._x = 116; t._y = 320; } if (yourhigh != undefined) { yourHighestText = "YOUR HIGHEST SCORE: " + yourhigh; } else { yourHighestText = " "; } storage.flush(); kingClip._y = -100; kingClip.ySlideTo(68, 1, "easeOutElastic"); num = 30; kingClip.onEnterFrame = function () { num--; if (num < 0) { launchFireWorks(320, 31 + (Math.random() * 40), Math.floor(Math.random() * 3) + 1); num = 30 + (Math.random() * 40); } };
Frame 29
stop();
Frame 30
_quality = "HIGH"; this.playBtn.onRelease = function () { gotoAndPlay (11); playSound("mouseDown"); }; this.playBtn.onRollOver = function () { playSound("mouseOver"); }; this.levelsUnlockedDisplayClip._x = -100; this.levelsUnlockedDisplayClip.levelUnlockedTextBox.text = levelsUnlocked; trace("levels unlocked = " + levelsUnlocked); if (levelsUnlocked > 1) { this.levelsUnlockedDisplayClip.xSlideTo(12, 1, "", 1); this.highScoreClip.xSlideTo(12, 1, "", 1); } addUpScore(); trace("your score = " + score); trace("your high = " + yourhigh); if (score > 800) { t = this.createEmptyMovieClip("highHolder", 1000); loadMovie ("http://www.terrypaton.com/highscores/highscoreSubmit.swf", highHolder); t._x = 116; t._y = 320; } if (yourhigh != undefined) { scoreTextBox.text = yourhigh; } else { scoreTextBox.text = "0"; }
Frame 33
stop();
Symbol 4 MovieClip [fireWorksParticle] Frame 1
#initclip 10 Object.registerClass("fireWorksParticle", fireWorksClass); #endinitclip
Symbol 146 MovieClip [__Packages.MochiAd] Frame 0
class MochiAd { function MochiAd () { } static function getVersion() { return("2.3"); } static function showPreGameAd(options) { var _local27 = {clip:_root, ad_timeout:3000, fadeout_time:250, regpt:"o", method:"showPreloaderAd", color:16747008, background:16777161, outline:13994812, ad_started:function () { this.clip.stop(); }, ad_finished:function () { this.clip.play(); }, ad_failed:function () { trace("[MochAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_loaded:function (width, height) { }}; options = _parseOptions(options, _local27); if ("5cc6f7dfb67f2f08341c831480f7c2a7".length == 0) { options.ad_started(); options.ad_finished(); return(undefined); } var clip = options.clip; var _local23 = 11000; var _local26 = options.ad_timeout; delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!load(options)) { options.ad_failed(); options.ad_finished(); return(undefined); } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var _local14 = _getRes(options); var _local4 = _local14[0]; var _local13 = _local14[1]; mc._x = _local4 * 0.5; mc._y = _local13 * 0.5; var chk = mc.createEmptyMovieClip("_mochiad_wait", 3); chk._x = _local4 * -0.5; chk._y = _local13 * -0.5; var _local7 = chk.createEmptyMovieClip("_mochiad_bar", 4); _local7._x = 10; _local7._y = _local13 - 20; var _local22 = options.color; delete options.color; var _local19 = options.background; delete options.background; var _local24 = options.outline; delete options.outline; var _local5 = _local7.createEmptyMovieClip("_outline", 1); _local5.beginFill(_local19); _local5.moveTo(0, 0); _local5.lineTo(_local4 - 20, 0); _local5.lineTo(_local4 - 20, 10); _local5.lineTo(0, 10); _local5.lineTo(0, 0); _local5.endFill(); var _local3 = _local7.createEmptyMovieClip("_inside", 2); _local3.beginFill(_local22); _local3.moveTo(0, 0); _local3.lineTo(_local4 - 20, 0); _local3.lineTo(_local4 - 20, 10); _local3.lineTo(0, 10); _local3.lineTo(0, 0); _local3.endFill(); _local3._xscale = 0; var _local6 = _local7.createEmptyMovieClip("_outline", 3); _local6.lineStyle(0, _local24, 100); _local6.moveTo(0, 0); _local6.lineTo(_local4 - 20, 0); _local6.lineTo(_local4 - 20, 10); _local6.lineTo(0, 10); _local6.lineTo(0, 0); chk.ad_msec = _local23; chk.ad_timeout = _local26; chk.started = getTimer(); chk.showing = false; chk.last_pcnt = 0; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)); if (_local2 > 0) { this._parent._alpha = _local2; } else { var _local3 = this._parent._parent; MochiAd.unload(_local3); delete this.onEnterFrame; } }; mc.lc.adLoaded = options.ad_loaded; mc.lc.adjustProgress = function (msec) { var _local2 = this.mc._mochiad_wait; _local2.server_control = true; _local2.started = getTimer(); _local2.ad_msec = msec; }; chk.onEnterFrame = function () { var _local6 = this._parent._parent; var _local12 = this._parent._mochiad_ctr; var _local5 = getTimer() - this.started; var _local3 = false; var _local4 = _local6.getBytesTotal(); var _local8 = _local6.getBytesLoaded(); var _local10 = (100 * _local8) / _local4; var _local11 = (100 * _local5) / chk.ad_msec; var _local9 = this._mochiad_bar._inside; var _local2 = Math.min(100, Math.min(_local10 || 0, _local11)); _local2 = Math.max(this.last_pcnt, _local2); this.last_pcnt = _local2; _local9._xscale = _local2; if (!chk.showing) { var _local7 = _local12.getBytesTotal(); if ((_local7 > 0) || (typeof(_local7) == "undefined")) { chk.showing = true; chk.started = getTimer(); } else if (_local5 > chk.ad_timeout) { options.ad_failed(); _local3 = true; } } if (_local5 > chk.ad_msec) { _local3 = true; } if (((_local4 > 0) && (_local8 >= _local4)) && (_local3)) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = chk.fadeFunction; } } }; } static function showInterLevelAd(options) { var _local13 = {clip:_root, ad_timeout:2000, fadeout_time:250, regpt:"o", method:"showTimedAd", ad_started:function () { this.clip.stop(); }, ad_finished:function () { this.clip.play(); }, ad_failed:function () { trace("[MochAd] Couldn't load an ad, make sure that your game's local security sandbox is configured for Access Network Only and that you are not using ad blocking software"); }, ad_loaded:function (width, height) { }}; options = _parseOptions(options, _local13); var clip = options.clip; var _local10 = 11000; var _local12 = options.ad_timeout; delete options.ad_timeout; var fadeout_time = options.fadeout_time; delete options.fadeout_time; if (!load(options)) { options.ad_failed(); options.ad_finished(); return(undefined); } options.ad_started(); var mc = clip._mochiad; mc.onUnload = function () { options.ad_finished(); }; var _local5 = _getRes(options); var _local14 = _local5[0]; var _local11 = _local5[1]; mc._x = _local14 * 0.5; mc._y = _local11 * 0.5; var chk = mc.createEmptyMovieClip("_mochiad_wait", 3); chk.ad_msec = _local10; chk.ad_timeout = _local12; chk.started = getTimer(); chk.showing = false; chk.fadeout_time = fadeout_time; chk.fadeFunction = function () { var _local2 = 100 * (1 - ((getTimer() - this.fadeout_start) / this.fadeout_time)); if (_local2 > 0) { this._parent._alpha = _local2; } else { var _local3 = this._parent._parent; MochiAd.unload(_local3); delete this.onEnterFrame; } }; mc.lc.adLoaded = options.ad_loaded; mc.lc.adjustProgress = function (msec) { var _local2 = this.mc._mochiad_wait; _local2.server_control = true; _local2.started = getTimer(); _local2.ad_msec = msec - 250; }; chk.onEnterFrame = function () { var _local5 = this._parent._mochiad_ctr; var _local4 = getTimer() - this.started; var _local2 = false; if (!chk.showing) { var _local3 = _local5.getBytesTotal(); if ((_local3 > 0) || (typeof(_local3) == "undefined")) { chk.showing = true; chk.started = getTimer(); } else if (_local4 > chk.ad_timeout) { options.ad_failed(); _local2 = true; } } if (_local4 > chk.ad_msec) { _local2 = true; } if (_local2) { if (this.server_control) { delete this.onEnterFrame; } else { this.fadeout_start = getTimer(); this.onEnterFrame = this.fadeFunction; } } }; } static function showTimedAd(options) { trace("[MochiAd] DEPRECATED: showTimedAd was renamed to showInterLevelAd in 2.0"); showInterLevelAd(options); } static function showPreloaderAd(options) { trace("[MochiAd] DEPRECATED: showPreloaderAd was renamed to showPreGameAd in 2.0"); showPreGameAd(options); } static function _allowDomains(server) { var _local1 = server.split("/")[2].split(":")[0]; if (System.security) { if (System.security.allowDomain) { System.security.allowDomain("*"); System.security.allowDomain(_local1); } if (System.security.allowInsecureDomain) { System.security.allowInsecureDomain("*"); System.security.allowInsecureDomain(_local1); } } return(_local1); } static function _loadCommunicator(options) { var _local26 = {clip:_root, com_server:"http://x.mochiads.com/com/1/", method:"loadCommunicator", depth:10337, id:"_UNKNOWN_"}; options = _parseOptions(options, _local26); options.swfv = options.clip.getSWFVersion() || 6; options.mav = getVersion(); var _local18 = options.clip; var _local20 = "_mochiad_com_" + options.id; if (!_isNetworkAvailable()) { return(null); } if (_local18[_local20]) { return(_local18[_local20].lc); } var _local21 = options.com_server + options.id; _allowDomains(_local21); delete options.id; delete options.com_server; var _local25 = options.depth; delete options.depth; var _local17 = _local18.createEmptyMovieClip(_local20, _local25); var _local11 = _local17.createEmptyMovieClip("_mochiad_com", 1); for (var _local15 in options) { _local11[_local15] = options[_local15]; } var _local6 = new LocalConnection(); var _local16 = ["", Math.floor(new Date().getTime()), random(999999)].join("_"); _local6.mc = _local17; _local6.name = _local16; _local6.allowDomain = function (d) { return(true); }; _local6.allowInsecureDomain = _local6.allowDomain; _local6.connect(_local16); _local17.lc = _local6; _local11.lc = _local16; _local6._id = 0; _local6._queue = []; _local6.rpcResult = function (cb_arg) { var _local8 = parseInt(cb_arg); var _local4 = this._callbacks[_local8]; if (!_local4) { return(undefined); } delete this._callbacks[_local8]; var _local5 = []; var _local3 = 2; while (_local3 < _local4.length) { _local5.push(_local4[_local3]); _local3++; } _local3 = 1; while (_local3 < arguments.length) { _local5.push(arguments[_local3]); _local3++; } var _local6 = _local4[1]; var _local7 = _local4[0]; if (_local7 && (typeof(_local6) == "string")) { _local6 = _local7[_local6]; } if (_local6) { _local6.apply(_local7, _local5); } }; _local6._didConnect = function (endpoint) { this._endpoint = endpoint; var _local4 = this._queue; delete this._queue; var _local5 = this.doSend; var _local2 = 0; while (_local2 < _local4.length) { var _local3 = _local4[_local2]; _local5.apply(this, _local3); _local2++; } }; _local6.doSend = function (args, cbobj, cbfn) { if (this._endpoint == null) { var _local4 = []; var _local3 = 0; while (_local3 < arguments.length) { _local4.push(arguments[_local3]); _local3++; } this._queue.push(_local4); return(undefined); } this._id = this._id + 1; var _local5 = this._id; if ((cbfn === undefined) || (cbfn === null)) { cbfn = cbobj; } this._callbacks[_local5] = [cbobj, cbfn]; var _local7 = new LocalConnection(); var _local9 = _local7.send(this._endpoint, "rpc", _local5, args); }; _local6._callbacks = {}; _local6._callbacks[0] = [_local6, "_didConnect"]; _local11.st = getTimer(); _local11.loadMovie(_local21 + ".swf", "POST"); return(_local6); } static function fetchHighScores(options, callbackObj, callbackMethod) { var _local1 = _loadCommunicator({id:options.id}); if (!_local1) { return(false); } var _local4 = ["fetchHighScores", options]; _local1.doSend(["fetchHighScores", options], callbackObj, callbackMethod); return(true); } static function sendHighScore(options, callbackObj, callbackMethod) { var _local1 = _loadCommunicator({id:options.id}); if (!_local1) { return(false); } var _local4 = ["sendHighScore", options]; _local1.doSend(["sendHighScore", options], callbackObj, callbackMethod); return(true); } static function load(options) { var _local13 = {clip:_root, server:"http://x.mochiads.com/srv/1/", method:"load", depth:10333, id:"_UNKNOWN_"}; options = _parseOptions(options, _local13); options.swfv = options.clip.getSWFVersion() || 6; options.mav = getVersion(); var _local9 = options.clip; if (!_isNetworkAvailable()) { return(null); } if (_local9._mochiad_loaded) { return(null); } var _local12 = options.depth; delete options.depth; var _local6 = _local9.createEmptyMovieClip("_mochiad", _local12); var _local11 = _getRes(options); options.res = (_local11[0] + "x") + _local11[1]; options.server = options.server + options.id; delete options.id; _local9._mochiad_loaded = true; var _local4 = _local6.createEmptyMovieClip("_mochiad_ctr", 1); for (var _local7 in options) { _local4[_local7] = options[_local7]; } var _local10 = _local4.server; delete _local4.server; var _local14 = _allowDomains(_local10); _local6.onEnterFrame = function () { if (this._mochiad_ctr._url != this._url) { this.onEnterFrame = function () { if (!this._mochiad_ctr) { delete this.onEnterFrame; MochiAd.unload(this._parent); } }; } }; var _local5 = new LocalConnection(); var _local8 = ["", Math.floor(new Date().getTime()), random(999999)].join("_"); _local5.mc = _local6; _local5.name = _local8; _local5.hostname = _local14; _local5.allowDomain = function (d) { return(true); }; _local5.allowInsecureDomain = _local5.allowDomain; _local5.connect(_local8); _local6.lc = _local5; _local4.lc = _local8; _local4.st = getTimer(); _local4.loadMovie(_local10 + ".swf", "POST"); return(_local6); } static function unload(clip) { if (typeof(clip) == "undefined") { clip = _root; } if (clip.clip && (clip.clip._mochiad)) { clip = clip.clip; } if (!clip._mochiad) { return(false); } clip._mochiad.removeMovieClip(); delete clip._mochiad_loaded; delete clip._mochiad; return(true); } static function _isNetworkAvailable() { if (System.security) { var _local1 = System.security; if (_local1.sandboxType == "localWithFile") { return(false); } } return(true); } static function _getRes(options) { var _local3 = options.clip.getBounds(); var _local2 = 0; var _local1 = 0; if (typeof(options.res) != "undefined") { var _local4 = options.res.split("x"); _local2 = parseFloat(_local4[0]); _local1 = parseFloat(_local4[1]); } else { _local2 = _local3.xMax - _local3.xMin; _local1 = _local3.yMax - _local3.yMin; } if ((_local2 == 0) || (_local1 == 0)) { _local2 = Stage.width; _local1 = Stage.height; } return([_local2, _local1]); } static function _parseOptions(options, defaults) { var _local4 = {}; for (var _local8 in defaults) { _local4[_local8] = defaults[_local8]; } if (options) { for (var _local8 in options) { _local4[_local8] = options[_local8]; } } if (_root.mochiad_options) { var _local5 = _root.mochiad_options.split("&"); var _local2 = 0; while (_local2 < _local5.length) { var _local3 = _local5[_local2].split("="); _local4[unescape(_local3[0])] = unescape(_local3[1]); _local2++; } } if (_local4.id == "test") { trace("[MochiAd] WARNING: Using the MochiAds test identifier, make sure to use the code from your dashboard, not this example!"); } return(_local4); } }
Symbol 147 MovieClip [__Packages.fireWorksClass] Frame 0
class fireWorksClass extends MovieClip { var x, _x, y, _y, xCenter, yCenter, depth, fall, _rotation, fxtype, speed, _alpha, removeMovieClip, temprot, rot; function fireWorksClass () { super(); } function onLoad() { x = _x; y = _y; xCenter = _x; yCenter = _y; depth = 1; fall = Math.random(0.2) + 0.5; _rotation = random(360); if (fxtype == 1) { speed = random(5) + 4; } if (fxtype == 2) { speed = random(9) + 4; } if (fxtype == 3) { speed = random(5) + 4; } } function onEnterFrame() { depth = depth + speed; speed = speed * 0.95; if (speed < 3) { yCenter = yCenter + fall; fall = fall * 1.1; _alpha = _alpha - 3; if (_alpha < 10) { removeMovieClip(); } } temprot = (rot / 180) * Math.PI; x = xCenter + (depth * Math.sin(temprot)); y = yCenter + (depth * Math.cos(temprot)); _x = x; _y = y; if ((((x < 0) || (x > 640)) || (y < 0)) || (y > 480)) { removeMovieClip(); } } }
Symbol 148 MovieClip [__Packages.letterClass] Frame 0
class letterClass extends MovieClip { var centerY, radiusY, speed, y, _y, x, _x, angle; function letterClass () { super(); } function onLoad() { centerY = 48; radiusY = 5; speed = 0.05; y = _y; x = _x; } function onEnterFrame() { if (angle != undefined) { y = centerY + (Math.sin(angle) * radiusY); angle = angle + speed; _x = x; _y = y; } } }
Symbol 149 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon] Frame 0
class mx.transitions.OnEnterFrameBeacon { function OnEnterFrameBeacon () { } static function init() { var _local4 = _global.MovieClip; if (!_root.__OnEnterFrameBeacon) { mx.transitions.BroadcasterMX.initialize(_local4); var _local3 = _root.createEmptyMovieClip("__OnEnterFrameBeacon", 9876); _local3.onEnterFrame = function () { _global.MovieClip.broadcastMessage("onEnterFrame"); }; } } static var version = "1.1.0.52"; }
Symbol 150 MovieClip [__Packages.mx.transitions.BroadcasterMX] Frame 0
class mx.transitions.BroadcasterMX { var _listeners; function BroadcasterMX () { } static function initialize(o, dontCreateArray) { if (o.broadcastMessage != undefined) { delete o.broadcastMessage; } o.addListener = mx.transitions.BroadcasterMX.prototype.addListener; o.removeListener = mx.transitions.BroadcasterMX.prototype.removeListener; if (!dontCreateArray) { o._listeners = new Array(); } } function addListener(o) { removeListener(o); if (broadcastMessage == undefined) { broadcastMessage = mx.transitions.BroadcasterMX.prototype.broadcastMessage; } return(_listeners.push(o)); } function removeListener(o) { var _local2 = _listeners; var _local3 = _local2.length; while (_local3--) { if (_local2[_local3] == o) { _local2.splice(_local3, 1); if (!_local2.length) { broadcastMessage = undefined; } return(true); } } return(false); } function broadcastMessage() { var _local5 = String(arguments.shift()); var _local4 = _listeners.concat(); var _local6 = _local4.length; var _local3 = 0; while (_local3 < _local6) { _local4[_local3][_local5].apply(_local4[_local3], arguments); _local3++; } } static var version = "1.1.0.52"; }
Symbol 151 MovieClip [__Packages.mx.transitions.Tween] Frame 0
class mx.transitions.Tween { var obj, prop, begin, useSeconds, _listeners, addListener, prevTime, _time, looping, _duration, broadcastMessage, isPlaying, _fps, prevPos, _pos, change, _intervalID, _startTime; function Tween (obj, prop, func, begin, finish, duration, useSeconds) { mx.transitions.OnEnterFrameBeacon.init(); if (!arguments.length) { return; } this.obj = obj; this.prop = prop; this.begin = begin; position = (begin); this.duration = (duration); this.useSeconds = useSeconds; if (func) { this.func = func; } this.finish = (finish); _listeners = []; addListener(this); start(); } function set time(t) { prevTime = _time; if (t > duration) { if (looping) { rewind(t - _duration); update(); broadcastMessage("onMotionLooped", this); } else { if (useSeconds) { _time = _duration; update(); } stop(); broadcastMessage("onMotionFinished", this); } } else if (t < 0) { rewind(); update(); } else { _time = t; update(); } //return(time); } function get time() { return(_time); } function set duration(d) { _duration = (((d == null) || (d <= 0)) ? (_global.Infinity) : (d)); //return(duration); } function get duration() { return(_duration); } function set FPS(fps) { var _local2 = isPlaying; stopEnterFrame(); _fps = fps; if (_local2) { startEnterFrame(); } //return(FPS); } function get FPS() { return(_fps); } function set position(p) { setPosition(p); //return(position); } function setPosition(p) { prevPos = _pos; obj[prop] = (_pos = p); broadcastMessage("onMotionChanged", this, _pos); updateAfterEvent(); } function get position() { return(getPosition()); } function getPosition(t) { if (t == undefined) { t = _time; } return(func(t, begin, change, _duration)); } function set finish(f) { change = f - begin; //return(finish); } function get finish() { return(begin + change); } function continueTo(finish, duration) { begin = position; this.finish = (finish); if (duration != undefined) { this.duration = (duration); } start(); } function yoyo() { continueTo(begin, time); } function startEnterFrame() { if (_fps == undefined) { _global.MovieClip.addListener(this); } else { _intervalID = setInterval(this, "onEnterFrame", 1000 / _fps); } isPlaying = true; } function stopEnterFrame() { if (_fps == undefined) { _global.MovieClip.removeListener(this); } else { clearInterval(_intervalID); } isPlaying = false; } function start() { rewind(); startEnterFrame(); broadcastMessage("onMotionStarted", this); } function stop() { stopEnterFrame(); broadcastMessage("onMotionStopped", this); } function resume() { fixTime(); startEnterFrame(); broadcastMessage("onMotionResumed", this); } function rewind(t) { _time = ((t == undefined) ? 0 : (t)); fixTime(); update(); } function fforward() { time = (_duration); fixTime(); } function nextFrame() { if (useSeconds) { time = ((getTimer() - _startTime) / 1000); } else { time = (_time + 1); } } function onEnterFrame() { nextFrame(); } function prevFrame() { if (!useSeconds) { time = (_time - 1); } } function toString() { return("[Tween]"); } function fixTime() { if (useSeconds) { _startTime = getTimer() - (_time * 1000); } } function update() { position = (getPosition(_time)); } static var version = "1.1.0.52"; static var __initBeacon = mx.transitions.OnEnterFrameBeacon.init(); static var __initBroadcaster = mx.transitions.BroadcasterMX.initialize(mx.transitions.Tween.prototype, true); function func(t, b, c, d) { return(((c * t) / d) + b); } }
Symbol 152 MovieClip [__Packages.mx.transitions.easing.Strong] Frame 0
class mx.transitions.easing.Strong { function Strong () { } static function easeIn(t, b, c, d) { t = t / d; return((((((c * t) * t) * t) * t) * t) + b); } static function easeOut(t, b, c, d) { t = (t / d) - 1; return((c * (((((t * t) * t) * t) * t) + 1)) + b); } static function easeInOut(t, b, c, d) { t = t / (d / 2); if (t < 1) { return(((((((c / 2) * t) * t) * t) * t) * t) + b); } t = t - 2; return(((c / 2) * (((((t * t) * t) * t) * t) + 2)) + b); } static var version = "1.1.0.52"; }
Symbol 153 MovieClip [__Packages.mx.transitions.easing.Bounce] Frame 0
class mx.transitions.easing.Bounce { function Bounce () { } static function easeOut(t, b, c, d) { t = t / d; if (t < 0.363636363636364) { return((c * ((7.5625 * t) * t)) + b); } if (t < 0.727272727272727) { t = t - 0.545454545454545; return((c * (((7.5625 * t) * t) + 0.75)) + b); } if (t < 0.909090909090909) { t = t - 0.818181818181818; return((c * (((7.5625 * t) * t) + 0.9375)) + b); } t = t - 0.954545454545455; return((c * (((7.5625 * t) * t) + 0.984375)) + b); } static function easeIn(t, b, c, d) { return((c - easeOut(d - t, 0, c, d)) + b); } static function easeInOut(t, b, c, d) { if (t < (d / 2)) { return((easeIn(t * 2, 0, c, d) * 0.5) + b); } return(((easeOut((t * 2) - d, 0, c, d) * 0.5) + (c * 0.5)) + b); } static var version = "1.1.0.52"; }
Symbol 154 MovieClip [__Packages.lvlBtnClass] Frame 0
class lvlBtnClass extends MovieClip { var angle, bState, c; function lvlBtnClass () { super(); } function onLoad() { angle = 0; bState = false; c = 120; } function onEnterFrame() { if (bState) { } } }
Symbol 13 MovieClip [letter] Frame 1
#initclip 11 Object.registerClass("letter", letterClass); #endinitclip
Symbol 54 MovieClip Frame 1
stop();
Symbol 59 MovieClip Frame 1
_root.stop(); new mx.transitions.Tween(this.head, "_rotation", mx.transitions.easing.Bounce.easeOut, 0, 180, 0.7, true); new mx.transitions.Tween(this.head, "_y", mx.transitions.easing.Bounce.easeOut, this.head._y - 200, this.head._y, 1, true); new mx.transitions.Tween(this.head, "_x", mx.transitions.easing.Strong.easeOut, (Math.random() * 640) - 320, 0, 1, true); www._y = 500; www.ySlideTo(61.5, 1);
Symbol 59 MovieClip Frame 131
head.scaleTo(200, 0.5); head.alphaTo(0, 0.5); head.blurTo(20, 1);
Symbol 59 MovieClip Frame 141
_root.play();
Symbol 99 MovieClip Frame 1
this.onPress = function () { getURL ("http://www.terrypaton.com", "_blank"); }; this.onRollOver = function () { this.gotoAndStop(2); }; this.onRollOut = function () { this.gotoAndStop(1); }; this.stop();
Symbol 109 Button
on (rollOver) { this.bState = true; } on (rollOut) { this.bState = false; }
Symbol 115 MovieClip [lvlBtn] Frame 1
#initclip 12 Object.registerClass("lvlBtn", lvlBtnClass); #endinitclip

Library Items

Symbol 1 GraphicUsed by:4
Symbol 2 GraphicUsed by:4
Symbol 3 GraphicUsed by:4
Symbol 4 MovieClip [fireWorksParticle]Uses:1 2 3Used by:54
Symbol 5 FontUsed by:6 68 74 75 76 77 78 79 83 85 86 88 89 102 103 104 105 122 124 134 136 138 141 142 144 145
Symbol 6 EditableTextUses:5Used by:7
Symbol 7 MovieClip [showWordLetter]Uses:6Used by:54
Symbol 8 GraphicUsed by:9 116
Symbol 9 MovieClipUses:8Used by:Timeline
Symbol 146 MovieClip [__Packages.MochiAd]
Symbol 147 MovieClip [__Packages.fireWorksClass]
Symbol 148 MovieClip [__Packages.letterClass]
Symbol 149 MovieClip [__Packages.mx.transitions.OnEnterFrameBeacon]
Symbol 150 MovieClip [__Packages.mx.transitions.BroadcasterMX]
Symbol 151 MovieClip [__Packages.mx.transitions.Tween]
Symbol 152 MovieClip [__Packages.mx.transitions.easing.Strong]
Symbol 153 MovieClip [__Packages.mx.transitions.easing.Bounce]
Symbol 154 MovieClip [__Packages.lvlBtnClass]
Symbol 10 GraphicUsed by:21
Symbol 11 FontUsed by:12 23
Symbol 12 EditableTextUses:11Used by:13
Symbol 13 MovieClip [letter]Uses:12Used by:21
Symbol 14 FontUsed by:15 127 129 132 137
Symbol 15 TextUses:14Used by:21
Symbol 16 GraphicUsed by:17 106
Symbol 17 MovieClipUses:16Used by:21
Symbol 18 GraphicUsed by:20
Symbol 19 GraphicUsed by:20
Symbol 20 MovieClipUses:18 19Used by:21
Symbol 21 MovieClipUses:10 13 15 17 20Used by:Timeline
Symbol 22 GraphicUsed by:54
Symbol 23 EditableTextUses:11Used by:24
Symbol 24 MovieClip [points]Uses:23Used by:54
Symbol 25 GraphicUsed by:45
Symbol 26 GraphicUsed by:45
Symbol 27 GraphicUsed by:45
Symbol 28 GraphicUsed by:31
Symbol 29 GraphicUsed by:30
Symbol 30 MovieClipUses:29Used by:31
Symbol 31 MovieClipUses:28 30Used by:45 80  Timeline
Symbol 32 GraphicUsed by:45
Symbol 33 GraphicUsed by:45
Symbol 34 GraphicUsed by:45
Symbol 35 GraphicUsed by:45
Symbol 36 GraphicUsed by:45
Symbol 37 GraphicUsed by:45
Symbol 38 GraphicUsed by:45
Symbol 39 GraphicUsed by:45
Symbol 40 GraphicUsed by:45
Symbol 41 GraphicUsed by:45
Symbol 42 GraphicUsed by:45
Symbol 43 GraphicUsed by:45
Symbol 44 GraphicUsed by:45
Symbol 45 MovieClip [block]Uses:25 26 27 31 32 33 34 35 36 37 38 39 40 41 42 43 44Used by:54
Symbol 46 GraphicUsed by:47
Symbol 47 MovieClip [grid]Uses:46Used by:54
Symbol 48 GraphicUsed by:49
Symbol 49 MovieClip [solvedPosition]Uses:48Used by:54
Symbol 50 GraphicUsed by:51
Symbol 51 MovieClip [colourSchemeClip]Uses:50Used by:54
Symbol 52 Sound [mouseOver.wav]Used by:54
Symbol 53 Sound [mouseDown.wav]Used by:54
Symbol 54 MovieClipUses:22 24 7 4 45 47 49 51 52 53Used by:Timeline
Symbol 55 GraphicUsed by:56
Symbol 56 MovieClipUses:55Used by:59
Symbol 57 GraphicUsed by:58 59
Symbol 58 MovieClipUses:57Used by:59
Symbol 59 MovieClipUses:56 58 57 SS1Used by:Timeline
Symbol 60 GraphicUsed by:Timeline
Symbol 61 GraphicUsed by:62
Symbol 62 MovieClipUses:61Used by:Timeline
Symbol 63 GraphicUsed by:66
Symbol 64 FontUsed by:65 72 118 120 123 125 126 130 135 139 140 143
Symbol 65 EditableTextUses:64Used by:66
Symbol 66 MovieClipUses:63 65Used by:Timeline
Symbol 67 GraphicUsed by:71
Symbol 68 TextUses:5Used by:71
Symbol 69 GraphicUsed by:71
Symbol 70 GraphicUsed by:71
Symbol 71 ButtonUses:67 68 69 70Used by:Timeline
Symbol 72 EditableTextUses:64Used by:Timeline
Symbol 73 GraphicUsed by:80
Symbol 74 TextUses:5Used by:80
Symbol 75 TextUses:5Used by:80
Symbol 76 TextUses:5Used by:80
Symbol 77 TextUses:5Used by:80
Symbol 78 TextUses:5Used by:80
Symbol 79 TextUses:5Used by:80
Symbol 80 MovieClipUses:73 31 74 75 76 77 78 79Used by:Timeline
Symbol 81 FontUsed by:82
Symbol 82 TextUses:81Used by:84
Symbol 83 TextUses:5Used by:84
Symbol 84 MovieClipUses:82 83Used by:Timeline
Symbol 85 TextUses:5Used by:87
Symbol 86 EditableTextUses:5Used by:87
Symbol 87 MovieClipUses:85 86Used by:Timeline
Symbol 88 TextUses:5Used by:90
Symbol 89 EditableTextUses:5Used by:90
Symbol 90 MovieClipUses:88 89Used by:Timeline
Symbol 91 GraphicUsed by:92
Symbol 92 MovieClipUses:91Used by:99
Symbol 93 FontUsed by:94 95 96
Symbol 94 TextUses:93Used by:99
Symbol 95 TextUses:93Used by:99
Symbol 96 TextUses:93Used by:99
Symbol 97 GraphicUsed by:98
Symbol 98 MovieClipUses:97Used by:99
Symbol 99 MovieClipUses:92 94 95 96 98Used by:Timeline
Symbol 100 GraphicUsed by:101
Symbol 101 ButtonUses:100Used by:Timeline
Symbol 102 TextUses:5Used by:Timeline
Symbol 103 TextUses:5Used by:Timeline
Symbol 104 EditableTextUses:5Used by:Timeline
Symbol 105 TextUses:5Used by:Timeline
Symbol 106 MovieClipUses:16Used by:115
Symbol 107 GraphicUsed by:115
Symbol 108 GraphicUsed by:109
Symbol 109 ButtonUses:108Used by:115
Symbol 110 FontUsed by:111 114
Symbol 111 EditableTextUses:110Used by:115
Symbol 112 GraphicUsed by:113
Symbol 113 ButtonUses:112Used by:115
Symbol 114 EditableTextUses:110Used by:115
Symbol 115 MovieClip [lvlBtn]Uses:106 107 109 111 113 114Used by:Timeline
Symbol 116 MovieClipUses:8Used by:Timeline
Symbol 117 GraphicUsed by:128 131  Timeline
Symbol 118 EditableTextUses:64Used by:119
Symbol 119 MovieClipUses:118Used by:Timeline
Symbol 120 EditableTextUses:64Used by:121
Symbol 121 MovieClipUses:120Used by:Timeline
Symbol 122 EditableTextUses:5Used by:Timeline
Symbol 123 TextUses:64Used by:Timeline
Symbol 124 EditableTextUses:5Used by:Timeline
Symbol 125 TextUses:64Used by:Timeline
Symbol 126 TextUses:64Used by:Timeline
Symbol 127 TextUses:14Used by:128
Symbol 128 MovieClipUses:117 127Used by:Timeline
Symbol 129 TextUses:14Used by:131
Symbol 130 TextUses:64Used by:131
Symbol 131 MovieClipUses:117 129 130Used by:Timeline
Symbol 132 TextUses:14Used by:133
Symbol 133 MovieClipUses:132Used by:Timeline
Symbol 134 EditableTextUses:5Used by:Timeline
Symbol 135 TextUses:64Used by:Timeline
Symbol 136 EditableTextUses:5Used by:Timeline
Symbol 137 TextUses:14Used by:Timeline
Symbol 138 EditableTextUses:5Used by:Timeline
Symbol 139 TextUses:64Used by:Timeline
Symbol 140 TextUses:64Used by:Timeline
Symbol 141 TextUses:5Used by:Timeline
Symbol 142 TextUses:5Used by:Timeline
Symbol 143 TextUses:64Used by:Timeline
Symbol 144 EditableTextUses:5Used by:Timeline
Symbol 145 TextUses:5Used by:Timeline
Streaming Sound 1Used by:Symbol 59 MovieClip

Instance Names

"loadingClip"Frame 3Symbol 21 MovieClip
"backGround"Frame 7Symbol 62 MovieClip
"gridHolder"Frame 7Symbol 66 MovieClip
"playBtn"Frame 7Symbol 71 Button
"howToPlayClip"Frame 7Symbol 80 MovieClip
"mouseIcon"Frame 7Symbol 84 MovieClip
"levelsUnlockedDisplayClip"Frame 7Symbol 87 MovieClip
"highScoreClip"Frame 7Symbol 90 MovieClip
"helpBtn"Frame 7Symbol 101 Button
"backGround"Frame 11Symbol 62 MovieClip
"gridHolder"Frame 11Symbol 66 MovieClip
"levelTexBox"Frame 11Symbol 104 EditableText
"backGround"Frame 20Symbol 62 MovieClip
"gridHolder"Frame 20Symbol 66 MovieClip
"blockHolder"Frame 20Symbol 119 MovieClip
"miscHolder"Frame 20Symbol 121 MovieClip
"movesTextBox"Frame 20Symbol 122 EditableText
"levelTextBox"Frame 20Symbol 124 EditableText
"restartLevelBtnClip"Frame 20Symbol 128 MovieClip
"menuBtnClip"Frame 20Symbol 131 MovieClip
"progressSaved"Frame 20Symbol 133 MovieClip
"bonusTextBox"Frame 20Symbol 134 EditableText
"scoreTextBox"Frame 20Symbol 136 EditableText
"bestLevelScoreTextBox"Frame 20Symbol 138 EditableText
"backGround"Frame 21Symbol 62 MovieClip
"gridHolder"Frame 21Symbol 66 MovieClip
"kingClip"Frame 21Symbol 31 MovieClip
"playBtn"Frame 21Symbol 71 Button
"backGround"Frame 30Symbol 62 MovieClip
"gridHolder"Frame 30Symbol 66 MovieClip
"playBtn"Frame 30Symbol 71 Button
"levelsUnlockedDisplayClip"Frame 30Symbol 87 MovieClip
"scoreTextBox"Frame 30Symbol 144 EditableText
"textBox"Symbol 7 MovieClip [showWordLetter] Frame 1Symbol 6 EditableText
"Lvar"Symbol 13 MovieClip [letter] Frame 1Symbol 12 EditableText
"mask"Symbol 21 MovieClip Frame 1Symbol 17 MovieClip
"textBox"Symbol 24 MovieClip [points] Frame 1Symbol 23 EditableText
"head"Symbol 59 MovieClip Frame 1Symbol 56 MovieClip
"www"Symbol 59 MovieClip Frame 1Symbol 58 MovieClip
"levelUnlockedTextBox"Symbol 87 MovieClip Frame 1Symbol 86 EditableText
"scoreTextBox"Symbol 90 MovieClip Frame 1Symbol 89 EditableText
"unlockedMarker"Symbol 115 MovieClip [lvlBtn] Frame 1Symbol 106 MovieClip
"btn"Symbol 115 MovieClip [lvlBtn] Frame 1Symbol 109 Button
"ind"Symbol 115 MovieClip [lvlBtn] Frame 1Symbol 113 Button

Special Tags

FileAttributes (69)Timeline Frame 1Access network only, Metadata not present, AS1/AS2.
Protect (24)Timeline Frame 10 bytes ""
ExportAssets (56)Timeline Frame 1Symbol 4 as "fireWorksParticle"
ExportAssets (56)Timeline Frame 1Symbol 7 as "showWordLetter"
ExportAssets (56)Timeline Frame 1Symbol 146 as "__Packages.MochiAd"
ExportAssets (56)Timeline Frame 1Symbol 147 as "__Packages.fireWorksClass"
ExportAssets (56)Timeline Frame 1Symbol 148 as "__Packages.letterClass"
ExportAssets (56)Timeline Frame 1Symbol 149 as "__Packages.mx.transitions.OnEnterFrameBeacon"
ExportAssets (56)Timeline Frame 1Symbol 150 as "__Packages.mx.transitions.BroadcasterMX"
ExportAssets (56)Timeline Frame 1Symbol 151 as "__Packages.mx.transitions.Tween"
ExportAssets (56)Timeline Frame 1Symbol 152 as "__Packages.mx.transitions.easing.Strong"
ExportAssets (56)Timeline Frame 1Symbol 153 as "__Packages.mx.transitions.easing.Bounce"
ExportAssets (56)Timeline Frame 1Symbol 154 as "__Packages.lvlBtnClass"
ExportAssets (56)Timeline Frame 3Symbol 13 as "letter"
ExportAssets (56)Timeline Frame 4Symbol 24 as "points"
ExportAssets (56)Timeline Frame 4Symbol 45 as "block"
ExportAssets (56)Timeline Frame 4Symbol 47 as "grid"
ExportAssets (56)Timeline Frame 4Symbol 49 as "solvedPosition"
ExportAssets (56)Timeline Frame 4Symbol 51 as "colourSchemeClip"
ExportAssets (56)Timeline Frame 4Symbol 52 as "mouseOver.wav"
ExportAssets (56)Timeline Frame 4Symbol 53 as "mouseDown.wav"
ExportAssets (56)Timeline Frame 11Symbol 115 as "lvlBtn"
Tag 0x0FF (255)Timeline Frame 11 bytes "."

Dynamic Text Variables

_root.vNumSymbol 72 EditableText"vnum"
_root.yourhighSymbol 89 EditableText"-"
numSymbol 111 EditableText"50"
numSymbol 114 EditableText"50"
_root.yourhighSymbol 144 EditableText"-"




http://swfchan.com/10/48650/info.shtml
Created: 29/4 -2019 13:19:05 Last modified: 29/4 -2019 13:19:05 Server time: 16/05 -2024 20:05:00