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

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

ha-yha-.swf

This is the info page for
Flash #116939

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


Text
Click for more games...

Your score:

<p align="left"></p>

play again

tart

<p align="left"></p>

bring it
on!

Look out!

<p align="left"></p>

level:

<p align="left"></p>

score:

end score

<p align="center"></p>

ActionScript [AS3]

Section 1
//spriteButtons_2 (AdlibToolbar_fla.spriteButtons_2) package AdlibToolbar_fla { import flash.display.*; public dynamic class spriteButtons_2 extends MovieClip { public var btn_All:MovieClip; public var btn_FX:MovieClip; public var mc_IconHolder:MovieClip; } }//package AdlibToolbar_fla
Section 2
//Symbol1_5 (AdlibToolbar_fla.Symbol1_5) package AdlibToolbar_fla { import flash.display.*; public dynamic class Symbol1_5 extends MovieClip { public var mc_Icon:MovieClip; } }//package AdlibToolbar_fla
Section 3
//ColorShortcuts (caurina.transitions.properties.ColorShortcuts) package caurina.transitions.properties { import caurina.transitions.*; import flash.geom.*; import flash.filters.*; public class ColorShortcuts { private static var LUMINANCE_B:Number = 0.072169; private static var LUMINANCE_G:Number = 0.71516; private static var LUMINANCE_R:Number = 0.212671; public function ColorShortcuts(){ trace("This is an static class and should not be instantiated."); } public static function _color_splitter(_arg1, _arg2:Array):Array{ var _local3:Array; _local3 = new Array(); if (_arg1 == null){ _local3.push({name:"_color_redMultiplier", value:1}); _local3.push({name:"_color_redOffset", value:0}); _local3.push({name:"_color_greenMultiplier", value:1}); _local3.push({name:"_color_greenOffset", value:0}); _local3.push({name:"_color_blueMultiplier", value:1}); _local3.push({name:"_color_blueOffset", value:0}); } else { _local3.push({name:"_color_redMultiplier", value:0}); _local3.push({name:"_color_redOffset", value:AuxFunctions.numberToR(_arg1)}); _local3.push({name:"_color_greenMultiplier", value:0}); _local3.push({name:"_color_greenOffset", value:AuxFunctions.numberToG(_arg1)}); _local3.push({name:"_color_blueMultiplier", value:0}); _local3.push({name:"_color_blueOffset", value:AuxFunctions.numberToB(_arg1)}); }; return (_local3); } public static function _contrast_set(_arg1:Object, _arg2:Number, _arg3:Array, _arg4:Object=null):void{ var _local5:Number; var _local6:Number; var _local7:ColorTransform; _local5 = (_arg2 + 1); _local6 = Math.round((_arg2 * -128)); _local7 = new ColorTransform(_local5, _local5, _local5, 1, _local6, _local6, _local6, 0); _arg1.transform.colorTransform = _local7; } public static function _brightness_get(_arg1:Object, _arg2:Array, _arg3:Object=null):Number{ var _local4:Boolean; var _local5:ColorTransform; var _local6:Number; var _local7:Number; _local4 = _arg2[0]; _local5 = _arg1.transform.colorTransform; _local6 = (1 - (((_local5.redMultiplier + _local5.greenMultiplier) + _local5.blueMultiplier) / 3)); _local7 = (((_local5.redOffset + _local5.greenOffset) + _local5.blueOffset) / 3); if (_local4){ return (((_local7 > 0)) ? (_local7 / 0xFF) : -(_local6)); //unresolved jump }; return ((_local7 / 100)); } public static function _saturation_get(_arg1:Object, _arg2:Array, _arg3:Object=null):Number{ var _local4:Array; var _local5:Boolean; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; _local4 = getObjectMatrix(_arg1); _local5 = _arg2[0]; _local6 = (_local5) ? (1 / 3) : LUMINANCE_R; _local7 = (_local5) ? (1 / 3) : LUMINANCE_G; _local8 = (_local5) ? (1 / 3) : LUMINANCE_B; _local9 = (((((_local4[0] - _local6) / (1 - _local6)) + ((_local4[6] - _local7) / (1 - _local7))) + ((_local4[12] - _local8) / (1 - _local8))) / 3); _local10 = (1 - (((((((_local4[1] / _local7) + (_local4[2] / _local8)) + (_local4[5] / _local6)) + (_local4[7] / _local8)) + (_local4[10] / _local6)) + (_local4[11] / _local7)) / 6)); return (((_local9 + _local10) / 2)); } public static function _oldColor_property_get(_arg1:Object, _arg2:Array, _arg3:Object=null):Number{ return ((_arg1.transform.colorTransform[_arg2[0]] * 100)); } public static function _brightness_set(_arg1:Object, _arg2:Number, _arg3:Array, _arg4:Object=null):void{ var _local5:Boolean; var _local6:Number; var _local7:Number; var _local8:ColorTransform; _local5 = _arg3[0]; if (_local5){ _local6 = (1 - Math.abs(_arg2)); _local7 = ((_arg2 > 0)) ? Math.round((_arg2 * 0xFF)) : 0; } else { _local6 = 1; _local7 = Math.round((_arg2 * 100)); }; _local8 = new ColorTransform(_local6, _local6, _local6, 1, _local7, _local7, _local7, 0); _arg1.transform.colorTransform = _local8; } public static function _saturation_set(_arg1:Object, _arg2:Number, _arg3:Array, _arg4:Object=null):void{ var _local5:Boolean; var _local6:Number; var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; var _local11:Number; var _local12:Number; var _local13:Number; var _local14:Array; _local5 = _arg3[0]; _local6 = (_local5) ? (1 / 3) : LUMINANCE_R; _local7 = (_local5) ? (1 / 3) : LUMINANCE_G; _local8 = (_local5) ? (1 / 3) : LUMINANCE_B; _local9 = _arg2; _local10 = (1 - _local9); _local11 = (_local6 * _local10); _local12 = (_local7 * _local10); _local13 = (_local8 * _local10); _local14 = [(_local11 + _local9), _local12, _local13, 0, 0, _local11, (_local12 + _local9), _local13, 0, 0, _local11, _local12, (_local13 + _local9), 0, 0, 0, 0, 0, 1, 0]; setObjectMatrix(_arg1, _local14); } private static function getObjectMatrix(_arg1:Object):Array{ var _local2:Number; _local2 = 0; while (_local2 < _arg1.filters.length) { if ((_arg1.filters[_local2] is ColorMatrixFilter)){ return (_arg1.filters[_local2].matrix.concat()); }; _local2++; }; return ([1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0]); } public static function getHueDistance(_arg1:Array, _arg2:Array):Number{ return (((Math.abs((_arg1[0] - _arg2[0])) + Math.abs((_arg1[1] - _arg2[1]))) + Math.abs((_arg1[2] - _arg2[2])))); } public static function _hue_set(_arg1:Object, _arg2:Number, _arg3:Array, _arg4:Object=null):void{ setObjectMatrix(_arg1, getHueMatrix(_arg2)); } public static function _hue_get(_arg1:Object, _arg2:Array, _arg3:Object=null):Number{ var _local4:Array; var _local5:Array; var _local6:Number; var _local7:Number; var _local8:Number; _local4 = getObjectMatrix(_arg1); _local5 = []; _local5[0] = {angle:-179.9, matrix:getHueMatrix(-179.9)}; _local5[1] = {angle:180, matrix:getHueMatrix(180)}; _local6 = 0; while (_local6 < _local5.length) { _local5[_local6].distance = getHueDistance(_local4, _local5[_local6].matrix); _local6++; }; _local7 = 15; _local6 = 0; while (_local6 < _local7) { if (_local5[0].distance < _local5[1].distance){ _local8 = 1; } else { _local8 = 0; }; _local5[_local8].angle = ((_local5[0].angle + _local5[1].angle) / 2); _local5[_local8].matrix = getHueMatrix(_local5[_local8].angle); _local5[_local8].distance = getHueDistance(_local4, _local5[_local8].matrix); _local6++; }; return (_local5[_local8].angle); } public static function getHueMatrix(_arg1:Number):Array{ var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:Number; var _local8:Array; _local2 = ((_arg1 * Math.PI) / 180); _local3 = LUMINANCE_R; _local4 = LUMINANCE_G; _local5 = LUMINANCE_B; _local6 = Math.cos(_local2); _local7 = Math.sin(_local2); _local8 = [((_local3 + (_local6 * (1 - _local3))) + (_local7 * -(_local3))), ((_local4 + (_local6 * -(_local4))) + (_local7 * -(_local4))), ((_local5 + (_local6 * -(_local5))) + (_local7 * (1 - _local5))), 0, 0, ((_local3 + (_local6 * -(_local3))) + (_local7 * 0.143)), ((_local4 + (_local6 * (1 - _local4))) + (_local7 * 0.14)), ((_local5 + (_local6 * -(_local5))) + (_local7 * -0.283)), 0, 0, ((_local3 + (_local6 * -(_local3))) + (_local7 * -((1 - _local3)))), ((_local4 + (_local6 * -(_local4))) + (_local7 * _local4)), ((_local5 + (_local6 * (1 - _local5))) + (_local7 * _local5)), 0, 0, 0, 0, 0, 1, 0]; return (_local8); } public static function _color_property_get(_arg1:Object, _arg2:Array, _arg3:Object=null):Number{ return (_arg1.transform.colorTransform[_arg2[0]]); } public static function init():void{ Tweener.registerSpecialProperty("_color_ra", _oldColor_property_get, _oldColor_property_set, ["redMultiplier"]); Tweener.registerSpecialProperty("_color_rb", _color_property_get, _color_property_set, ["redOffset"]); Tweener.registerSpecialProperty("_color_ga", _oldColor_property_get, _oldColor_property_set, ["greenMultiplier"]); Tweener.registerSpecialProperty("_color_gb", _color_property_get, _color_property_set, ["greenOffset"]); Tweener.registerSpecialProperty("_color_ba", _oldColor_property_get, _oldColor_property_set, ["blueMultiplier"]); Tweener.registerSpecialProperty("_color_bb", _color_property_get, _color_property_set, ["blueOffset"]); Tweener.registerSpecialProperty("_color_aa", _oldColor_property_get, _oldColor_property_set, ["alphaMultiplier"]); Tweener.registerSpecialProperty("_color_ab", _color_property_get, _color_property_set, ["alphaOffset"]); Tweener.registerSpecialProperty("_color_redMultiplier", _color_property_get, _color_property_set, ["redMultiplier"]); Tweener.registerSpecialProperty("_color_redOffset", _color_property_get, _color_property_set, ["redOffset"]); Tweener.registerSpecialProperty("_color_greenMultiplier", _color_property_get, _color_property_set, ["greenMultiplier"]); Tweener.registerSpecialProperty("_color_greenOffset", _color_property_get, _color_property_set, ["greenOffset"]); Tweener.registerSpecialProperty("_color_blueMultiplier", _color_property_get, _color_property_set, ["blueMultiplier"]); Tweener.registerSpecialProperty("_color_blueOffset", _color_property_get, _color_property_set, ["blueOffset"]); Tweener.registerSpecialProperty("_color_alphaMultiplier", _color_property_get, _color_property_set, ["alphaMultiplier"]); Tweener.registerSpecialProperty("_color_alphaOffset", _color_property_get, _color_property_set, ["alphaOffset"]); Tweener.registerSpecialPropertySplitter("_color", _color_splitter); Tweener.registerSpecialPropertySplitter("_colorTransform", _colorTransform_splitter); Tweener.registerSpecialProperty("_brightness", _brightness_get, _brightness_set, [false]); Tweener.registerSpecialProperty("_tintBrightness", _brightness_get, _brightness_set, [true]); Tweener.registerSpecialProperty("_contrast", _contrast_get, _contrast_set); Tweener.registerSpecialProperty("_hue", _hue_get, _hue_set); Tweener.registerSpecialProperty("_saturation", _saturation_get, _saturation_set, [false]); Tweener.registerSpecialProperty("_dumbSaturation", _saturation_get, _saturation_set, [true]); } private static function setObjectMatrix(_arg1:Object, _arg2:Array):void{ var _local3:Array; var _local4:Boolean; var _local5:Number; var _local6:ColorMatrixFilter; _local3 = _arg1.filters.concat(); _local4 = false; _local5 = 0; while (_local5 < _local3.length) { if ((_local3[_local5] is ColorMatrixFilter)){ _local3[_local5].matrix = _arg2.concat(); _local4 = true; }; _local5++; }; if (!_local4){ _local6 = new ColorMatrixFilter(_arg2); _local3[_local3.length] = _local6; }; _arg1.filters = _local3; } public static function _color_property_set(_arg1:Object, _arg2:Number, _arg3:Array, _arg4:Object=null):void{ var _local5:ColorTransform; _local5 = _arg1.transform.colorTransform; _local5[_arg3[0]] = _arg2; _arg1.transform.colorTransform = _local5; } public static function _oldColor_property_set(_arg1:Object, _arg2:Number, _arg3:Array, _arg4:Object=null):void{ var _local5:ColorTransform; _local5 = _arg1.transform.colorTransform; _local5[_arg3[0]] = (_arg2 / 100); _arg1.transform.colorTransform = _local5; } public static function _contrast_get(_arg1:Object, _arg2:Array, _arg3:Object=null):Number{ var _local4:ColorTransform; var _local5:Number; var _local6:Number; _local4 = _arg1.transform.colorTransform; _local5 = ((((_local4.redMultiplier + _local4.greenMultiplier) + _local4.blueMultiplier) / 3) - 1); _local6 = ((((_local4.redOffset + _local4.greenOffset) + _local4.blueOffset) / 3) / -128); return (((_local5 + _local6) / 2)); } public static function _colorTransform_splitter(_arg1:Object, _arg2:Array):Array{ var _local3:Array; _local3 = new Array(); if (_arg1 == null){ _local3.push({name:"_color_redMultiplier", value:1}); _local3.push({name:"_color_redOffset", value:0}); _local3.push({name:"_color_greenMultiplier", value:1}); _local3.push({name:"_color_greenOffset", value:0}); _local3.push({name:"_color_blueMultiplier", value:1}); _local3.push({name:"_color_blueOffset", value:0}); } else { _local3.push({name:"_color_redMultiplier", value:_arg1.redMultiplier}); _local3.push({name:"_color_redOffset", value:_arg1.redOffset}); _local3.push({name:"_color_blueMultiplier", value:_arg1.blueMultiplier}); _local3.push({name:"_color_blueOffset", value:_arg1.blueOffset}); _local3.push({name:"_color_greenMultiplier", value:_arg1.greenMultiplier}); _local3.push({name:"_color_greenOffset", value:_arg1.greenOffset}); _local3.push({name:"_color_alphaMultiplier", value:_arg1.alphaMultiplier}); _local3.push({name:"_color_alphaOffset", value:_arg1.alphaOffset}); }; return (_local3); } } }//package caurina.transitions.properties
Section 4
//DisplayShortcuts (caurina.transitions.properties.DisplayShortcuts) package caurina.transitions.properties { import caurina.transitions.*; import flash.geom.*; public class DisplayShortcuts { public function DisplayShortcuts(){ trace("This is an static class and should not be instantiated."); } public static function init():void{ Tweener.registerSpecialProperty("_frame", _frame_get, _frame_set); Tweener.registerSpecialProperty("_autoAlpha", _autoAlpha_get, _autoAlpha_set); Tweener.registerSpecialPropertySplitter("_scale", _scale_splitter); Tweener.registerSpecialPropertySplitter("_scrollRect", _scrollRect_splitter); Tweener.registerSpecialProperty("_scrollRect_x", _scrollRect_property_get, _scrollRect_property_set, ["x"]); Tweener.registerSpecialProperty("_scrollRect_y", _scrollRect_property_get, _scrollRect_property_set, ["y"]); Tweener.registerSpecialProperty("_scrollRect_left", _scrollRect_property_get, _scrollRect_property_set, ["left"]); Tweener.registerSpecialProperty("_scrollRect_right", _scrollRect_property_get, _scrollRect_property_set, ["right"]); Tweener.registerSpecialProperty("_scrollRect_top", _scrollRect_property_get, _scrollRect_property_set, ["top"]); Tweener.registerSpecialProperty("_scrollRect_bottom", _scrollRect_property_get, _scrollRect_property_set, ["bottom"]); Tweener.registerSpecialProperty("_scrollRect_width", _scrollRect_property_get, _scrollRect_property_set, ["width"]); Tweener.registerSpecialProperty("_scrollRect_height", _scrollRect_property_get, _scrollRect_property_set, ["height"]); } public static function _frame_set(_arg1:Object, _arg2:Number, _arg3:Array, _arg4:Object=null):void{ _arg1.gotoAndStop(Math.round(_arg2)); } public static function _autoAlpha_set(_arg1:Object, _arg2:Number, _arg3:Array, _arg4:Object=null):void{ _arg1.alpha = _arg2; _arg1.visible = (_arg2 > 0); } public static function _frame_get(_arg1:Object, _arg2:Array, _arg3:Object=null):Number{ return (_arg1.currentFrame); } public static function _scrollRect_splitter(_arg1:Rectangle, _arg2:Array, _arg3:Object=null):Array{ var _local4:Array; _local4 = new Array(); if (_arg1 == null){ _local4.push({name:"_scrollRect_x", value:0}); _local4.push({name:"_scrollRect_y", value:0}); _local4.push({name:"_scrollRect_width", value:100}); _local4.push({name:"_scrollRect_height", value:100}); } else { _local4.push({name:"_scrollRect_x", value:_arg1.x}); _local4.push({name:"_scrollRect_y", value:_arg1.y}); _local4.push({name:"_scrollRect_width", value:_arg1.width}); _local4.push({name:"_scrollRect_height", value:_arg1.height}); }; return (_local4); } public static function _autoAlpha_get(_arg1:Object, _arg2:Array, _arg3:Object=null):Number{ return (_arg1.alpha); } public static function _scrollRect_property_get(_arg1:Object, _arg2:Array, _arg3:Object=null):Number{ return (_arg1.scrollRect[_arg2[0]]); } public static function _scale_splitter(_arg1:Number, _arg2:Array):Array{ var _local3:Array; _local3 = new Array(); _local3.push({name:"scaleX", value:_arg1}); _local3.push({name:"scaleY", value:_arg1}); return (_local3); } public static function _scrollRect_property_set(_arg1:Object, _arg2:Number, _arg3:Array, _arg4:Object=null):void{ var _local5:Rectangle; _local5 = _arg1.scrollRect; _local5[_arg3[0]] = Math.round(_arg2); _arg1.scrollRect = _local5; } } }//package caurina.transitions.properties
Section 5
//FilterShortcuts (caurina.transitions.properties.FilterShortcuts) package caurina.transitions.properties { import caurina.transitions.*; import flash.geom.*; import flash.filters.*; import flash.display.*; public class FilterShortcuts { public function FilterShortcuts(){ trace("This is an static class and should not be instantiated."); } public static function init():void{ Tweener.registerSpecialPropertySplitter("_filter", _filter_splitter); Tweener.registerSpecialProperty("_Bevel_angle", _filter_property_get, _filter_property_set, [BevelFilter, "angle"]); Tweener.registerSpecialProperty("_Bevel_blurX", _filter_property_get, _filter_property_set, [BevelFilter, "blurX"]); Tweener.registerSpecialProperty("_Bevel_blurY", _filter_property_get, _filter_property_set, [BevelFilter, "blurY"]); Tweener.registerSpecialProperty("_Bevel_distance", _filter_property_get, _filter_property_set, [BevelFilter, "distance"]); Tweener.registerSpecialProperty("_Bevel_highlightAlpha", _filter_property_get, _filter_property_set, [BevelFilter, "highlightAlpha"]); Tweener.registerSpecialPropertySplitter("_Bevel_highlightColor", _generic_color_splitter, ["_Bevel_highlightColor_r", "_Bevel_highlightColor_g", "_Bevel_highlightColor_b"]); Tweener.registerSpecialProperty("_Bevel_highlightColor_r", _filter_property_get, _filter_property_set, [BevelFilter, "highlightColor", "color", "r"]); Tweener.registerSpecialProperty("_Bevel_highlightColor_g", _filter_property_get, _filter_property_set, [BevelFilter, "highlightColor", "color", "g"]); Tweener.registerSpecialProperty("_Bevel_highlightColor_b", _filter_property_get, _filter_property_set, [BevelFilter, "highlightColor", "color", "b"]); Tweener.registerSpecialProperty("_Bevel_knockout", _filter_property_get, _filter_property_set, [BevelFilter, "knockout"]); Tweener.registerSpecialProperty("_Bevel_quality", _filter_property_get, _filter_property_set, [BevelFilter, "quality"]); Tweener.registerSpecialProperty("_Bevel_shadowAlpha", _filter_property_get, _filter_property_set, [BevelFilter, "shadowAlpha"]); Tweener.registerSpecialPropertySplitter("_Bevel_shadowColor", _generic_color_splitter, ["_Bevel_shadowColor_r", "_Bevel_shadowColor_g", "_Bevel_shadowColor_b"]); Tweener.registerSpecialProperty("_Bevel_shadowColor_r", _filter_property_get, _filter_property_set, [BevelFilter, "shadowColor", "color", "r"]); Tweener.registerSpecialProperty("_Bevel_shadowColor_g", _filter_property_get, _filter_property_set, [BevelFilter, "shadowColor", "color", "g"]); Tweener.registerSpecialProperty("_Bevel_shadowColor_b", _filter_property_get, _filter_property_set, [BevelFilter, "shadowColor", "color", "b"]); Tweener.registerSpecialProperty("_Bevel_strength", _filter_property_get, _filter_property_set, [BevelFilter, "strength"]); Tweener.registerSpecialProperty("_Bevel_type", _filter_property_get, _filter_property_set, [BevelFilter, "type"]); Tweener.registerSpecialProperty("_Blur_blurX", _filter_property_get, _filter_property_set, [BlurFilter, "blurX"]); Tweener.registerSpecialProperty("_Blur_blurY", _filter_property_get, _filter_property_set, [BlurFilter, "blurY"]); Tweener.registerSpecialProperty("_Blur_quality", _filter_property_get, _filter_property_set, [BlurFilter, "quality"]); Tweener.registerSpecialPropertySplitter("_ColorMatrix_matrix", _generic_matrix_splitter, [[1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0], ["_ColorMatrix_matrix_rr", "_ColorMatrix_matrix_rg", "_ColorMatrix_matrix_rb", "_ColorMatrix_matrix_ra", "_ColorMatrix_matrix_ro", "_ColorMatrix_matrix_gr", "_ColorMatrix_matrix_gg", "_ColorMatrix_matrix_gb", "_ColorMatrix_matrix_ga", "_ColorMatrix_matrix_go", "_ColorMatrix_matrix_br", "_ColorMatrix_matrix_bg", "_ColorMatrix_matrix_bb", "_ColorMatrix_matrix_ba", "_ColorMatrix_matrix_bo", "_ColorMatrix_matrix_ar", "_ColorMatrix_matrix_ag", "_ColorMatrix_matrix_ab", "_ColorMatrix_matrix_aa", "_ColorMatrix_matrix_ao"]]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_rr", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 0]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_rg", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 1]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_rb", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 2]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_ra", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 3]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_ro", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 4]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_gr", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 5]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_gg", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 6]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_gb", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 7]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_ga", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 8]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_go", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 9]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_br", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 10]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_bg", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 11]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_bb", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 12]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_ba", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 13]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_bo", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 14]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_ar", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 15]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_ag", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 16]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_ab", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 17]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_aa", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 18]); Tweener.registerSpecialProperty("_ColorMatrix_matrix_ao", _filter_property_get, _filter_property_set, [ColorMatrixFilter, "matrix", "matrix", 19]); Tweener.registerSpecialProperty("_Convolution_alpha", _filter_property_get, _filter_property_set, [ConvolutionFilter, "alpha"]); Tweener.registerSpecialProperty("_Convolution_bias", _filter_property_get, _filter_property_set, [ConvolutionFilter, "bias"]); Tweener.registerSpecialProperty("_Convolution_clamp", _filter_property_get, _filter_property_set, [ConvolutionFilter, "clamp"]); Tweener.registerSpecialPropertySplitter("_Convolution_color", _generic_color_splitter, ["_Convolution_color_r", "_Convolution_color_g", "_Convolution_color_b"]); Tweener.registerSpecialProperty("_Convolution_color_r", _filter_property_get, _filter_property_set, [ConvolutionFilter, "color", "color", "r"]); Tweener.registerSpecialProperty("_Convolution_color_g", _filter_property_get, _filter_property_set, [ConvolutionFilter, "color", "color", "g"]); Tweener.registerSpecialProperty("_Convolution_color_b", _filter_property_get, _filter_property_set, [ConvolutionFilter, "color", "color", "b"]); Tweener.registerSpecialProperty("_Convolution_divisor", _filter_property_get, _filter_property_set, [ConvolutionFilter, "divisor"]); Tweener.registerSpecialProperty("_Convolution_matrixX", _filter_property_get, _filter_property_set, [ConvolutionFilter, "matrixX"]); Tweener.registerSpecialProperty("_Convolution_matrixY", _filter_property_get, _filter_property_set, [ConvolutionFilter, "matrixY"]); Tweener.registerSpecialProperty("_Convolution_preserveAlpha", _filter_property_get, _filter_property_set, [ConvolutionFilter, "preserveAlpha"]); Tweener.registerSpecialProperty("_DisplacementMap_alpha", _filter_property_get, _filter_property_set, [DisplacementMapFilter, "alpha"]); Tweener.registerSpecialPropertySplitter("_DisplacementMap_color", _generic_color_splitter, ["_DisplacementMap_color_r", "_DisplacementMap_color_r", "_DisplacementMap_color_r"]); Tweener.registerSpecialProperty("_DisplacementMap_color_r", _filter_property_get, _filter_property_set, [DisplacementMapFilter, "color", "color", "r"]); Tweener.registerSpecialProperty("_DisplacementMap_color_g", _filter_property_get, _filter_property_set, [DisplacementMapFilter, "color", "color", "g"]); Tweener.registerSpecialProperty("_DisplacementMap_color_b", _filter_property_get, _filter_property_set, [DisplacementMapFilter, "color", "color", "b"]); Tweener.registerSpecialProperty("_DisplacementMap_componentX", _filter_property_get, _filter_property_set, [DisplacementMapFilter, "componentX"]); Tweener.registerSpecialProperty("_DisplacementMap_componentY", _filter_property_get, _filter_property_set, [DisplacementMapFilter, "componentY"]); Tweener.registerSpecialProperty("_DisplacementMap_mapBitmap", _filter_property_get, _filter_property_set, [DisplacementMapFilter, "mapBitmap"]); Tweener.registerSpecialPropertySplitter("_DisplacementMap_mapPoint", _generic_point_splitter, ["_DisplacementMap_mapPoint_x", "_DisplacementMap_mapPoint_y"]); Tweener.registerSpecialProperty("_DisplacementMap_mapPoint_x", _filter_property_get, _filter_property_set, [DisplacementMapFilter, "mapPoint", "point", "x"]); Tweener.registerSpecialProperty("_DisplacementMap_mapPoint_y", _filter_property_get, _filter_property_set, [DisplacementMapFilter, "mapPoint", "point", "y"]); Tweener.registerSpecialProperty("_DisplacementMap_mode", _filter_property_get, _filter_property_set, [DisplacementMapFilter, "mode"]); Tweener.registerSpecialProperty("_DisplacementMap_scaleX", _filter_property_get, _filter_property_set, [DisplacementMapFilter, "scaleX"]); Tweener.registerSpecialProperty("_DisplacementMap_scaleY", _filter_property_get, _filter_property_set, [DisplacementMapFilter, "scaleY"]); Tweener.registerSpecialProperty("_DropShadow_alpha", _filter_property_get, _filter_property_set, [DropShadowFilter, "alpha"]); Tweener.registerSpecialProperty("_DropShadow_angle", _filter_property_get, _filter_property_set, [DropShadowFilter, "angle"]); Tweener.registerSpecialProperty("_DropShadow_blurX", _filter_property_get, _filter_property_set, [DropShadowFilter, "blurX"]); Tweener.registerSpecialProperty("_DropShadow_blurY", _filter_property_get, _filter_property_set, [DropShadowFilter, "blurY"]); Tweener.registerSpecialPropertySplitter("_DropShadow_color", _generic_color_splitter, ["_DropShadow_color_r", "_DropShadow_color_g", "_DropShadow_color_b"]); Tweener.registerSpecialProperty("_DropShadow_color_r", _filter_property_get, _filter_property_set, [DropShadowFilter, "color", "color", "r"]); Tweener.registerSpecialProperty("_DropShadow_color_g", _filter_property_get, _filter_property_set, [DropShadowFilter, "color", "color", "g"]); Tweener.registerSpecialProperty("_DropShadow_color_b", _filter_property_get, _filter_property_set, [DropShadowFilter, "color", "color", "b"]); Tweener.registerSpecialProperty("_DropShadow_distance", _filter_property_get, _filter_property_set, [DropShadowFilter, "distance"]); Tweener.registerSpecialProperty("_DropShadow_hideObject", _filter_property_get, _filter_property_set, [DropShadowFilter, "hideObject"]); Tweener.registerSpecialProperty("_DropShadow_inner", _filter_property_get, _filter_property_set, [DropShadowFilter, "inner"]); Tweener.registerSpecialProperty("_DropShadow_knockout", _filter_property_get, _filter_property_set, [DropShadowFilter, "knockout"]); Tweener.registerSpecialProperty("_DropShadow_quality", _filter_property_get, _filter_property_set, [DropShadowFilter, "quality"]); Tweener.registerSpecialProperty("_DropShadow_strength", _filter_property_get, _filter_property_set, [DropShadowFilter, "strength"]); Tweener.registerSpecialProperty("_Glow_alpha", _filter_property_get, _filter_property_set, [GlowFilter, "alpha"]); Tweener.registerSpecialProperty("_Glow_blurX", _filter_property_get, _filter_property_set, [GlowFilter, "blurX"]); Tweener.registerSpecialProperty("_Glow_blurY", _filter_property_get, _filter_property_set, [GlowFilter, "blurY"]); Tweener.registerSpecialPropertySplitter("_Glow_color", _generic_color_splitter, ["_Glow_color_r", "_Glow_color_g", "_Glow_color_b"]); Tweener.registerSpecialProperty("_Glow_color_r", _filter_property_get, _filter_property_set, [GlowFilter, "color", "color", "r"]); Tweener.registerSpecialProperty("_Glow_color_g", _filter_property_get, _filter_property_set, [GlowFilter, "color", "color", "g"]); Tweener.registerSpecialProperty("_Glow_color_b", _filter_property_get, _filter_property_set, [GlowFilter, "color", "color", "b"]); Tweener.registerSpecialProperty("_Glow_inner", _filter_property_get, _filter_property_set, [GlowFilter, "inner"]); Tweener.registerSpecialProperty("_Glow_knockout", _filter_property_get, _filter_property_set, [GlowFilter, "knockout"]); Tweener.registerSpecialProperty("_Glow_quality", _filter_property_get, _filter_property_set, [GlowFilter, "quality"]); Tweener.registerSpecialProperty("_Glow_strength", _filter_property_get, _filter_property_set, [GlowFilter, "strength"]); Tweener.registerSpecialProperty("_GradientBevel_angle", _filter_property_get, _filter_property_set, [GradientBevelFilter, "angle"]); Tweener.registerSpecialProperty("_GradientBevel_blurX", _filter_property_get, _filter_property_set, [GradientBevelFilter, "blurX"]); Tweener.registerSpecialProperty("_GradientBevel_blurY", _filter_property_get, _filter_property_set, [GradientBevelFilter, "blurY"]); Tweener.registerSpecialProperty("_GradientBevel_distance", _filter_property_get, _filter_property_set, [GradientBevelFilter, "distance"]); Tweener.registerSpecialProperty("_GradientBevel_quality", _filter_property_get, _filter_property_set, [GradientBevelFilter, "quality"]); Tweener.registerSpecialProperty("_GradientBevel_strength", _filter_property_get, _filter_property_set, [GradientBevelFilter, "strength"]); Tweener.registerSpecialProperty("_GradientBevel_type", _filter_property_get, _filter_property_set, [GradientBevelFilter, "type"]); Tweener.registerSpecialProperty("_GradientGlow_angle", _filter_property_get, _filter_property_set, [GradientGlowFilter, "angle"]); Tweener.registerSpecialProperty("_GradientGlow_blurX", _filter_property_get, _filter_property_set, [GradientGlowFilter, "blurX"]); Tweener.registerSpecialProperty("_GradientGlow_blurY", _filter_property_get, _filter_property_set, [GradientGlowFilter, "blurY"]); Tweener.registerSpecialProperty("_GradientGlow_distance", _filter_property_get, _filter_property_set, [GradientGlowFilter, "distance"]); Tweener.registerSpecialProperty("_GradientGlow_knockout", _filter_property_get, _filter_property_set, [GradientGlowFilter, "knockout"]); Tweener.registerSpecialProperty("_GradientGlow_quality", _filter_property_get, _filter_property_set, [GradientGlowFilter, "quality"]); Tweener.registerSpecialProperty("_GradientGlow_strength", _filter_property_get, _filter_property_set, [GradientGlowFilter, "strength"]); Tweener.registerSpecialProperty("_GradientGlow_type", _filter_property_get, _filter_property_set, [GradientGlowFilter, "type"]); } public static function _filter_property_get(_arg1:Object, _arg2:Array, _arg3:Object=null):Number{ var _local4:Array; var _local5:Number; var _local6:Object; var _local7:String; var _local8:String; var _local9:Object; var _local10:String; _local4 = _arg1.filters; _local6 = _arg2[0]; _local7 = _arg2[1]; _local8 = _arg2[2]; _local5 = 0; while (_local5 < _local4.length) { if ((_local4[_local5] is Class(_local6))){ if (_local8 == "color"){ _local10 = _arg2[3]; if (_local10 == "r"){ return (AuxFunctions.numberToR(_local4[_local5][_local7])); }; if (_local10 == "g"){ return (AuxFunctions.numberToG(_local4[_local5][_local7])); }; if (_local10 == "b"){ return (AuxFunctions.numberToB(_local4[_local5][_local7])); }; } else { if (_local8 == "matrix"){ return (_local4[_local5][_local7][_arg2[3]]); }; if (_local8 == "point"){ return (_local4[_local5][_local7][_arg2[3]]); }; return (_local4[_local5][_local7]); }; }; _local5++; }; switch (_local6){ case BevelFilter: _local9 = {angle:NaN, blurX:0, blurY:0, distance:0, highlightAlpha:1, highlightColor:NaN, knockout:null, quality:NaN, shadowAlpha:1, shadowColor:NaN, strength:2, type:null}; break; case BlurFilter: _local9 = {blurX:0, blurY:0, quality:NaN}; break; case ColorMatrixFilter: _local9 = {matrix:[1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0]}; break; case ConvolutionFilter: _local9 = {alpha:0, bias:0, clamp:null, color:NaN, divisor:1, matrix:[1], matrixX:1, matrixY:1, preserveAlpha:null}; break; case DisplacementMapFilter: _local9 = {alpha:0, color:NaN, componentX:null, componentY:null, mapBitmap:null, mapPoint:null, mode:null, scaleX:0, scaleY:0}; break; case DropShadowFilter: _local9 = {distance:0, angle:NaN, color:NaN, alpha:1, blurX:0, blurY:0, strength:1, quality:NaN, inner:null, knockout:null, hideObject:null}; break; case GlowFilter: _local9 = {alpha:1, blurX:0, blurY:0, color:NaN, inner:null, knockout:null, quality:NaN, strength:2}; break; case GradientBevelFilter: _local9 = {alphas:null, angle:NaN, blurX:0, blurY:0, colors:null, distance:0, knockout:null, quality:NaN, ratios:NaN, strength:1, type:null}; break; case GradientGlowFilter: _local9 = {alphas:null, angle:NaN, blurX:0, blurY:0, colors:null, distance:0, knockout:null, quality:NaN, ratios:NaN, strength:1, type:null}; break; }; if (_local8 == "color"){ return (NaN); }; if (_local8 == "matrix"){ return (_local9[_local7][_arg2[3]]); }; if (_local8 == "point"){ return (_local9[_local7][_arg2[3]]); }; return (_local9[_local7]); } public static function _filter_property_set(_arg1:Object, _arg2:Number, _arg3:Array, _arg4:Object=null):void{ var _local5:Array; var _local6:Number; var _local7:Object; var _local8:String; var _local9:String; var _local10:BitmapFilter; var _local11:String; var _local12:Array; var _local13:Point; _local5 = _arg1.filters; _local7 = _arg3[0]; _local8 = _arg3[1]; _local9 = _arg3[2]; _local6 = 0; while (_local6 < _local5.length) { if ((_local5[_local6] is Class(_local7))){ if (_local9 == "color"){ _local11 = _arg3[3]; if (_local11 == "r"){ _local5[_local6][_local8] = ((_local5[_local6][_local8] & 0xFFFF) | (_arg2 << 16)); }; if (_local11 == "g"){ _local5[_local6][_local8] = ((_local5[_local6][_local8] & 0xFF00FF) | (_arg2 << 8)); }; if (_local11 == "b"){ _local5[_local6][_local8] = ((_local5[_local6][_local8] & 0xFFFF00) | _arg2); }; } else { if (_local9 == "matrix"){ _local12 = _local5[_local6][_local8]; _local12[_arg3[3]] = _arg2; _local5[_local6][_local8] = _local12; } else { if (_local9 == "point"){ _local13 = Point(_local5[_local6][_local8]); _local13[_arg3[3]] = _arg2; _local5[_local6][_local8] = _local13; } else { _local5[_local6][_local8] = _arg2; }; }; }; _arg1.filters = _local5; return; }; _local6++; }; if (_local5 == null){ _local5 = new Array(); }; switch (_local7){ case BevelFilter: _local10 = new BevelFilter(0, 45, 0xFFFFFF, 1, 0, 1, 0, 0); break; case BlurFilter: _local10 = new BlurFilter(0, 0); break; case ColorMatrixFilter: _local10 = new ColorMatrixFilter([1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0]); break; case ConvolutionFilter: _local10 = new ConvolutionFilter(1, 1, [1], 1, 0, true, true, 0, 0); break; case DisplacementMapFilter: _local10 = new DisplacementMapFilter(new BitmapData(10, 10), new Point(0, 0), 0, 1, 0, 0); break; case DropShadowFilter: _local10 = new DropShadowFilter(0, 45, 0, 1, 0, 0); break; case GlowFilter: _local10 = new GlowFilter(0xFF0000, 1, 0, 0); break; case GradientBevelFilter: _local10 = new GradientBevelFilter(0, 45, [0xFFFFFF, 0], [1, 1], [32, 223], 0, 0); break; case GradientGlowFilter: _local10 = new GradientGlowFilter(0, 45, [0xFFFFFF, 0], [1, 1], [32, 223], 0, 0); break; }; _local5.push(_local10); _arg1.filters = _local5; _filter_property_set(_arg1, _arg2, _arg3); } public static function _generic_color_splitter(_arg1:Number, _arg2:Array):Array{ var _local3:Array; _local3 = new Array(); _local3.push({name:_arg2[0], value:AuxFunctions.numberToR(_arg1)}); _local3.push({name:_arg2[1], value:AuxFunctions.numberToG(_arg1)}); _local3.push({name:_arg2[2], value:AuxFunctions.numberToB(_arg1)}); return (_local3); } public static function _generic_point_splitter(_arg1:Point, _arg2:Array):Array{ var _local3:Array; _local3 = new Array(); _local3.push({name:_arg2[0], value:_arg1.x}); _local3.push({name:_arg2[1], value:_arg1.y}); return (_local3); } public static function _generic_matrix_splitter(_arg1:Array, _arg2:Array):Array{ var _local3:Array; var _local4:Number; if (_arg1 == null){ _arg1 = _arg2[0].concat(); }; _local3 = new Array(); _local4 = 0; while (_local4 < _arg1.length) { _local3.push({name:_arg2[1][_local4], value:_arg1[_local4]}); _local4++; }; return (_local3); } public static function _filter_splitter(_arg1:BitmapFilter, _arg2:Array, _arg3:Object=null):Array{ var _local4:Array; _local4 = new Array(); if ((_arg1 is BevelFilter)){ _local4.push({name:"_Bevel_angle", value:BevelFilter(_arg1).angle}); _local4.push({name:"_Bevel_blurX", value:BevelFilter(_arg1).blurX}); _local4.push({name:"_Bevel_blurY", value:BevelFilter(_arg1).blurY}); _local4.push({name:"_Bevel_distance", value:BevelFilter(_arg1).distance}); _local4.push({name:"_Bevel_highlightAlpha", value:BevelFilter(_arg1).highlightAlpha}); _local4.push({name:"_Bevel_highlightColor", value:BevelFilter(_arg1).highlightColor}); _local4.push({name:"_Bevel_knockout", value:BevelFilter(_arg1).knockout}); _local4.push({name:"_Bevel_quality", value:BevelFilter(_arg1).quality}); _local4.push({name:"_Bevel_shadowAlpha", value:BevelFilter(_arg1).shadowAlpha}); _local4.push({name:"_Bevel_shadowColor", value:BevelFilter(_arg1).shadowColor}); _local4.push({name:"_Bevel_strength", value:BevelFilter(_arg1).strength}); _local4.push({name:"_Bevel_type", value:BevelFilter(_arg1).type}); } else { if ((_arg1 is BlurFilter)){ _local4.push({name:"_Blur_blurX", value:BlurFilter(_arg1).blurX}); _local4.push({name:"_Blur_blurY", value:BlurFilter(_arg1).blurY}); _local4.push({name:"_Blur_quality", value:BlurFilter(_arg1).quality}); } else { if ((_arg1 is ColorMatrixFilter)){ _local4.push({name:"_ColorMatrix_matrix", value:ColorMatrixFilter(_arg1).matrix}); } else { if ((_arg1 is ConvolutionFilter)){ _local4.push({name:"_Convolution_alpha", value:ConvolutionFilter(_arg1).alpha}); _local4.push({name:"_Convolution_bias", value:ConvolutionFilter(_arg1).bias}); _local4.push({name:"_Convolution_clamp", value:ConvolutionFilter(_arg1).clamp}); _local4.push({name:"_Convolution_color", value:ConvolutionFilter(_arg1).color}); _local4.push({name:"_Convolution_divisor", value:ConvolutionFilter(_arg1).divisor}); _local4.push({name:"_Convolution_matrixX", value:ConvolutionFilter(_arg1).matrixX}); _local4.push({name:"_Convolution_matrixY", value:ConvolutionFilter(_arg1).matrixY}); _local4.push({name:"_Convolution_preserveAlpha", value:ConvolutionFilter(_arg1).preserveAlpha}); } else { if ((_arg1 is DisplacementMapFilter)){ _local4.push({name:"_DisplacementMap_alpha", value:DisplacementMapFilter(_arg1).alpha}); _local4.push({name:"_DisplacementMap_color", value:DisplacementMapFilter(_arg1).color}); _local4.push({name:"_DisplacementMap_componentX", value:DisplacementMapFilter(_arg1).componentX}); _local4.push({name:"_DisplacementMap_componentY", value:DisplacementMapFilter(_arg1).componentY}); _local4.push({name:"_DisplacementMap_mapBitmap", value:DisplacementMapFilter(_arg1).mapBitmap}); _local4.push({name:"_DisplacementMap_mapPoint", value:DisplacementMapFilter(_arg1).mapPoint}); _local4.push({name:"_DisplacementMap_mode", value:DisplacementMapFilter(_arg1).mode}); _local4.push({name:"_DisplacementMap_scaleX", value:DisplacementMapFilter(_arg1).scaleX}); _local4.push({name:"_DisplacementMap_scaleY", value:DisplacementMapFilter(_arg1).scaleY}); } else { if ((_arg1 is DropShadowFilter)){ _local4.push({name:"_DropShadow_alpha", value:DropShadowFilter(_arg1).alpha}); _local4.push({name:"_DropShadow_angle", value:DropShadowFilter(_arg1).angle}); _local4.push({name:"_DropShadow_blurX", value:DropShadowFilter(_arg1).blurX}); _local4.push({name:"_DropShadow_blurY", value:DropShadowFilter(_arg1).blurY}); _local4.push({name:"_DropShadow_color", value:DropShadowFilter(_arg1).color}); _local4.push({name:"_DropShadow_distance", value:DropShadowFilter(_arg1).distance}); _local4.push({name:"_DropShadow_hideObject", value:DropShadowFilter(_arg1).hideObject}); _local4.push({name:"_DropShadow_inner", value:DropShadowFilter(_arg1).inner}); _local4.push({name:"_DropShadow_knockout", value:DropShadowFilter(_arg1).knockout}); _local4.push({name:"_DropShadow_quality", value:DropShadowFilter(_arg1).quality}); _local4.push({name:"_DropShadow_strength", value:DropShadowFilter(_arg1).strength}); } else { if ((_arg1 is GlowFilter)){ _local4.push({name:"_Glow_alpha", value:GlowFilter(_arg1).alpha}); _local4.push({name:"_Glow_blurX", value:GlowFilter(_arg1).blurX}); _local4.push({name:"_Glow_blurY", value:GlowFilter(_arg1).blurY}); _local4.push({name:"_Glow_color", value:GlowFilter(_arg1).color}); _local4.push({name:"_Glow_inner", value:GlowFilter(_arg1).inner}); _local4.push({name:"_Glow_knockout", value:GlowFilter(_arg1).knockout}); _local4.push({name:"_Glow_quality", value:GlowFilter(_arg1).quality}); _local4.push({name:"_Glow_strength", value:GlowFilter(_arg1).strength}); } else { if ((_arg1 is GradientBevelFilter)){ _local4.push({name:"_GradientBevel_angle", value:GradientBevelFilter(_arg1).strength}); _local4.push({name:"_GradientBevel_blurX", value:GradientBevelFilter(_arg1).blurX}); _local4.push({name:"_GradientBevel_blurY", value:GradientBevelFilter(_arg1).blurY}); _local4.push({name:"_GradientBevel_distance", value:GradientBevelFilter(_arg1).distance}); _local4.push({name:"_GradientBevel_quality", value:GradientBevelFilter(_arg1).quality}); _local4.push({name:"_GradientBevel_strength", value:GradientBevelFilter(_arg1).strength}); _local4.push({name:"_GradientBevel_type", value:GradientBevelFilter(_arg1).type}); } else { if ((_arg1 is GradientGlowFilter)){ _local4.push({name:"_GradientGlow_angle", value:GradientGlowFilter(_arg1).strength}); _local4.push({name:"_GradientGlow_blurX", value:GradientGlowFilter(_arg1).blurX}); _local4.push({name:"_GradientGlow_blurY", value:GradientGlowFilter(_arg1).blurY}); _local4.push({name:"_GradientGlow_distance", value:GradientGlowFilter(_arg1).distance}); _local4.push({name:"_GradientGlow_knockout", value:GradientGlowFilter(_arg1).knockout}); _local4.push({name:"_GradientGlow_quality", value:GradientGlowFilter(_arg1).quality}); _local4.push({name:"_GradientGlow_strength", value:GradientGlowFilter(_arg1).strength}); _local4.push({name:"_GradientGlow_type", value:GradientGlowFilter(_arg1).type}); } else { trace("Tweener FilterShortcuts Error :: Unknown filter class used"); }; }; }; }; }; }; }; }; }; return (_local4); } } }//package caurina.transitions.properties
Section 6
//AuxFunctions (caurina.transitions.AuxFunctions) package caurina.transitions { public class AuxFunctions { public static function concatObjects(... _args):Object{ var _local2:Object; var _local3:Object; var _local4:int; var _local5:String; _local2 = {}; _local4 = 0; while (_local4 < _args.length) { _local3 = _args[_local4]; for (_local5 in _local3) { if (_local3[_local5] == null){ delete _local2[_local5]; } else { _local2[_local5] = _local3[_local5]; }; }; _local4++; }; return (_local2); } public static function numberToG(_arg1:Number):Number{ return (((_arg1 & 0xFF00) >> 8)); } public static function numberToR(_arg1:Number):Number{ return (((_arg1 & 0xFF0000) >> 16)); } public static function isInArray(_arg1:String, _arg2:Array):Boolean{ var _local3:uint; var _local4:uint; _local3 = _arg2.length; _local4 = 0; while (_local4 < _local3) { if (_arg2[_local4] == _arg1){ return (true); }; _local4++; }; return (false); } public static function getObjectLength(_arg1:Object):uint{ var _local2:uint; var _local3:String; _local2 = 0; for (_local3 in _arg1) { _local2++; }; return (_local2); } public static function numberToB(_arg1:Number):Number{ return ((_arg1 & 0xFF)); } } }//package caurina.transitions
Section 7
//Equations (caurina.transitions.Equations) package caurina.transitions { public class Equations { public function Equations(){ trace("Equations is a static class and should not be instantiated."); } public static function easeOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / _arg4); if (_arg1 < (1 / 2.75)){ return (((_arg3 * ((7.5625 * _arg1) * _arg1)) + _arg2)); }; if (_arg1 < (2 / 2.75)){ _arg1 = (_arg1 - (1.5 / 2.75)); return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.75)) + _arg2)); }; if (_arg1 < (2.5 / 2.75)){ _arg1 = (_arg1 - (2.25 / 2.75)); return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.9375)) + _arg2)); }; _arg1 = (_arg1 - (2.625 / 2.75)); return (((_arg3 * (((7.5625 * _arg1) * _arg1) + 0.984375)) + _arg2)); } public static function easeInOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local6:Number; var _local7:Number; var _local8:Number; if (_arg1 == 0){ return (_arg2); }; _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 == 2){ return ((_arg2 + _arg3)); }; _local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * (0.3 * 1.5)) : _arg5.period; _local8 = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude; if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){ _local8 = _arg3; _local7 = (_local6 / 4); } else { _local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8))); }; if (_arg1 < 1){ --_arg1; return (((-0.5 * ((_local8 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6)))) + _arg2)); }; --_arg1; return ((((((_local8 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6))) * 0.5) + _arg3) + _arg2)); } public static function easeInOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ return (((((_arg3 / 2) * _arg1) * _arg1) + _arg2)); }; --_arg1; return ((((-(_arg3) / 2) * ((_arg1 * (_arg1 - 2)) - 1)) + _arg2)); } public static function easeInOutBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (((easeInBounce((_arg1 * 2), 0, _arg3, _arg4) * 0.5) + _arg2)); }; return ((((easeOutBounce(((_arg1 * 2) - _arg4), 0, _arg3, _arg4) * 0.5) + (_arg3 * 0.5)) + _arg2)); } public static function easeInOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local6:Number; _local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot; _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ _local6 = (_local6 * 1.525); return ((((_arg3 / 2) * ((_arg1 * _arg1) * (((_local6 + 1) * _arg1) - _local6))) + _arg2)); }; _arg1 = (_arg1 - 2); _local6 = (_local6 * 1.525); return ((((_arg3 / 2) * (((_arg1 * _arg1) * (((_local6 + 1) * _arg1) + _local6)) + 2)) + _arg2)); } public static function easeOutInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutCubic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInCubic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeNone(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ return ((((_arg3 * _arg1) / _arg4) + _arg2)); } public static function easeOutBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local6:Number; _local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot; _arg1 = ((_arg1 / _arg4) - 1); return (((_arg3 * (((_arg1 * _arg1) * (((_local6 + 1) * _arg1) + _local6)) + 1)) + _arg2)); } public static function easeInOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ return ((((-(_arg3) / 2) * (Math.cos(((Math.PI * _arg1) / _arg4)) - 1)) + _arg2)); } public static function easeInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local6:Number; _local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.overshoot)))) ? 1.70158 : _arg5.overshoot; _arg1 = (_arg1 / _arg4); return (((((_arg3 * _arg1) * _arg1) * (((_local6 + 1) * _arg1) - _local6)) + _arg2)); } public static function easeInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / _arg4); return ((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) + _arg2)); } public static function easeOutInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutQuint((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInQuint(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeOutInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutBounce((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInBounce(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function init():void{ Tweener.registerTransition("easenone", easeNone); Tweener.registerTransition("linear", easeNone); Tweener.registerTransition("easeinquad", easeInQuad); Tweener.registerTransition("easeoutquad", easeOutQuad); Tweener.registerTransition("easeinoutquad", easeInOutQuad); Tweener.registerTransition("easeoutinquad", easeOutInQuad); Tweener.registerTransition("easeincubic", easeInCubic); Tweener.registerTransition("easeoutcubic", easeOutCubic); Tweener.registerTransition("easeinoutcubic", easeInOutCubic); Tweener.registerTransition("easeoutincubic", easeOutInCubic); Tweener.registerTransition("easeinquart", easeInQuart); Tweener.registerTransition("easeoutquart", easeOutQuart); Tweener.registerTransition("easeinoutquart", easeInOutQuart); Tweener.registerTransition("easeoutinquart", easeOutInQuart); Tweener.registerTransition("easeinquint", easeInQuint); Tweener.registerTransition("easeoutquint", easeOutQuint); Tweener.registerTransition("easeinoutquint", easeInOutQuint); Tweener.registerTransition("easeoutinquint", easeOutInQuint); Tweener.registerTransition("easeinsine", easeInSine); Tweener.registerTransition("easeoutsine", easeOutSine); Tweener.registerTransition("easeinoutsine", easeInOutSine); Tweener.registerTransition("easeoutinsine", easeOutInSine); Tweener.registerTransition("easeincirc", easeInCirc); Tweener.registerTransition("easeoutcirc", easeOutCirc); Tweener.registerTransition("easeinoutcirc", easeInOutCirc); Tweener.registerTransition("easeoutincirc", easeOutInCirc); Tweener.registerTransition("easeinexpo", easeInExpo); Tweener.registerTransition("easeoutexpo", easeOutExpo); Tweener.registerTransition("easeinoutexpo", easeInOutExpo); Tweener.registerTransition("easeoutinexpo", easeOutInExpo); Tweener.registerTransition("easeinelastic", easeInElastic); Tweener.registerTransition("easeoutelastic", easeOutElastic); Tweener.registerTransition("easeinoutelastic", easeInOutElastic); Tweener.registerTransition("easeoutinelastic", easeOutInElastic); Tweener.registerTransition("easeinback", easeInBack); Tweener.registerTransition("easeoutback", easeOutBack); Tweener.registerTransition("easeinoutback", easeInOutBack); Tweener.registerTransition("easeoutinback", easeOutInBack); Tweener.registerTransition("easeinbounce", easeInBounce); Tweener.registerTransition("easeoutbounce", easeOutBounce); Tweener.registerTransition("easeinoutbounce", easeInOutBounce); Tweener.registerTransition("easeoutinbounce", easeOutInBounce); } public static function easeOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ return (((_arg1)==_arg4) ? (_arg2 + _arg3) : (((_arg3 * 1.001) * (-(Math.pow(2, ((-10 * _arg1) / _arg4))) + 1)) + _arg2)); } public static function easeOutInBack(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutBack((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInBack(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ return (((_arg1)==0) ? _arg2 : (((_arg3 * Math.pow(2, (10 * ((_arg1 / _arg4) - 1)))) + _arg2) - (_arg3 * 0.001))); } public static function easeInCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / _arg4); return (((((_arg3 * _arg1) * _arg1) * _arg1) + _arg2)); } public static function easeInQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / _arg4); return (((((((_arg3 * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2)); } public static function easeInOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ return ((((-(_arg3) / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2)); }; _arg1 = (_arg1 - 2); return ((((_arg3 / 2) * (Math.sqrt((1 - (_arg1 * _arg1))) + 1)) + _arg2)); } public static function easeInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / _arg4); return ((((_arg3 * _arg1) * _arg1) + _arg2)); } public static function easeInBounce(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ return (((_arg3 - easeOutBounce((_arg4 - _arg1), 0, _arg3, _arg4)) + _arg2)); } public static function easeOutInExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutExpo((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInExpo(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = ((_arg1 / _arg4) - 1); return (((-(_arg3) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 1)) + _arg2)); } public static function easeInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ return ((((-(_arg3) * Math.cos(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg3) + _arg2)); } public static function easeInOutQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ return (((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2)); }; _arg1 = (_arg1 - 2); return ((((-(_arg3) / 2) * ((((_arg1 * _arg1) * _arg1) * _arg1) - 2)) + _arg2)); } public static function easeOutQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / _arg4); return ((((-(_arg3) * _arg1) * (_arg1 - 2)) + _arg2)); } public static function easeOutInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutElastic((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInElastic(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeInElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local6:Number; var _local7:Number; var _local8:Number; if (_arg1 == 0){ return (_arg2); }; _arg1 = (_arg1 / _arg4); if (_arg1 == 1){ return ((_arg2 + _arg3)); }; _local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period; _local8 = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude; if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){ _local8 = _arg3; _local7 = (_local6 / 4); } else { _local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8))); }; --_arg1; return ((-(((_local8 * Math.pow(2, (10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6)))) + _arg2)); } public static function easeOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = ((_arg1 / _arg4) - 1); return (((_arg3 * (((_arg1 * _arg1) * _arg1) + 1)) + _arg2)); } public static function easeOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = ((_arg1 / _arg4) - 1); return (((_arg3 * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 1)) + _arg2)); } public static function easeOutInQuad(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutQuad((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInQuad(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeOutSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ return (((_arg3 * Math.sin(((_arg1 / _arg4) * (Math.PI / 2)))) + _arg2)); } public static function easeInOutCubic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ return ((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) + _arg2)); }; _arg1 = (_arg1 - 2); return ((((_arg3 / 2) * (((_arg1 * _arg1) * _arg1) + 2)) + _arg2)); } public static function easeInOutQuint(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ return ((((((((_arg3 / 2) * _arg1) * _arg1) * _arg1) * _arg1) * _arg1) + _arg2)); }; _arg1 = (_arg1 - 2); return ((((_arg3 / 2) * (((((_arg1 * _arg1) * _arg1) * _arg1) * _arg1) + 2)) + _arg2)); } public static function easeInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = (_arg1 / _arg4); return (((-(_arg3) * (Math.sqrt((1 - (_arg1 * _arg1))) - 1)) + _arg2)); } public static function easeOutInSine(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutSine((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInSine(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeInOutExpo(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 == 0){ return (_arg2); }; if (_arg1 == _arg4){ return ((_arg2 + _arg3)); }; _arg1 = (_arg1 / (_arg4 / 2)); if (_arg1 < 1){ return (((((_arg3 / 2) * Math.pow(2, (10 * (_arg1 - 1)))) + _arg2) - (_arg3 * 0.0005))); }; --_arg1; return (((((_arg3 / 2) * 1.0005) * (-(Math.pow(2, (-10 * _arg1))) + 2)) + _arg2)); } public static function easeOutElastic(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ var _local6:Number; var _local7:Number; var _local8:Number; if (_arg1 == 0){ return (_arg2); }; _arg1 = (_arg1 / _arg4); if (_arg1 == 1){ return ((_arg2 + _arg3)); }; _local6 = (((!(Boolean(_arg5))) || (isNaN(_arg5.period)))) ? (_arg4 * 0.3) : _arg5.period; _local8 = (((!(Boolean(_arg5))) || (isNaN(_arg5.amplitude)))) ? 0 : _arg5.amplitude; if (((!(Boolean(_local8))) || ((_local8 < Math.abs(_arg3))))){ _local8 = _arg3; _local7 = (_local6 / 4); } else { _local7 = ((_local6 / (2 * Math.PI)) * Math.asin((_arg3 / _local8))); }; return (((((_local8 * Math.pow(2, (-10 * _arg1))) * Math.sin(((((_arg1 * _arg4) - _local7) * (2 * Math.PI)) / _local6))) + _arg3) + _arg2)); } public static function easeOutCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ _arg1 = ((_arg1 / _arg4) - 1); return (((_arg3 * Math.sqrt((1 - (_arg1 * _arg1)))) + _arg2)); } public static function easeOutInQuart(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutQuart((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInQuart(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } public static function easeOutInCirc(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Object=null):Number{ if (_arg1 < (_arg4 / 2)){ return (easeOutCirc((_arg1 * 2), _arg2, (_arg3 / 2), _arg4, _arg5)); }; return (easeInCirc(((_arg1 * 2) - _arg4), (_arg2 + (_arg3 / 2)), (_arg3 / 2), _arg4, _arg5)); } } }//package caurina.transitions
Section 8
//PropertyInfoObj (caurina.transitions.PropertyInfoObj) package caurina.transitions { public class PropertyInfoObj { public var originalValueComplete:Object; public var modifierParameters:Array; public var isSpecialProperty:Boolean; public var hasModifier:Boolean; public var valueComplete:Number; public var extra:Object; public var valueStart:Number; public var modifierFunction:Function; public var arrayIndex:Number; public function PropertyInfoObj(_arg1:Number, _arg2:Number, _arg3:Object, _arg4:Number, _arg5:Object, _arg6:Boolean, _arg7:Function, _arg8:Array){ valueStart = _arg1; valueComplete = _arg2; originalValueComplete = _arg3; arrayIndex = _arg4; extra = _arg5; isSpecialProperty = _arg6; hasModifier = Boolean(_arg7); modifierFunction = _arg7; modifierParameters = _arg8; } public function toString():String{ var _local1:String; _local1 = "\n[PropertyInfoObj "; _local1 = (_local1 + ("valueStart:" + String(valueStart))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("valueComplete:" + String(valueComplete))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("originalValueComplete:" + String(originalValueComplete))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("arrayIndex:" + String(arrayIndex))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("extra:" + String(extra))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("isSpecialProperty:" + String(isSpecialProperty))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("hasModifier:" + String(hasModifier))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("modifierFunction:" + String(modifierFunction))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("modifierParameters:" + String(modifierParameters))); _local1 = (_local1 + "]\n"); return (_local1); } public function clone():PropertyInfoObj{ var _local1:PropertyInfoObj; _local1 = new PropertyInfoObj(valueStart, valueComplete, originalValueComplete, arrayIndex, extra, isSpecialProperty, modifierFunction, modifierParameters); return (_local1); } } }//package caurina.transitions
Section 9
//SpecialProperty (caurina.transitions.SpecialProperty) package caurina.transitions { public class SpecialProperty { public var parameters:Array; public var preProcess:Function; public var setValue:Function; public var getValue:Function; public function SpecialProperty(_arg1:Function, _arg2:Function, _arg3:Array=null, _arg4:Function=null){ getValue = _arg1; setValue = _arg2; parameters = _arg3; preProcess = _arg4; } public function toString():String{ var _local1:String; _local1 = ""; _local1 = (_local1 + "[SpecialProperty "); _local1 = (_local1 + ("getValue:" + String(getValue))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("setValue:" + String(setValue))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("parameters:" + String(parameters))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("preProcess:" + String(preProcess))); _local1 = (_local1 + "]"); return (_local1); } } }//package caurina.transitions
Section 10
//SpecialPropertyModifier (caurina.transitions.SpecialPropertyModifier) package caurina.transitions { public class SpecialPropertyModifier { public var getValue:Function; public var modifyValues:Function; public function SpecialPropertyModifier(_arg1:Function, _arg2:Function){ modifyValues = _arg1; getValue = _arg2; } public function toString():String{ var _local1:String; _local1 = ""; _local1 = (_local1 + "[SpecialPropertyModifier "); _local1 = (_local1 + ("modifyValues:" + String(modifyValues))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("getValue:" + String(getValue))); _local1 = (_local1 + "]"); return (_local1); } } }//package caurina.transitions
Section 11
//SpecialPropertySplitter (caurina.transitions.SpecialPropertySplitter) package caurina.transitions { public class SpecialPropertySplitter { public var parameters:Array; public var splitValues:Function; public function SpecialPropertySplitter(_arg1:Function, _arg2:Array){ splitValues = _arg1; parameters = _arg2; } public function toString():String{ var _local1:String; _local1 = ""; _local1 = (_local1 + "[SpecialPropertySplitter "); _local1 = (_local1 + ("splitValues:" + String(splitValues))); _local1 = (_local1 + ", "); _local1 = (_local1 + ("parameters:" + String(parameters))); _local1 = (_local1 + "]"); return (_local1); } } }//package caurina.transitions
Section 12
//Tweener (caurina.transitions.Tweener) package caurina.transitions { import flash.events.*; import flash.display.*; import flash.utils.*; public class Tweener { private static var _timeScale:Number = 1; private static var _currentTimeFrame:Number; private static var _specialPropertySplitterList:Object; private static var _engineExists:Boolean = false; private static var _specialPropertyModifierList:Object; private static var _currentTime:Number; private static var _tweenList:Array; private static var _specialPropertyList:Object; private static var _transitionList:Object; private static var _inited:Boolean = false; private static var __tweener_controller__:MovieClip; public function Tweener(){ trace("Tweener is a static class and should not be instantiated."); } public static function registerSpecialPropertyModifier(_arg1:String, _arg2:Function, _arg3:Function):void{ var _local4:SpecialPropertyModifier; if (!_inited){ init(); }; _local4 = new SpecialPropertyModifier(_arg2, _arg3); _specialPropertyModifierList[_arg1] = _local4; } public static function registerSpecialProperty(_arg1:String, _arg2:Function, _arg3:Function, _arg4:Array=null, _arg5:Function=null):void{ var _local6:SpecialProperty; if (!_inited){ init(); }; _local6 = new SpecialProperty(_arg2, _arg3, _arg4, _arg5); _specialPropertyList[_arg1] = _local6; } public static function init(... _args):void{ _inited = true; _transitionList = new Object(); Equations.init(); _specialPropertyList = new Object(); _specialPropertyModifierList = new Object(); _specialPropertySplitterList = new Object(); } private static function updateTweens():Boolean{ var _local1:int; if (_tweenList.length == 0){ return (false); }; _local1 = 0; while (_local1 < _tweenList.length) { if ((((_tweenList[_local1] == undefined)) || (!(_tweenList[_local1].isPaused)))){ if (!updateTweenByIndex(_local1)){ removeTweenByIndex(_local1); }; if (_tweenList[_local1] == null){ removeTweenByIndex(_local1, true); _local1--; }; }; _local1++; }; return (true); } public static function addCaller(_arg1:Object=null, _arg2:Object=null):Boolean{ var _local3:Number; var _local4:Array; var _local5:Object; var _local6:Number; var _local7:Number; var _local8:Function; var _local9:TweenListObj; var _local10:Number; var _local11:String; if (!Boolean(_arg1)){ return (false); }; if ((_arg1 is Array)){ _local4 = _arg1.concat(); } else { _local4 = [_arg1]; }; _local5 = _arg2; if (!_inited){ init(); }; if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){ startEngine(); }; _local6 = (isNaN(_local5.time)) ? 0 : _local5.time; _local7 = (isNaN(_local5.delay)) ? 0 : _local5.delay; if (typeof(_local5.transition) == "string"){ _local11 = _local5.transition.toLowerCase(); _local8 = _transitionList[_local11]; } else { _local8 = _local5.transition; }; if (!Boolean(_local8)){ _local8 = _transitionList["easeoutexpo"]; }; _local3 = 0; while (_local3 < _local4.length) { if (_local5.useFrames == true){ _local9 = new TweenListObj(_local4[_local3], (_currentTimeFrame + (_local7 / _timeScale)), (_currentTimeFrame + ((_local7 + _local6) / _timeScale)), true, _local8, _local5.transitionParams); } else { _local9 = new TweenListObj(_local4[_local3], (_currentTime + ((_local7 * 1000) / _timeScale)), (_currentTime + (((_local7 * 1000) + (_local6 * 1000)) / _timeScale)), false, _local8, _local5.transitionParams); }; _local9.properties = null; _local9.onStart = _local5.onStart; _local9.onUpdate = _local5.onUpdate; _local9.onComplete = _local5.onComplete; _local9.onOverwrite = _local5.onOverwrite; _local9.onStartParams = _local5.onStartParams; _local9.onUpdateParams = _local5.onUpdateParams; _local9.onCompleteParams = _local5.onCompleteParams; _local9.onOverwriteParams = _local5.onOverwriteParams; _local9.onStartScope = _local5.onStartScope; _local9.onUpdateScope = _local5.onUpdateScope; _local9.onCompleteScope = _local5.onCompleteScope; _local9.onOverwriteScope = _local5.onOverwriteScope; _local9.onErrorScope = _local5.onErrorScope; _local9.isCaller = true; _local9.count = _local5.count; _local9.waitFrames = _local5.waitFrames; _tweenList.push(_local9); if ((((_local6 == 0)) && ((_local7 == 0)))){ _local10 = (_tweenList.length - 1); updateTweenByIndex(_local10); removeTweenByIndex(_local10); }; _local3++; }; return (true); } public static function pauseAllTweens():Boolean{ var _local1:Boolean; var _local2:uint; if (!Boolean(_tweenList)){ return (false); }; _local1 = false; _local2 = 0; while (_local2 < _tweenList.length) { pauseTweenByIndex(_local2); _local1 = true; _local2++; }; return (_local1); } public static function removeTweens(_arg1:Object, ... _args):Boolean{ var _local3:Array; var _local4:uint; _local3 = new Array(); _local4 = 0; while (_local4 < _args.length) { if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){ _local3.push(_args[_local4]); }; _local4++; }; return (affectTweens(removeTweenByIndex, _arg1, _local3)); } public static function splitTweens(_arg1:Number, _arg2:Array):uint{ var _local3:TweenListObj; var _local4:TweenListObj; var _local5:uint; var _local6:String; var _local7:Boolean; _local3 = _tweenList[_arg1]; _local4 = _local3.clone(false); _local5 = 0; while (_local5 < _arg2.length) { _local6 = _arg2[_local5]; if (Boolean(_local3.properties[_local6])){ _local3.properties[_local6] = undefined; delete _local3.properties[_local6]; }; _local5++; }; for (_local6 in _local4.properties) { _local7 = false; _local5 = 0; while (_local5 < _arg2.length) { if (_arg2[_local5] == _local6){ _local7 = true; break; }; _local5++; }; if (!_local7){ _local4.properties[_local6] = undefined; delete _local4.properties[_local6]; }; }; _tweenList.push(_local4); return ((_tweenList.length - 1)); } public static function updateFrame():void{ _currentTimeFrame++; } public static function resumeTweenByIndex(_arg1:Number):Boolean{ var _local2:TweenListObj; var _local3:Number; _local2 = _tweenList[_arg1]; if ((((_local2 == null)) || (!(_local2.isPaused)))){ return (false); }; _local3 = getCurrentTweeningTime(_local2); _local2.timeStart = (_local2.timeStart + (_local3 - _local2.timePaused)); _local2.timeComplete = (_local2.timeComplete + (_local3 - _local2.timePaused)); _local2.timePaused = undefined; _local2.isPaused = false; return (true); } public static function getVersion():String{ return ("AS3 1.31.71"); } public static function onEnterFrame(_arg1:Event):void{ var _local2:Boolean; updateTime(); updateFrame(); _local2 = false; _local2 = updateTweens(); if (!_local2){ stopEngine(); }; } public static function updateTime():void{ _currentTime = getTimer(); } private static function updateTweenByIndex(_arg1:Number):Boolean{ var tTweening:TweenListObj; var isOver:Boolean; var mustUpdate:Boolean; var nv:Number; var t:Number; var b:Number; var c:Number; var d:Number; var pName:String; var eventScope:Object; var tScope:Object; var cTime:Number; var tProperty:Object; var pv:Number; var i = _arg1; tTweening = _tweenList[i]; if ((((tTweening == null)) || (!(Boolean(tTweening.scope))))){ return (false); }; isOver = false; cTime = getCurrentTweeningTime(tTweening); if (cTime >= tTweening.timeStart){ tScope = tTweening.scope; if (tTweening.isCaller){ do { t = (((tTweening.timeComplete - tTweening.timeStart) / tTweening.count) * (tTweening.timesCalled + 1)); b = tTweening.timeStart; c = (tTweening.timeComplete - tTweening.timeStart); d = (tTweening.timeComplete - tTweening.timeStart); nv = tTweening.transition(t, b, c, d); } while (!(cTime >= nv)); } else { mustUpdate = (((((tTweening.skipUpdates < 1)) || (!(tTweening.skipUpdates)))) || ((tTweening.updatesSkipped >= tTweening.skipUpdates))); if (cTime >= tTweening.timeComplete){ isOver = true; mustUpdate = true; }; if (!tTweening.hasStarted){ if (Boolean(tTweening.onStart)){ eventScope = (Boolean(tTweening.onStartScope)) ? tTweening.onStartScope : tScope; try { tTweening.onStart.apply(eventScope, tTweening.onStartParams); } catch(e:Error) { handleError(tTweening, e, "onStart"); }; }; for (pName in tTweening.properties) { if (tTweening.properties[pName].isSpecialProperty){ if (Boolean(_specialPropertyList[pName].preProcess)){ tTweening.properties[pName].valueComplete = _specialPropertyList[pName].preProcess(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].originalValueComplete, tTweening.properties[pName].extra); }; pv = _specialPropertyList[pName].getValue(tScope, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra); } else { pv = tScope[pName]; }; tTweening.properties[pName].valueStart = (isNaN(pv)) ? tTweening.properties[pName].valueComplete : pv; }; mustUpdate = true; tTweening.hasStarted = true; }; if (mustUpdate){ for (pName in tTweening.properties) { tProperty = tTweening.properties[pName]; if (isOver){ nv = tProperty.valueComplete; } else { if (tProperty.hasModifier){ t = (cTime - tTweening.timeStart); d = (tTweening.timeComplete - tTweening.timeStart); nv = tTweening.transition(t, 0, 1, d, tTweening.transitionParams); nv = tProperty.modifierFunction(tProperty.valueStart, tProperty.valueComplete, nv, tProperty.modifierParameters); } else { t = (cTime - tTweening.timeStart); b = tProperty.valueStart; c = (tProperty.valueComplete - tProperty.valueStart); d = (tTweening.timeComplete - tTweening.timeStart); nv = tTweening.transition(t, b, c, d, tTweening.transitionParams); }; }; if (tTweening.rounded){ nv = Math.round(nv); }; if (tProperty.isSpecialProperty){ _specialPropertyList[pName].setValue(tScope, nv, _specialPropertyList[pName].parameters, tTweening.properties[pName].extra); } else { tScope[pName] = nv; }; }; tTweening.updatesSkipped = 0; if (Boolean(tTweening.onUpdate)){ eventScope = (Boolean(tTweening.onUpdateScope)) ? tTweening.onUpdateScope : tScope; try { tTweening.onUpdate.apply(eventScope, tTweening.onUpdateParams); } catch(e:Error) { handleError(tTweening, e, "onUpdate"); }; }; } else { tTweening.updatesSkipped++; }; }; if (((isOver) && (Boolean(tTweening.onComplete)))){ eventScope = (Boolean(tTweening.onCompleteScope)) ? tTweening.onCompleteScope : tScope; try { tTweening.onComplete.apply(eventScope, tTweening.onCompleteParams); } catch(e:Error) { handleError(tTweening, e, "onComplete"); }; }; return (!(isOver)); }; return (true); } public static function setTimeScale(_arg1:Number):void{ var _local2:Number; var _local3:Number; if (isNaN(_arg1)){ _arg1 = 1; }; if (_arg1 < 1E-5){ _arg1 = 1E-5; }; if (_arg1 != _timeScale){ if (_tweenList != null){ _local2 = 0; while (_local2 < _tweenList.length) { _local3 = getCurrentTweeningTime(_tweenList[_local2]); _tweenList[_local2].timeStart = (_local3 - (((_local3 - _tweenList[_local2].timeStart) * _timeScale) / _arg1)); _tweenList[_local2].timeComplete = (_local3 - (((_local3 - _tweenList[_local2].timeComplete) * _timeScale) / _arg1)); if (_tweenList[_local2].timePaused != undefined){ _tweenList[_local2].timePaused = (_local3 - (((_local3 - _tweenList[_local2].timePaused) * _timeScale) / _arg1)); }; _local2++; }; }; _timeScale = _arg1; }; } public static function resumeAllTweens():Boolean{ var _local1:Boolean; var _local2:uint; if (!Boolean(_tweenList)){ return (false); }; _local1 = false; _local2 = 0; while (_local2 < _tweenList.length) { resumeTweenByIndex(_local2); _local1 = true; _local2++; }; return (_local1); } private static function handleError(_arg1:TweenListObj, _arg2:Error, _arg3:String):void{ var eventScope:Object; var pTweening = _arg1; var pError = _arg2; var pCallBackName = _arg3; if (((Boolean(pTweening.onError)) && ((pTweening.onError is Function)))){ eventScope = (Boolean(pTweening.onErrorScope)) ? pTweening.onErrorScope : pTweening.scope; try { pTweening.onError.apply(eventScope, [pTweening.scope, pError]); } catch(metaError:Error) { printError(((((String(pTweening.scope) + " raised an error while executing the 'onError' handler. Original error:\n ") + pError.getStackTrace()) + "\nonError error: ") + metaError.getStackTrace())); }; } else { if (!Boolean(pTweening.onError)){ printError(((((String(pTweening.scope) + " raised an error while executing the '") + pCallBackName) + "'handler. \n") + pError.getStackTrace())); }; }; } private static function startEngine():void{ _engineExists = true; _tweenList = new Array(); __tweener_controller__ = new MovieClip(); __tweener_controller__.addEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame); _currentTimeFrame = 0; updateTime(); } public static function removeAllTweens():Boolean{ var _local1:Boolean; var _local2:uint; if (!Boolean(_tweenList)){ return (false); }; _local1 = false; _local2 = 0; while (_local2 < _tweenList.length) { removeTweenByIndex(_local2); _local1 = true; _local2++; }; return (_local1); } public static function addTween(_arg1:Object=null, _arg2:Object=null):Boolean{ var _local3:Number; var _local4:Number; var _local5:String; var _local6:Array; var _local7:Object; var _local8:Number; var _local9:Number; var _local10:Array; var _local11:Object; var _local12:Object; var _local13:Function; var _local14:Object; var _local15:TweenListObj; var _local16:Number; var _local17:Array; var _local18:Array; var _local19:Array; var _local20:String; if (!Boolean(_arg1)){ return (false); }; if ((_arg1 is Array)){ _local6 = _arg1.concat(); } else { _local6 = [_arg1]; }; _local7 = TweenListObj.makePropertiesChain(_arg2); if (!_inited){ init(); }; if (((!(_engineExists)) || (!(Boolean(__tweener_controller__))))){ startEngine(); }; _local8 = (isNaN(_local7.time)) ? 0 : _local7.time; _local9 = (isNaN(_local7.delay)) ? 0 : _local7.delay; _local10 = new Array(); _local11 = {time:true, delay:true, useFrames:true, skipUpdates:true, transition:true, transitionParams:true, onStart:true, onUpdate:true, onComplete:true, onOverwrite:true, onError:true, rounded:true, onStartParams:true, onUpdateParams:true, onCompleteParams:true, onOverwriteParams:true, onStartScope:true, onUpdateScope:true, onCompleteScope:true, onOverwriteScope:true, onErrorScope:true}; _local12 = new Object(); for (_local5 in _local7) { if (!_local11[_local5]){ if (_specialPropertySplitterList[_local5]){ _local17 = _specialPropertySplitterList[_local5].splitValues(_local7[_local5], _specialPropertySplitterList[_local5].parameters); _local3 = 0; while (_local3 < _local17.length) { if (_specialPropertySplitterList[_local17[_local3].name]){ _local18 = _specialPropertySplitterList[_local17[_local3].name].splitValues(_local17[_local3].value, _specialPropertySplitterList[_local17[_local3].name].parameters); _local4 = 0; while (_local4 < _local18.length) { _local10[_local18[_local4].name] = {valueStart:undefined, valueComplete:_local18[_local4].value, arrayIndex:_local18[_local4].arrayIndex, isSpecialProperty:false}; _local4++; }; } else { _local10[_local17[_local3].name] = {valueStart:undefined, valueComplete:_local17[_local3].value, arrayIndex:_local17[_local3].arrayIndex, isSpecialProperty:false}; }; _local3++; }; } else { if (_specialPropertyModifierList[_local5] != undefined){ _local19 = _specialPropertyModifierList[_local5].modifyValues(_local7[_local5]); _local3 = 0; while (_local3 < _local19.length) { _local12[_local19[_local3].name] = {modifierParameters:_local19[_local3].parameters, modifierFunction:_specialPropertyModifierList[_local5].getValue}; _local3++; }; } else { _local10[_local5] = {valueStart:undefined, valueComplete:_local7[_local5]}; }; }; }; }; for (_local5 in _local10) { if (_specialPropertyList[_local5] != undefined){ _local10[_local5].isSpecialProperty = true; } else { if (_local6[0][_local5] == undefined){ printError((((("The property '" + _local5) + "' doesn't seem to be a normal object property of ") + String(_local6[0])) + " or a registered special property.")); }; }; }; for (_local5 in _local12) { if (_local10[_local5] != undefined){ _local10[_local5].modifierParameters = _local12[_local5].modifierParameters; _local10[_local5].modifierFunction = _local12[_local5].modifierFunction; }; }; if (typeof(_local7.transition) == "string"){ _local20 = _local7.transition.toLowerCase(); _local13 = _transitionList[_local20]; } else { _local13 = _local7.transition; }; if (!Boolean(_local13)){ _local13 = _transitionList["easeoutexpo"]; }; _local3 = 0; while (_local3 < _local6.length) { _local14 = new Object(); for (_local5 in _local10) { _local14[_local5] = new PropertyInfoObj(_local10[_local5].valueStart, _local10[_local5].valueComplete, _local10[_local5].valueComplete, _local10[_local5].arrayIndex, {}, _local10[_local5].isSpecialProperty, _local10[_local5].modifierFunction, _local10[_local5].modifierParameters); }; if (_local7.useFrames == true){ _local15 = new TweenListObj(_local6[_local3], (_currentTimeFrame + (_local9 / _timeScale)), (_currentTimeFrame + ((_local9 + _local8) / _timeScale)), true, _local13, _local7.transitionParams); } else { _local15 = new TweenListObj(_local6[_local3], (_currentTime + ((_local9 * 1000) / _timeScale)), (_currentTime + (((_local9 * 1000) + (_local8 * 1000)) / _timeScale)), false, _local13, _local7.transitionParams); }; _local15.properties = _local14; _local15.onStart = _local7.onStart; _local15.onUpdate = _local7.onUpdate; _local15.onComplete = _local7.onComplete; _local15.onOverwrite = _local7.onOverwrite; _local15.onError = _local7.onError; _local15.onStartParams = _local7.onStartParams; _local15.onUpdateParams = _local7.onUpdateParams; _local15.onCompleteParams = _local7.onCompleteParams; _local15.onOverwriteParams = _local7.onOverwriteParams; _local15.onStartScope = _local7.onStartScope; _local15.onUpdateScope = _local7.onUpdateScope; _local15.onCompleteScope = _local7.onCompleteScope; _local15.onOverwriteScope = _local7.onOverwriteScope; _local15.onErrorScope = _local7.onErrorScope; _local15.rounded = _local7.rounded; _local15.skipUpdates = _local7.skipUpdates; removeTweensByTime(_local15.scope, _local15.properties, _local15.timeStart, _local15.timeComplete); _tweenList.push(_local15); if ((((_local8 == 0)) && ((_local9 == 0)))){ _local16 = (_tweenList.length - 1); updateTweenByIndex(_local16); removeTweenByIndex(_local16); }; _local3++; }; return (true); } public static function registerTransition(_arg1:String, _arg2:Function):void{ if (!_inited){ init(); }; _transitionList[_arg1] = _arg2; } public static function printError(_arg1:String):void{ trace(("## [Tweener] Error: " + _arg1)); } private static function affectTweens(_arg1:Function, _arg2:Object, _arg3:Array):Boolean{ var _local4:Boolean; var _local5:uint; var _local6:Array; var _local7:uint; var _local8:uint; var _local9:uint; _local4 = false; if (!Boolean(_tweenList)){ return (false); }; _local5 = 0; while (_local5 < _tweenList.length) { if (((_tweenList[_local5]) && ((_tweenList[_local5].scope == _arg2)))){ if (_arg3.length == 0){ _arg1(_local5); _local4 = true; } else { _local6 = new Array(); _local7 = 0; while (_local7 < _arg3.length) { if (Boolean(_tweenList[_local5].properties[_arg3[_local7]])){ _local6.push(_arg3[_local7]); }; _local7++; }; if (_local6.length > 0){ _local8 = AuxFunctions.getObjectLength(_tweenList[_local5].properties); if (_local8 == _local6.length){ _arg1(_local5); _local4 = true; } else { _local9 = splitTweens(_local5, _local6); _arg1(_local9); _local4 = true; }; }; }; }; _local5++; }; return (_local4); } public static function getTweens(_arg1:Object):Array{ var _local2:uint; var _local3:String; var _local4:Array; if (!Boolean(_tweenList)){ return ([]); }; _local4 = new Array(); _local2 = 0; while (_local2 < _tweenList.length) { if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){ for (_local3 in _tweenList[_local2].properties) { _local4.push(_local3); }; }; _local2++; }; return (_local4); } public static function isTweening(_arg1:Object):Boolean{ var _local2:uint; if (!Boolean(_tweenList)){ return (false); }; _local2 = 0; while (_local2 < _tweenList.length) { if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){ return (true); }; _local2++; }; return (false); } public static function pauseTweenByIndex(_arg1:Number):Boolean{ var _local2:TweenListObj; _local2 = _tweenList[_arg1]; if ((((_local2 == null)) || (_local2.isPaused))){ return (false); }; _local2.timePaused = getCurrentTweeningTime(_local2); _local2.isPaused = true; return (true); } public static function getCurrentTweeningTime(_arg1:Object):Number{ return ((_arg1.useFrames) ? _currentTimeFrame : _currentTime); } public static function getTweenCount(_arg1:Object):Number{ var _local2:uint; var _local3:Number; if (!Boolean(_tweenList)){ return (0); }; _local3 = 0; _local2 = 0; while (_local2 < _tweenList.length) { if (((Boolean(_tweenList[_local2])) && ((_tweenList[_local2].scope == _arg1)))){ _local3 = (_local3 + AuxFunctions.getObjectLength(_tweenList[_local2].properties)); }; _local2++; }; return (_local3); } private static function stopEngine():void{ _engineExists = false; _tweenList = null; _currentTime = 0; _currentTimeFrame = 0; __tweener_controller__.removeEventListener(Event.ENTER_FRAME, Tweener.onEnterFrame); __tweener_controller__ = null; } public static function removeTweensByTime(_arg1:Object, _arg2:Object, _arg3:Number, _arg4:Number):Boolean{ var removed:Boolean; var removedLocally:Boolean; var i:uint; var tl:uint; var pName:String; var eventScope:Object; var p_scope = _arg1; var p_properties = _arg2; var p_timeStart = _arg3; var p_timeComplete = _arg4; removed = false; tl = _tweenList.length; i = 0; while (i < tl) { if (((Boolean(_tweenList[i])) && ((p_scope == _tweenList[i].scope)))){ if ((((p_timeComplete > _tweenList[i].timeStart)) && ((p_timeStart < _tweenList[i].timeComplete)))){ removedLocally = false; for (pName in _tweenList[i].properties) { if (Boolean(p_properties[pName])){ if (Boolean(_tweenList[i].onOverwrite)){ eventScope = (Boolean(_tweenList[i].onOverwriteScope)) ? _tweenList[i].onOverwriteScope : _tweenList[i].scope; try { _tweenList[i].onOverwrite.apply(eventScope, _tweenList[i].onOverwriteParams); } catch(e:Error) { handleError(_tweenList[i], e, "onOverwrite"); }; }; _tweenList[i].properties[pName] = undefined; delete _tweenList[i].properties[pName]; removedLocally = true; removed = true; }; }; if (removedLocally){ if (AuxFunctions.getObjectLength(_tweenList[i].properties) == 0){ removeTweenByIndex(i); }; }; }; }; i = (i + 1); }; return (removed); } public static function registerSpecialPropertySplitter(_arg1:String, _arg2:Function, _arg3:Array=null):void{ var _local4:SpecialPropertySplitter; if (!_inited){ init(); }; _local4 = new SpecialPropertySplitter(_arg2, _arg3); _specialPropertySplitterList[_arg1] = _local4; } public static function removeTweenByIndex(_arg1:Number, _arg2:Boolean=false):Boolean{ _tweenList[_arg1] = null; if (_arg2){ _tweenList.splice(_arg1, 1); }; return (true); } public static function resumeTweens(_arg1:Object, ... _args):Boolean{ var _local3:Array; var _local4:uint; _local3 = new Array(); _local4 = 0; while (_local4 < _args.length) { if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){ _local3.push(_args[_local4]); }; _local4++; }; return (affectTweens(resumeTweenByIndex, _arg1, _local3)); } public static function pauseTweens(_arg1:Object, ... _args):Boolean{ var _local3:Array; var _local4:uint; _local3 = new Array(); _local4 = 0; while (_local4 < _args.length) { if ((((typeof(_args[_local4]) == "string")) && (!(AuxFunctions.isInArray(_args[_local4], _local3))))){ _local3.push(_args[_local4]); }; _local4++; }; return (affectTweens(pauseTweenByIndex, _arg1, _local3)); } } }//package caurina.transitions
Section 13
//TweenListObj (caurina.transitions.TweenListObj) package caurina.transitions { public class TweenListObj { public var onUpdate:Function; public var useFrames:Boolean; public var hasStarted:Boolean; public var onOverwriteParams:Array; public var timeStart:Number; public var count:Number; public var timeComplete:Number; public var onStartParams:Array; public var onUpdateScope:Object; public var rounded:Boolean; public var onUpdateParams:Array; public var properties:Object; public var onComplete:Function; public var transitionParams:Object; public var updatesSkipped:Number; public var onStart:Function; public var onOverwriteScope:Object; public var skipUpdates:Number; public var onStartScope:Object; public var scope:Object; public var transition:Function; public var timePaused:Number; public var onCompleteParams:Array; public var timesCalled:Number; public var isCaller:Boolean; public var onError:Function; public var onErrorScope:Object; public var onOverwrite:Function; public var isPaused:Boolean; public var waitFrames:Boolean; public var onCompleteScope:Object; public function TweenListObj(_arg1:Object, _arg2:Number, _arg3:Number, _arg4:Boolean, _arg5:Function, _arg6:Object){ scope = _arg1; timeStart = _arg2; timeComplete = _arg3; useFrames = _arg4; transition = _arg5; transitionParams = _arg6; properties = new Object(); isPaused = false; timePaused = undefined; isCaller = false; updatesSkipped = 0; timesCalled = 0; skipUpdates = 0; hasStarted = false; } public function clone(_arg1:Boolean):TweenListObj{ var _local2:TweenListObj; var _local3:String; _local2 = new TweenListObj(scope, timeStart, timeComplete, useFrames, transition, transitionParams); _local2.properties = new Array(); for (_local3 in properties) { _local2.properties[_local3] = properties[_local3].clone(); }; _local2.skipUpdates = skipUpdates; _local2.updatesSkipped = updatesSkipped; if (!_arg1){ _local2.onStart = onStart; _local2.onUpdate = onUpdate; _local2.onComplete = onComplete; _local2.onOverwrite = onOverwrite; _local2.onError = onError; _local2.onStartParams = onStartParams; _local2.onUpdateParams = onUpdateParams; _local2.onCompleteParams = onCompleteParams; _local2.onOverwriteParams = onOverwriteParams; _local2.onStartScope = onStartScope; _local2.onUpdateScope = onUpdateScope; _local2.onCompleteScope = onCompleteScope; _local2.onOverwriteScope = onOverwriteScope; _local2.onErrorScope = onErrorScope; }; _local2.rounded = rounded; _local2.isPaused = isPaused; _local2.timePaused = timePaused; _local2.isCaller = isCaller; _local2.count = count; _local2.timesCalled = timesCalled; _local2.waitFrames = waitFrames; _local2.hasStarted = hasStarted; return (_local2); } public function toString():String{ var _local1:String; var _local2:Boolean; var _local3:String; _local1 = "\n[TweenListObj "; _local1 = (_local1 + ("scope:" + String(scope))); _local1 = (_local1 + ", properties:"); _local2 = true; for (_local3 in properties) { if (!_local2){ _local1 = (_local1 + ","); }; _local1 = (_local1 + ("[name:" + properties[_local3].name)); _local1 = (_local1 + (",valueStart:" + properties[_local3].valueStart)); _local1 = (_local1 + (",valueComplete:" + properties[_local3].valueComplete)); _local1 = (_local1 + "]"); _local2 = false; }; _local1 = (_local1 + (", timeStart:" + String(timeStart))); _local1 = (_local1 + (", timeComplete:" + String(timeComplete))); _local1 = (_local1 + (", useFrames:" + String(useFrames))); _local1 = (_local1 + (", transition:" + String(transition))); _local1 = (_local1 + (", transitionParams:" + String(transitionParams))); if (skipUpdates){ _local1 = (_local1 + (", skipUpdates:" + String(skipUpdates))); }; if (updatesSkipped){ _local1 = (_local1 + (", updatesSkipped:" + String(updatesSkipped))); }; if (Boolean(onStart)){ _local1 = (_local1 + (", onStart:" + String(onStart))); }; if (Boolean(onUpdate)){ _local1 = (_local1 + (", onUpdate:" + String(onUpdate))); }; if (Boolean(onComplete)){ _local1 = (_local1 + (", onComplete:" + String(onComplete))); }; if (Boolean(onOverwrite)){ _local1 = (_local1 + (", onOverwrite:" + String(onOverwrite))); }; if (Boolean(onError)){ _local1 = (_local1 + (", onError:" + String(onError))); }; if (onStartParams){ _local1 = (_local1 + (", onStartParams:" + String(onStartParams))); }; if (onUpdateParams){ _local1 = (_local1 + (", onUpdateParams:" + String(onUpdateParams))); }; if (onCompleteParams){ _local1 = (_local1 + (", onCompleteParams:" + String(onCompleteParams))); }; if (onOverwriteParams){ _local1 = (_local1 + (", onOverwriteParams:" + String(onOverwriteParams))); }; if (onStartScope){ _local1 = (_local1 + (", onStartScope:" + String(onStartScope))); }; if (onUpdateScope){ _local1 = (_local1 + (", onUpdateScope:" + String(onUpdateScope))); }; if (onCompleteScope){ _local1 = (_local1 + (", onCompleteScope:" + String(onCompleteScope))); }; if (onOverwriteScope){ _local1 = (_local1 + (", onOverwriteScope:" + String(onOverwriteScope))); }; if (onErrorScope){ _local1 = (_local1 + (", onErrorScope:" + String(onErrorScope))); }; if (rounded){ _local1 = (_local1 + (", rounded:" + String(rounded))); }; if (isPaused){ _local1 = (_local1 + (", isPaused:" + String(isPaused))); }; if (timePaused){ _local1 = (_local1 + (", timePaused:" + String(timePaused))); }; if (isCaller){ _local1 = (_local1 + (", isCaller:" + String(isCaller))); }; if (count){ _local1 = (_local1 + (", count:" + String(count))); }; if (timesCalled){ _local1 = (_local1 + (", timesCalled:" + String(timesCalled))); }; if (waitFrames){ _local1 = (_local1 + (", waitFrames:" + String(waitFrames))); }; if (hasStarted){ _local1 = (_local1 + (", hasStarted:" + String(hasStarted))); }; _local1 = (_local1 + "]\n"); return (_local1); } public static function makePropertiesChain(_arg1:Object):Object{ var _local2:Object; var _local3:Object; var _local4:Object; var _local5:Object; var _local6:Number; var _local7:Number; var _local8:Number; _local2 = _arg1.base; if (_local2){ _local3 = {}; if ((_local2 is Array)){ _local4 = []; _local8 = 0; while (_local8 < _local2.length) { _local4.push(_local2[_local8]); _local8++; }; } else { _local4 = [_local2]; }; _local4.push(_arg1); _local6 = _local4.length; _local7 = 0; while (_local7 < _local6) { if (_local4[_local7]["base"]){ _local5 = AuxFunctions.concatObjects(makePropertiesChain(_local4[_local7]["base"]), _local4[_local7]); } else { _local5 = _local4[_local7]; }; _local3 = AuxFunctions.concatObjects(_local3, _local5); _local7++; }; if (_local3["base"]){ delete _local3["base"]; }; return (_local3); //unresolved jump }; return (_arg1); } } }//package caurina.transitions
Section 14
//Adlib (com.tweegee.games.Adlib) package com.tweegee.games { import flash.events.*; import flash.media.*; import flash.utils.*; import flash.errors.*; public class Adlib { public static const ALL_SOUNDS:String = "all"; public static const BG_ONLY:String = "bg"; public static const FX_ONLY:String = "fx"; public static var sounds:Object = new Object(); public static var channels:Dictionary = new Dictionary(true); public static var fxVolume:Number = 1; public static var globalVolume:Number = 1; public static var oldVolume:Object = {fxVolume:1, bgVolume:1}; public static var sequenceSounds:Object = new Object(); public static var sequenceCounter:uint = 0; public static var counter:uint = 0; public static var bgVolume:Number = 1; public function Adlib():void{ throw (new IllegalOperationError("Adlib is an abstract class and cannot be instantiated")); } public static function getParams(_arg1:String):Object{ if (sounds[_arg1] == null){ trace(("Adlib Error: Could not find the sound " + _arg1)); return (null); }; return (sounds[_arg1]); } private static function _removeSequenceSound(_arg1:Object):void{ delete sequenceSounds[_arg1.name]; } public static function setParams(_arg1:String, _arg2:Object):void{ if (sounds[_arg1] == null){ trace(("Adlib Error: Could not find the sound " + _arg1)); } else { if (_arg2.volume != null){ sounds[_arg1].volume = _arg2.volume; }; if (_arg2.pan != null){ sounds[_arg1].pan = _arg2.pan; }; if (_arg2.loop != null){ sounds[_arg1].loop = _arg2.loop; }; if (_arg2.once != null){ sounds[_arg1].once = _arg2.once; }; if (_arg2.delay != null){ sounds[_arg1].delay = _arg2.delay; }; if (_arg2.isBG != null){ sounds[_arg1].isBG = _arg2.isBG; }; if (_arg2.onComplete != null){ sounds[_arg1].onComplete = _arg2.onComplete; }; if (_arg2.onCompleteParams != null){ sounds[_arg1].onCompleteParams = _arg2.onCompleteParams; }; }; } public static function addSequence(... _args):void{ var _local2:Object; var _local3:Object; var _local4:Object; var _local5:Object; for each (_local5 in _args) { if ((_local5 is Sound)){ _local2 = new Object(); _local2.volume = 1; _local2.pan = 0; _local2.loop = 0; _local2.start = 0; _local2.sound = _local5; } else { if ((_local5 is String)){ if (((!((sounds[_local5] == null))) && ((sounds[_local5].dispose == false)))){ _local2 = new Object(); _local2.sound = sounds[_local5].sound; _local2.volume = sounds[_local5].volume; _local2.pan = sounds[_local5].pan; _local2.loop = sounds[_local5].loop; _local2.start = sounds[_local5].start; _local2.onComplete = sounds[_local5].onComplete; _local2.onCompleteParams = sounds[_local5].onCompleteParams; }; } else { _local2 = _local5; if (_local2.volume == null){ _local2.volume = 1; }; if (_local2.pan == null){ _local2.pan = 0; }; if (_local2.loop == null){ _local2.loop = 0; }; if (_local2.start == null){ _local2.start = 0; }; }; }; _local2.name = sequenceCounter; var _local8 = sequenceCounter++; sequenceSounds[_local8] = _local2; if (_local3 != null){ _local3.nextSound = _local2; }; _local3 = _local2; if (_local4 == null){ _local4 = _local2; }; }; _playSequenceSound(_local4); } public static function unMute(_arg1:String="fx"):void{ switch (_arg1){ case FX_ONLY: fxVolume = oldVolume.fxVolume; break; case BG_ONLY: bgVolume = oldVolume.bgVolume; break; case ALL_SOUNDS: fxVolume = oldVolume.fxVolume; bgVolume = oldVolume.bgVolume; break; }; _setVolume(); } private static function _playSound(_arg1:Object):void{ _arg1.channel = _arg1.sound.play(_arg1.start, _arg1.loop, new SoundTransform((_arg1.volume * int((_arg1.isBG) ? bgVolume : fxVolume)), _arg1.pan)); if (_arg1.channel != null){ _arg1.channel.addEventListener(Event.SOUND_COMPLETE, handleSoundComplete); channels[_arg1.channel] = _arg1.name; }; } private static function _setVolume():void{ var _local1:Object; for each (_local1 in sounds) { if (_local1.channel != null){ _local1.channel.soundTransform = new SoundTransform(((_local1.volume * _local1.isBG)) ? bgVolume : fxVolume, _local1.pan); }; }; } public static function getVolume(_arg1:String):Number{ switch (_arg1){ case FX_ONLY: return (fxVolume); case BG_ONLY: return (bgVolume); default: return (NaN); }; } public static function mute(_arg1:String="fx"):void{ switch (_arg1){ case FX_ONLY: fxVolume = 0; break; case BG_ONLY: bgVolume = 0; break; case ALL_SOUNDS: fxVolume = 0; bgVolume = 0; break; }; _setVolume(); } private static function checkAndPlay(_arg1:Object):Boolean{ if ((((_arg1.once == true)) && (isPlaying(_arg1.className)))){ return (false); }; _playSound(_arg1); return (true); } public static function setVolume(_arg1:Number, _arg2:String):void{ fxVolume = (oldVolume.fxVolume = _arg1); bgVolume = (oldVolume.bgVolume = _arg1); _setVolume(); } private static function handleSequenceSoundComplete(_arg1:Event):void{ var _local2:String; var _local3:Object; _local2 = channels[_arg1.currentTarget]; _arg1.currentTarget.removeEventListener(Event.SOUND_COMPLETE, handleSequenceSoundComplete); _local3 = sequenceSounds[_local2]; if (_local3.onComplete != null){ _local3.onComplete.apply(NaN, _local3.onCompleteParams); }; delete _local3["channel"]; delete channels[_arg1.currentTarget]; if (_local3.nextSound != null){ _playSequenceSound(_local3.nextSound); }; _removeSequenceSound(_local3); } public static function isMute(_arg1:String):Boolean{ switch (_arg1){ case FX_ONLY: return ((fxVolume == 0)); case BG_ONLY: return ((bgVolume == 0)); case ALL_SOUNDS: return ((((fxVolume == 0)) && ((bgVolume == 0)))); }; return (false); } private static function isPlaying(_arg1:String):Boolean{ var _local2:Object; for each (_local2 in sounds) { if ((((_arg1 == _local2.className)) && (!((_local2.channel == null))))){ return (true); }; }; return (false); } private static function handleSoundComplete(_arg1:Event):void{ var _local2:String; var _local3:Object; _local2 = channels[_arg1.currentTarget]; _arg1.currentTarget.removeEventListener(Event.SOUND_COMPLETE, handleSoundComplete); _local3 = sounds[_local2]; if (_local3.onComplete != null){ _local3.onComplete.apply(NaN, _local3.onCompleteParams); }; delete _local3["channel"]; delete channels[_arg1.currentTarget]; if (_local3.loop == int.MAX_VALUE){ checkAndPlay(_local3); } else { if (_local3.dispose){ _removeSound(_local3); }; }; } public static function playSound(_arg1:String):void{ var _local2:Object; if (sounds[_arg1] == null){ trace(("Adlib Error: Could not find the sound " + _arg1)); } else { _local2 = sounds[_arg1]; if (_local2.delay > 0){ sounds[_arg1].timeoutId = setTimeout(checkAndPlay, _local2.delay, _local2); } else { checkAndPlay(_local2); }; }; } public static function removeSound(_arg1:String, _arg2:Boolean=true):void{ if (sounds[_arg1] == null){ trace(("Adlib Error: Could not find the sound " + _arg1)); } else { if (_arg2){ _stopSound(sounds[_arg1]); }; _removeSound(sounds[_arg1]); }; } private static function _removeSound(_arg1:Object):void{ if (_arg1.timeoutId != null){ clearTimeout(_arg1.timeoutId); }; delete sounds[_arg1.name]; } public static function stopSound(_arg1:String):void{ if (sounds[_arg1] == null){ trace(("Adlib Error: Could not find the sound " + _arg1)); } else { if (sounds[_arg1].channel != null){ _stopSound(sounds[_arg1]); }; }; } public static function addSound(_arg1:Sound, _arg2:Object=null):void{ if (_arg2 == null){ _arg2 = new Object(); }; _arg2.dispose = false; if (_arg2.name == null){ if (_arg2.dontPlay == true){ return; }; _arg2.name = generateName(); _arg2.dispose = true; } else { if (sounds[_arg2.name] != null){ _stopSound(sounds[_arg2.name]); }; }; _arg2.sound = _arg1; _arg2.className = getQualifiedClassName(_arg1); if (_arg2.volume == null){ _arg2.volume = 1; }; if (_arg2.pan == null){ _arg2.pan = 0; }; if (_arg2.loop == null){ _arg2.loop = 0; }; if (_arg2.once == null){ _arg2.once = false; }; if (_arg2.delay == null){ _arg2.delay = 0; }; if (_arg2.start == null){ _arg2.start = 0; }; if (_arg2.isBG == null){ _arg2.isBG = false; }; sounds[_arg2.name] = _arg2; if (_arg2.dontPlay != true){ if (_arg2.delay > 0){ sounds[_arg2.name].timeoutId = setTimeout(checkAndPlay, _arg2.delay, _arg2); } else { checkAndPlay(_arg2); }; }; } private static function generateName():String{ return (String(counter++)); } private static function _playSequenceSound(_arg1:Object):void{ _arg1.channel = _arg1.sound.play(_arg1.start, _arg1.loop, new SoundTransform(((_arg1.volume * _arg1.isBG)) ? bgVolume : fxVolume, _arg1.pan)); if (_arg1.channel != null){ _arg1.channel.addEventListener(Event.SOUND_COMPLETE, handleSequenceSoundComplete); channels[_arg1.channel] = _arg1.name; }; } private static function _stopSound(_arg1:Object):void{ if (_arg1.channel != null){ delete channels[_arg1.channel]; _arg1.channel.removeEventListener(Event.SOUND_COMPLETE, handleSoundComplete); _arg1.channel.stop(); _arg1.channel = null; if (_arg1.dispose){ _removeSound(_arg1); }; }; } } }//package com.tweegee.games
Section 15
//ninSword_104 (Hay_ya_sa_fla.ninSword_104) package Hay_ya_sa_fla { import flash.display.*; public dynamic class ninSword_104 extends MovieClip { public var hit:MovieClip; } }//package Hay_ya_sa_fla
Section 16
//playAgainBtn_285 (Hay_ya_sa_fla.playAgainBtn_285) package Hay_ya_sa_fla { import flash.display.*; public dynamic class playAgainBtn_285 extends MovieClip { public function playAgainBtn_285(){ addFrameScript(0, frame1, 22, frame23); } function frame1(){ stop(); } function frame23(){ gotoAndPlay(2); } } }//package Hay_ya_sa_fla
Section 17
//shoe2En6_37 (Hay_ya_sa_fla.shoe2En6_37) package Hay_ya_sa_fla { import flash.display.*; public dynamic class shoe2En6_37 extends MovieClip { public var hit:MovieClip; } }//package Hay_ya_sa_fla
Section 18
//shoe2En7_22 (Hay_ya_sa_fla.shoe2En7_22) package Hay_ya_sa_fla { import flash.display.*; public dynamic class shoe2En7_22 extends MovieClip { public var hit:MovieClip; } }//package Hay_ya_sa_fla
Section 19
//shoeHit_260 (Hay_ya_sa_fla.shoeHit_260) package Hay_ya_sa_fla { import flash.display.*; public dynamic class shoeHit_260 extends MovieClip { public var hit:MovieClip; } }//package Hay_ya_sa_fla
Section 20
//startBtn_282 (Hay_ya_sa_fla.startBtn_282) package Hay_ya_sa_fla { import flash.display.*; public dynamic class startBtn_282 extends MovieClip { public function startBtn_282(){ addFrameScript(0, frame1, 22, frame23); } function frame1(){ stop(); } function frame23(){ gotoAndPlay(2); } } }//package Hay_ya_sa_fla
Section 21
//swordEn1_213 (Hay_ya_sa_fla.swordEn1_213) package Hay_ya_sa_fla { import flash.display.*; public dynamic class swordEn1_213 extends MovieClip { public var hit:MovieClip; } }//package Hay_ya_sa_fla
Section 22
//swordEn2_174 (Hay_ya_sa_fla.swordEn2_174) package Hay_ya_sa_fla { import flash.display.*; public dynamic class swordEn2_174 extends MovieClip { public var hit:MovieClip; } }//package Hay_ya_sa_fla
Section 23
//swordEn3_72 (Hay_ya_sa_fla.swordEn3_72) package Hay_ya_sa_fla { import flash.display.*; public dynamic class swordEn3_72 extends MovieClip { public var hit:MovieClip; } }//package Hay_ya_sa_fla
Section 24
//swordEn4_117 (Hay_ya_sa_fla.swordEn4_117) package Hay_ya_sa_fla { import flash.display.*; public dynamic class swordEn4_117 extends MovieClip { public var hit:MovieClip; } }//package Hay_ya_sa_fla
Section 25
//swordEn5_130 (Hay_ya_sa_fla.swordEn5_130) package Hay_ya_sa_fla { import flash.display.*; public dynamic class swordEn5_130 extends MovieClip { public var hit:MovieClip; } }//package Hay_ya_sa_fla
Section 26
//swordEn6_39 (Hay_ya_sa_fla.swordEn6_39) package Hay_ya_sa_fla { import flash.display.*; public dynamic class swordEn6_39 extends MovieClip { public var hit:MovieClip; } }//package Hay_ya_sa_fla
Section 27
//swordEn7_24 (Hay_ya_sa_fla.swordEn7_24) package Hay_ya_sa_fla { import flash.display.*; public dynamic class swordEn7_24 extends MovieClip { public var hit:MovieClip; } }//package Hay_ya_sa_fla
Section 28
//swordMov_268 (Hay_ya_sa_fla.swordMov_268) package Hay_ya_sa_fla { import flash.display.*; public dynamic class swordMov_268 extends MovieClip { public var hit:MovieClip; } }//package Hay_ya_sa_fla
Section 29
//AdlibToolbar (AdlibToolbar) package { import flash.events.*; import flash.filters.*; import flash.display.*; import flash.utils.*; public class AdlibToolbar extends MovieClip { private const OFF:Object; private const ON:Object; private var shown:Boolean; private var _icon:String; private var _height:Number;// = 0 private var buttons:Dictionary; private var _position:String; private var _animate:Boolean; public var mc_Toolbar:MovieClip; private var _width:Number;// = 0 private var spriteIcon:MovieClip; public function AdlibToolbar():void{ ON = new ColorMatrixFilter([1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0]); OFF = new ColorMatrixFilter([1, 0, 0, 0, -100, 0, 1, 0, 0, -100, 0, 0, 1, 0, -100, 0, 0, 0, 1, 0, 0, 0, 0, 0]); _width = 0; _height = 0; super(); addFrameScript(0, frame1, 14, frame15, 29, frame30); buttons = new Dictionary(); initGUI(); draw(); initButton(mc_Toolbar.btn_FX); initButton(mc_Toolbar.btn_All); mc_Toolbar.mc_IconHolder.addEventListener(MouseEvent.ROLL_OVER, hanldeIconButtonEvent); mc_Toolbar.mc_IconHolder.addEventListener(MouseEvent.ROLL_OUT, hanldeIconButtonEvent); mc_Toolbar.mc_IconHolder.addEventListener(MouseEvent.CLICK, hanldeIconButtonEvent); animate = true; position = "top"; icon = "SpriteSoundIcon"; } private function hanldeIconButtonEvent(_arg1:MouseEvent):void{ switch (_arg1.type){ case MouseEvent.ROLL_OVER: if (spriteIcon != null){ spriteIcon.filters = new Array(new DropShadowFilter(0, 0, 0xFFFFFF, 1, 5, 5, 10)); }; break; case MouseEvent.ROLL_OUT: if (spriteIcon != null){ spriteIcon.filters = new Array(new DropShadowFilter(1, 45, 0, 1, 3, 3, 1, 3)); }; break; case MouseEvent.CLICK: if (shown){ hide(); } else { show(); }; break; }; } private function initGUI():void{ _width = width; _height = height; scaleX = 1; scaleY = 1; } public function get position():String{ return (_position); } protected function draw():void{ } private function initButton(_arg1:MovieClip):void{ _arg1.buttonMode = true; _arg1.addEventListener(MouseEvent.ROLL_OVER, handleButtonEvent); _arg1.addEventListener(MouseEvent.ROLL_OUT, handleButtonEvent); _arg1.addEventListener(MouseEvent.MOUSE_UP, handleButtonEvent); _arg1.addEventListener(MouseEvent.MOUSE_DOWN, handleButtonEvent); _arg1.addEventListener(MouseEvent.CLICK, handleButtonEvent); buttons[_arg1] = true; } public function set position(_arg1:String):void{ _position = _arg1; if (_position == "top"){ gotoAndStop(1); mc_Toolbar.mc_IconHolder.y = 95; } else { if (_position == "bottom"){ mc_Toolbar.mc_IconHolder.y = -46; gotoAndStop(15); }; }; } private function handleButtonEvent(_arg1:MouseEvent):void{ var button:MovieClip; var Adlib:Class; var evt = _arg1; button = MovieClip(evt.currentTarget); switch (evt.type){ case MouseEvent.ROLL_OVER: buttons[button]; button.filters = new Array((buttons[button]) ? ON : OFF, new DropShadowFilter(0, 0, 0xFFFFFF, 1, 3, 3, 1, 3)); break; case MouseEvent.ROLL_OUT: case MouseEvent.MOUSE_UP: button.filters = new Array((buttons[button]) ? ON : OFF, new DropShadowFilter(1, 45, 0, 1, 3, 3, 1, 3)); break; case MouseEvent.MOUSE_DOWN: button.filters = [(buttons[button]) ? ON : OFF, new DropShadowFilter(1, 45, 0, 1, 3, 3, 1, 3, true), new DropShadowFilter(0, 0, 0xFFFFFF, 1, 5, 5, 1.5, 3)]; break; case MouseEvent.CLICK: hide(); buttons[button] = !(buttons[button]); button.filters = new Array((buttons[button]) ? ON : OFF, new DropShadowFilter(1, 45, 0, 1, 3, 3, 1, 3)); try { Adlib = (getDefinitionByName("com.tweegee.games.Adlib") as Class); if (button == mc_Toolbar.btn_FX){ if (Adlib["isMute"].call(NaN, Adlib.FX_ONLY)){ Adlib["unMute"].call(NaN, Adlib.FX_ONLY); } else { Adlib["mute"].call(NaN, Adlib.FX_ONLY); }; } else { if (button == mc_Toolbar.btn_All){ if (Adlib["isMute"].call(NaN, Adlib.BG_ONLY)){ Adlib["unMute"].call(NaN, Adlib.BG_ONLY); } else { Adlib["mute"].call(NaN, Adlib.BG_ONLY); }; }; }; } catch(err:Error) { }; break; }; } private function hide():void{ if (shown){ if (position == "top"){ gotoAndPlay(16); } else { if (position == "bottom"){ gotoAndPlay(2); }; }; shown = false; }; } function frame1(){ stop(); } public function setSize(_arg1:Number, _arg2:Number):void{ _width = _arg1; _height = _arg2; draw(); } function frame15(){ stop(); } public function get icon():String{ return (_icon); } function frame30(){ stop(); } public function set animate(_arg1:Boolean):void{ _animate = _arg1; if (_animate){ mc_Toolbar.mc_IconHolder.play(); } else { mc_Toolbar.mc_IconHolder.gotoAndStop(15); }; } public function get animate():Boolean{ return (_animate); } public function set icon(_arg1:String):void{ var iconClass:Class; var value = _arg1; _icon = value; try { iconClass = (getDefinitionByName(icon) as Class); if (iconClass != null){ spriteIcon = (new (iconClass) as MovieClip); spriteIcon.buttonMode = true; mc_Toolbar.mc_IconHolder.mc_Icon.addChild(spriteIcon); spriteIcon.filters = new Array(new DropShadowFilter(1, 45, 0, 1, 3, 3, 1, 3)); mc_Toolbar.mc_IconHolder.mc_Icon.getChildAt(0).alpha = 0; }; } catch(err:Error) { }; animate = animate; } private function show():void{ if (!shown){ if (position == "top"){ gotoAndPlay(2); } else { if (position == "bottom"){ gotoAndPlay(16); }; }; shown = true; }; } } }//package
Section 30
//bird (bird) package { import flash.display.*; public dynamic class bird extends MovieClip { } }//package
Section 31
//bonusHit (bonusHit) package { import flash.display.*; public dynamic class bonusHit extends MovieClip { } }//package
Section 32
//bridgeTop (bridgeTop) package { import flash.display.*; public dynamic class bridgeTop extends MovieClip { } }//package
Section 33
//comicsBubble1 (comicsBubble1) package { import flash.display.*; public dynamic class comicsBubble1 extends MovieClip { } }//package
Section 34
//comicsBubble2 (comicsBubble2) package { import flash.display.*; public dynamic class comicsBubble2 extends MovieClip { } }//package
Section 35
//comicsWord1 (comicsWord1) package { import flash.display.*; public dynamic class comicsWord1 extends MovieClip { } }//package
Section 36
//dissapear (dissapear) package { import flash.media.*; public dynamic class dissapear extends Sound { } }//package
Section 37
//drums (drums) package { import flash.media.*; public dynamic class drums extends Sound { } }//package
Section 38
//drumsShort (drumsShort) package { import flash.media.*; public dynamic class drumsShort extends Sound { } }//package
Section 39
//enAx1 (enAx1) package { import flash.media.*; public dynamic class enAx1 extends Sound { } }//package
Section 40
//enAx2 (enAx2) package { import flash.media.*; public dynamic class enAx2 extends Sound { } }//package
Section 41
//enAx3 (enAx3) package { import flash.media.*; public dynamic class enAx3 extends Sound { } }//package
Section 42
//endScreen (endScreen) package { import flash.display.*; import flash.text.*; public dynamic class endScreen extends MovieClip { public var playAgain_btn:MovieClip; public var score_txt:TextField; } }//package
Section 43
//Enemy (Enemy) package { import flash.events.*; import caurina.transitions.*; import flash.display.*; import com.tweegee.games.*; import caurina.transitions.properties.*; public class Enemy extends MovieClip { public var _currNinjaLevel:int; public var _currNinjaX:Number; private var _currScope:DisplayObject; public function Enemy():void{ DisplayShortcuts.init(); ColorShortcuts.init(); FilterShortcuts.init(); Adlib.addSound(new lie(), {name:"enemyLie", delay:100, volume:2, dontPlay:true}); Adlib.addSound(new kill(), {name:"killEnemy", volume:0.7, delay:80, dontPlay:true}); } public function set currNinjaLevel(_arg1:int){ _currNinjaLevel = _arg1; } public function get isDying():Boolean{ return (this["_isDying"]); } public function enemyDie():void{ _currScope = this; this.stopFighting(); Tweener.removeTweens(_currScope["_enemy"].getChildAt(1)); Tweener.removeTweens(_currScope["_enemy"]); Tweener.removeTweens(_currScope); _currScope["_isDying"] = true; _currScope["_enemy"].removeChildAt(1); _currScope["_enemy"].addChildAt(_currScope["_enemyLie"], 1); Adlib.playSound("enemyLie"); Adlib.playSound("killEnemy"); Tweener.addTween(_currScope["_enemy"].getChildAt(1), {_frame:1}); Tweener.addTween(_currScope["_enemy"].getChildAt(1), {_frame:MovieClip(_currScope["_enemy"].getChildAt(1)).totalFrames, time:2}); Tweener.addTween(_currScope["_enemy"], {alpha:0.3, time:0.3}); Tweener.addTween(_currScope["_enemy"], {alpha:1, time:0.3, delay:0.6}); Tweener.addTween(_currScope["_enemy"], {alpha:0.3, time:0.3, delay:0.9}); Tweener.addTween(_currScope["_enemy"], {alpha:1, time:0.3, delay:1.2}); Tweener.addTween(_currScope["_enemy"], {alpha:0.3, time:0.3, delay:1.5}); Tweener.addTween(_currScope["_enemy"], {alpha:1, time:0.3, delay:1.8}); Tweener.addTween(_currScope["_enemy"], {alpha:0, time:0.2, delay:2.1}); Tweener.addTween(this, {delay:2.3, onComplete:function (){ dispatchEvent(new Event("enemy dead")); }}); } public function stopFighting():void{ _currScope = this; _currScope["_isFightMode"] = false; _currScope["_isShootMode"] = false; if (((((!((_currScope["_enemy"].getChildAt(1) == _currScope["_enemyWalk"]))) && (!((_currScope["_enemy"].getChildAt(1) == _currScope["_enemyStatic"]))))) && (!(_currScope["_isDying"])))){ _currScope["_enemy"].removeChildAt(1); _currScope["_enemy"].addChildAt(_currScope["_enemyStatic"], 1); }; } public function enemyEnter(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:int):void{ var moveYtime:Number; var moveXtime:Number; var moveX:Function; var startX = _arg1; var endX = _arg2; var startY = _arg3; var endY = _arg4; var ninjaYLevel = _arg5; moveX = function ():void{ _currScope["_enemy"].removeChildAt(1); _currScope["_enemy"].addChildAt(_currScope["_enemyWalk"], 1); Tweener.addTween(_currScope["_enemy"], {x:endX, time:moveXtime, transition:"linear", onComplete:function (){ _currScope["_isEntering"] = false; callFunction(); }}); }; _currScope = this; _currScope["_moveTimer"].addEventListener(TimerEvent.TIMER, enemyWaitMode); _currScope["_strikeTimer"].addEventListener(TimerEvent.TIMER, initStrikeNum); _currScope["_isEntering"] = true; moveYtime = ((endY - startY) * 0.003); moveXtime = (Math.abs((endX - startX)) * _currScope["_enemySpeed"]); if (_currScope["_yLevel"] == ninjaYLevel){ moveXtime = (Math.abs((endX - startX)) * _currScope["_enemyChaseSpeed"]); }; if (startY < endY){ _currScope["_enemy"].removeChildAt(1); _currScope["_enemy"].addChildAt(_currScope["_enemyFall"], 1); Tweener.addTween(_currScope["_enemy"].getChildAt(1), {_frame:1}); Tweener.addTween(_currScope["_enemy"].getChildAt(1), {_frame:32, time:moveYtime, delay:(moveYtime / 10), transition:"linear", onComplete:moveX}); Tweener.addTween(_currScope["_enemy"], {y:endY, time:(moveYtime - 0.4), transition:"easeOutCubic"}); } else { moveX(); }; } public function checkIfToPause():void{ _currScope = this; if (!_currScope["_isPaused"]){ var _local1 = _currScope; var _local2 = "_strikeNum"; var _local3 = (_local1[_local2] + 1); _local1[_local2] = _local3; }; if (_currScope["_strikeNum"] == _currScope["_pauseStrikeNum"]){ _currScope["_strikeNum"] = 0; _local1 = _currScope; _local1["handleEnemyPause"](); }; } public function chaseNinja():void{ var newX:Number; var moveTime:Number; _currScope = this; if (((((((!(_currScope["_isFightMode"])) && (!(_currScope["_isDying"])))) && (!(_currScope["_isEntering"])))) && (!(_currScope["_isPaused"])))){ dispatchEvent(new Event("get ninja loc")); Tweener.removeTweens(_currScope["_enemy"], "x"); _currScope["_isFightMode"] = false; if (_currScope["_enemy"].getChildAt(1) != _currScope["_enemyWalk"]){ _currScope["_enemy"].removeChildAt(1); _currScope["_enemy"].addChildAt(_currScope["_enemyWalk"], 1); }; newX = _currScope["_enemy"].x; if ((_currNinjaX - _currScope["_fightSpace"]) > _currScope["_enemy"].x){ _currScope["_enemy"].scaleX = 1; newX = (_currNinjaX - _currScope["_fightSpace"]); moveTime = Math.floor(((_currNinjaX - _currScope["_enemy"].x) * _currScope["_enemyChaseSpeed"])); } else { if ((_currNinjaX + _currScope["_fightSpace"]) < _currScope["_enemy"].x){ _currScope["_enemy"].scaleX = -1; newX = (_currNinjaX + _currScope["_fightSpace"]); moveTime = Math.floor(((_currScope["_enemy"].x - _currNinjaX) * _currScope["_enemyChaseSpeed"])); } else { if (_currNinjaX > _currScope["_enemy"].x){ _currScope["_enemy"].scaleX = 1; } else { _currScope["_enemy"].scaleX = -1; }; newX = _currScope["_enemy"].x; }; }; if ((((newX < _currScope["_leftBord"])) || ((newX > _currScope["_rightBord"])))){ newX = _currScope["_enemy"].x; }; Tweener.addTween(_currScope["_enemy"], {x:newX, time:moveTime, transition:"linear", onComplete:function (){ _currScope["_isFightMode"] = true; var _local1 = _currScope; _local1["beginFight"](); }}); }; } public function moveEnemy(_arg1:Number):void{ var newX:Number; var dis:Number; var newTime:Number; var dir = _arg1; _currScope = this; newX = _currScope["_enemy"].x; if ((((_currScope["_enemy"].x > _currScope["_leftBord"])) && ((_currScope["_enemy"].x < _currScope["_rightBord"])))){ _currScope["_enemy"].scaleX = (_currScope["_enemy"].scaleX * dir); if (_currScope["_enemy"].scaleX == 1){ newX = _currScope["_rightBord"]; } else { newX = _currScope["_leftBord"]; }; } else { if (_currScope["_enemy"].x <= _currScope["_leftBord"]){ _currScope["_enemy"].scaleX = 1; newX = _currScope["_rightBord"]; } else { if (_currScope["_enemy"].x >= _currScope["_rightBord"]){ _currScope["_enemy"].scaleX = -1; newX = _currScope["_leftBord"]; }; }; }; dis = Math.abs((_currScope["_enemy"].x - newX)); newTime = (Math.floor(dis) * _currScope["_enemySpeed"]); _currScope["_enemy"].removeChildAt(1); _currScope["_enemy"].addChildAt(_currScope["_enemyWalk"], 1); Tweener.addTween(_currScope["_enemy"], {x:newX, time:newTime, transition:"linear", onComplete:function (){ _currScope["_enemy"].removeChildAt(1); _currScope["_enemy"].addChildAt(_currScope["_enemyStatic"], 1); _currScope["_moveTimer"].delay = 10; }}); } public function enemyPauseMove():void{ var _local1:Number; var _local2:Number; var _local3:Number; _currScope = this; _local2 = _currScope["_enemy"].x; if (_currScope["_enemy"].scaleX == 1){ _local2 = (_currScope["_enemy"].x - _currScope["_retreatDis"]); if (_local2 < _currScope["_leftBord"]){ _local2 = _currScope["_leftBord"]; }; } else { _local2 = (_currScope["_enemy"].x + _currScope["_retreatDis"]); if (_local2 > _currScope["_rightBord"]){ _local2 = _currScope["_rightBord"]; }; }; _local3 = (Math.abs((_currScope["_enemy"].x - _local2)) * 0.001); Tweener.addTween(_currScope["_enemy"], {x:_local2, time:_local3, transition:"linear"}); } public function initStrikeNum(_arg1:TimerEvent):void{ _currScope = this; _currScope["_strikeNum"] = 0; } public function startMoving():void{ _currScope = this; if (((((!(_currScope["_isDying"])) && (!(_currScope["_isEntering"])))) && (!(_currScope["_isPaused"])))){ Tweener.removeTweens(_currScope["_enemy"].getChildAt(1)); Tweener.removeTweens(_currScope["_enemy"]); _currScope["_isFightMode"] = false; _currScope["_strikeTimer"].stop(); _currScope["_moveTimer"].start(); this.moveEnemy(1); }; } public function callFunction():void{ _currScope = this; if (!_currScope["_isDying"]){ dispatchEvent(new Event("get ninja loc")); if (_currNinjaLevel == _currScope["_yLevel"]){ _currScope["_strikeTimer"].start(); this.chaseNinja(); } else { this.startMoving(); }; }; } public function get bonusObj():String{ return (this["_bonusObj"]); } public function enemyPause():void{ var shineIn:Function; var shineOut:Function; shineIn = function ():void{ Tweener.addTween(_currScope["_enemy"].getChildAt(1), {_Glow_color:16777062, _Glow_strength:8, _Glow_alpha:0.7, _Glow_blurX:7, _Glow_blurY:7, time:0.3}); Tweener.addTween(_currScope["_enemy"].getChildAt(1), {_Glow_strength:0, time:0.2, delay:0.3, onComplete:shineIn}); }; shineOut = function ():void{ Tweener.addTween(_currScope["_enemy"].getChildAt(1), {_Glow_strength:0, _Glow_blurX:0, _Glow_blurY:0, time:0.2}); }; _currScope = this; this.stopFighting(); _currScope["_isPaused"] = true; _currScope["_strikeTimer"].stop(); shineIn(); Tweener.addTween(_currScope["_enemy"].getChildAt(1), {delay:_currScope["_pauseTime"], onComplete:function (){ shineOut(); _currScope["_isPaused"] = false; Tweener.removeTweens(_currScope["_enemy"].getChildAt(1)); _currScope["_strikeNum"] = 0; callFunction(); }}); } public function get isFainted():Boolean{ return (this["_isFainted"]); } public function get enemyYlevel():int{ return (this["_yLevel"]); } public function handleNinjaMove():void{ _currScope = this; _currScope["_ninjaHasMoved"] = true; } public function reduceLife(_arg1:int):void{ var _local2:Number; _currScope = this; switch (_arg1){ case 1: _local2 = 5; break; case 2: _local2 = 5; break; case 3: _local2 = 5; break; case 4: _local2 = 7; break; case 6: _local2 = 8; break; case 7: _local2 = 4; this.enemyBackOff(); break; }; _currScope["_lifeBar"] = (_currScope["_lifeBar"] - _local2); Tweener.addTween(_currScope["_enemy"].getChildAt(1), {_brightness:0.4}); Tweener.addTween(_currScope["_enemy"].getChildAt(1), {_brightness:0, delay:0.2}); if ((((_currScope["_lifeBar"] <= 0)) && (!(_currScope["_isDying"])))){ dispatchEvent(new Event("add bonus")); this.enemyDie(); }; var _local3 = _currScope; _local3["handleReducedLife"](); } public function get bonusValue():int{ return (this["_bonusValue"]); } public function enemyWaitMode(_arg1:TimerEvent):void{ var _local2:Number; var _local3:Number; _currScope = this; _local2 = Math.random(); if (_local2 < 0.5){ this.moveEnemy(-1); } else { if (_local2 > 0.8){ _currScope["_enemy"].removeChildAt(1); _currScope["_enemy"].addChildAt(_currScope["_enemyStatic"], 1); Tweener.removeTweens(_currScope["_enemy"], "x"); }; }; _local3 = (Math.floor(((Math.random() * 5) + 2)) * 1000); _currScope["_moveTimer"].delay = _local3; } public function detectNinja():void{ _currScope = this; _currScope["_moveTimer"].stop(); _currScope["_strikeTimer"].stop(); _currScope["_strikeTimer"].start(); this.chaseNinja(); } public function get enemyScale():Number{ return (this["_enemy"].scaleX); } public function checkIfToFaint():void{ _currScope = this; if ((((_currScope["_lifeBar"] < (_currScope["_ENEMY_LIFE"] / 2))) && (!(_currScope["_hasFainted"])))){ this.enemyFaint(); }; } public function enemyFaint():void{ _currScope = this; this.stopFighting(); _currScope["_hasFainted"] = true; _currScope["_isFainted"] = true; _currScope["_strikeTimer"].stop(); _currScope["_strikeNum"] = 0; Tweener.removeTweens(_currScope["_enemy"], "x"); _currScope["_enemy"].removeChildAt(1); _currScope["_enemy"].addChildAt(_currScope["_enemyLie"], 1); Tweener.addTween(_currScope["_enemy"].getChildAt(1), {_frame:1}); Tweener.addTween(_currScope["_enemy"].getChildAt(1), {_frame:MovieClip(_currScope["_enemy"].getChildAt(1)).totalFrames, time:1.5}); Tweener.addTween(_currScope["_enemy"], {alpha:0.3, time:0.3}); Tweener.addTween(_currScope["_enemy"], {alpha:1, time:0.3, delay:0.3}); Tweener.addTween(_currScope["_enemy"], {alpha:0.3, time:0.3, delay:0.6}); Tweener.addTween(_currScope["_enemy"], {alpha:1, time:0.3, delay:0.9}); Tweener.addTween(_currScope["_enemy"], {alpha:0.3, time:0.3, delay:1.2}); Tweener.addTween(_currScope["_enemy"], {alpha:1, time:0.3, delay:1.5, onComplete:function (){ _currScope["_isFainted"] = false; _currScope["_strikeTimer"].start(); callFunction(); }}); } public function get reduceValue():Number{ return ((this["_lifeBar"] / this["_ENEMY_LIFE"])); } public function defend():void{ var defendTime:Number; _currScope = this; _currScope["_enemy"].removeChildAt(1); _currScope["_enemy"].addChildAt(_currScope["_enemyDefend"], 1); _currScope["_isEnemyInDefend"] = true; defendTime = (Math.random() + 0.8); Tweener.addTween(_currScope["_enemy"].getChildAt(1), {delay:defendTime, onComplete:function (){ _currScope["_isEnemyInDefend"] = false; beginFight(); }}); } public function set currNinjaX(_arg1:Number){ _currNinjaX = _arg1; } public function get enemyX():Number{ return (this["_enemy"].x); } public function get enemyY():Number{ return (this["_enemy"].y); } private function enemyBackOff():void{ var _local1:Number; var _local2:Number; _currScope = this; _local1 = (_currScope["_enemy"].x + (10 * _currScope.scaleX)); _local2 = _currScope["_enemy"].x; if ((((_local1 > _currScope["_leftBord"])) && ((_local1 < _currScope["_rightBord"])))){ Tweener.addTween(_currScope["_enemy"], {x:_local1, time:0.1}); Tweener.addTween(_currScope["_enemy"], {x:_local2, time:0.1, delay:0.2}); }; } public function get isEnemyInDefend():Boolean{ return (this["_isEnemyInDefend"]); } public function get currHitType():int{ return (this["_currHitType"]); } public function get enemyType():int{ return (this["_enemyType"]); } public function beginFight():void{ _currScope = this; _currScope["_currHitType"] = 0; if (((((_currScope["_isFightMode"]) && (!(_currScope["_ninjaHasMoved"])))) && (!(_currScope["_isDying"])))){ var _local1 = _currScope; _local1["handleFightMode"](); } else { if (_currScope["_ninjaHasMoved"]){ _currScope["_isFightMode"] = false; _currScope["_ninjaHasMoved"] = false; this.callFunction(); }; }; } public function defenceGlow():void{ _currScope = this; Tweener.addTween(_currScope["_enemy"].getChildAt(1)["sword"], {time:0.3, _DropShadow_strength:8, _DropShadow_quality:6, _DropShadow_blurX:4, _DropShadow_blurY:4, _DropShadow_alpha:0.8, _DropShadow_color:14024703}); Tweener.addTween(_currScope["_enemy"].getChildAt(1)["sword"], {time:0.2, delay:0.3, _DropShadow_strength:0, _DropShadow_quality:0, _DropShadow_blurX:0, _DropShadow_blurY:0}); } } }//package
Section 44
//Enemy1 (Enemy1) package { import flash.events.*; import caurina.transitions.*; import flash.display.*; import com.tweegee.games.*; import flash.utils.*; public class Enemy1 extends Enemy { public var _isFightMode:Boolean; public var _bonusValue:int;// = 8 public var _enemyHit:MovieClip; public var _lifeBar:Number; public var _enemyStatic:MovieClip; public var _isPaused:Boolean; public var _numOfMoves:int;// = 1 public var _pauseTime:Number;// = 2 public var _moveTimer:Timer; public var _fightSpace:Number;// = 75 public var _enemyChaseSpeed:Number;// = 0.01 public var _enemy:MovieClip; public var _isEnemyInDefend:Boolean; public var _isShootMode:Boolean; public var _isDying:Boolean; public var _isFainted:Boolean; public var _isEntering:Boolean; public var _strikeNum:int; public var _ninjaHasMoved:Boolean; public var _ENEMY_LIFE:Number;// = 90 public var _currHitType:int; public var _strikeTimer:Timer; public var _pauseStrikeNum:int;// = 6 public var _enemySpeed:Number;// = 0.03 public var _enemyLie:MovieClip; public var _leftBord:Number; public var _enemyType:int;// = 1 public var _enemyMove1:MovieClip; public var _enemyFall:MovieClip; public var _yLevel:int; public var _bonusObj:String;// = "enemy1Bonus" public var _enemyWalk:MovieClip; public var _rightBord:Number; public static const ADD_BONUS:String = "add bonus"; public static const GET_NINJA_LOC:String = "get ninja loc"; public static const ENEMY_DEAD:String = "enemy dead"; public static const ENEMY_HIT:String = "enemy hit"; public static const ENEMY_SHOOT:String = "enemy shoot"; public function Enemy1(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:int, _arg9:int):void{ _enemy = new MovieClip(); _enemyType = 1; _ENEMY_LIFE = 90; _lifeBar = _ENEMY_LIFE; _fightSpace = 75; _numOfMoves = 1; _bonusObj = "enemy1Bonus"; _bonusValue = 8; _pauseStrikeNum = 6; _pauseTime = 2; _enemySpeed = 0.03; _enemyChaseSpeed = 0.01; super(); _enemyStatic = new enemy1Static(); _enemyHit = new enemy1Hit(); _enemyWalk = new enemy1Walk(); _enemyFall = new enemy1Fall(); _enemyLie = new enemy1Lie(); _enemyMove1 = new enemy1Sword1(); Adlib.addSound(new enSword1(), {name:"sword1", volume:5, dontPlay:true}); _moveTimer = new Timer(1000); _strikeTimer = new Timer(3000); _leftBord = _arg1; _rightBord = _arg2; _yLevel = _arg8; _enemy.x = _arg3; _enemy.y = _arg4; _enemy.scaleX = _arg7; _enemyHit.alpha = 0; _enemy.addChild(_enemyHit); _enemy.addChildAt(_enemyStatic, 1); this.addChild(_enemy); Tweener.addTween(_enemy, {_DropShadow_strength:5, _DropShadow_quality:2, _DropShadow_blurX:2, _DropShadow_blurY:2}); this.enemyEnter(_arg3, _arg5, _arg4, _arg6, _arg9); } private function move1():void{ var delayTime:Number; _enemy.removeChildAt(1); _enemy.addChildAt(_enemyMove1, 1); delayTime = Math.random(); Adlib.playSound("sword1"); Tweener.addTween(_enemy.getChildAt(1), {_frame:1}); Tweener.addTween(_enemy.getChildAt(1), {delay:0.2, onComplete:function (){ dispatchEvent(new Event("enemy hit")); }}); Tweener.addTween(_enemy.getChildAt(1), {_frame:MovieClip(_enemy.getChildAt(1)).totalFrames, time:0.4, transition:"linear"}); Tweener.addTween(_enemy.getChildAt(1), {delay:(0.4 + delayTime), onComplete:beginFight}); } public function handleReducedLife():void{ this.checkIfToPause(); } public function handleFightMode():void{ var _local1:int; _local1 = Math.floor(((Math.random() * _numOfMoves) + 1)); _currHitType = _local1; var _local2 = this; _local2[("move" + _local1)](); } public function erase():void{ var _local1:DisplayObject; var _local2:int; Tweener.removeTweens(_enemy.getChildAt(1)); Tweener.removeTweens(_enemy); Tweener.removeTweens(this); _enemy.removeChildAt(1); _enemy.removeChildAt(0); _local2 = 0; while (_local2 < this.numChildren) { _local1 = this.getChildAt(0); this.removeChild(_local1); _local1 = null; _local2++; }; _isFightMode = false; _moveTimer.stop(); _moveTimer = null; _strikeTimer.stop(); _strikeTimer = null; _enemy = null; _enemyHit = null; _enemyStatic = null; _enemyWalk = null; _enemyFall = null; _enemyMove1 = null; _enemyLie = null; } public function handleEnemyPause():void{ this.enemyPause(); } } }//package
Section 45
//enemy1Bar (enemy1Bar) package { import flash.display.*; public dynamic class enemy1Bar extends MovieClip { } }//package
Section 46
//enemy1Bonus (enemy1Bonus) package { import flash.display.*; public dynamic class enemy1Bonus extends MovieClip { } }//package
Section 47
//enemy1Fall (enemy1Fall) package { import flash.display.*; public dynamic class enemy1Fall extends MovieClip { public var sword:MovieClip; public function enemy1Fall(){ addFrameScript(0, frame1, 31, frame32); } function frame1(){ stop(); } function frame32(){ stop(); } } }//package
Section 48
//enemy1Hit (enemy1Hit) package { import flash.display.*; public dynamic class enemy1Hit extends MovieClip { } }//package
Section 49
//enemy1Lie (enemy1Lie) package { import flash.display.*; public dynamic class enemy1Lie extends MovieClip { public var sword:MovieClip; public function enemy1Lie(){ addFrameScript(0, frame1, 24, frame25); } function frame1(){ stop(); } function frame25(){ stop(); } } }//package
Section 50
//enemy1Static (enemy1Static) package { import flash.display.*; public dynamic class enemy1Static extends MovieClip { public var sword:MovieClip; } }//package
Section 51
//enemy1Sword1 (enemy1Sword1) package { import flash.display.*; public dynamic class enemy1Sword1 extends MovieClip { public var sword:MovieClip; public function enemy1Sword1(){ addFrameScript(0, frame1, 23, frame24); } function frame1(){ stop(); } function frame24(){ stop(); } } }//package
Section 52
//enemy1Sword2 (enemy1Sword2) package { import flash.display.*; public dynamic class enemy1Sword2 extends MovieClip { public var sword:MovieClip; public function enemy1Sword2(){ addFrameScript(0, frame1, 23, frame24); } function frame1(){ stop(); } function frame24(){ stop(); } } }//package
Section 53
//enemy1Walk (enemy1Walk) package { import flash.display.*; public dynamic class enemy1Walk extends MovieClip { public var sword:MovieClip; } }//package
Section 54
//Enemy2 (Enemy2) package { import flash.events.*; import caurina.transitions.*; import flash.display.*; import com.tweegee.games.*; import flash.utils.*; public class Enemy2 extends Enemy { public var _isFightMode:Boolean; public var _bonusValue:int;// = 8 public var _enemyHit:MovieClip; public var _lifeBar:Number; public var _enemyStatic:MovieClip; public var _isPaused:Boolean; public var _numOfMoves:int;// = 1 public var _pauseTime:Number;// = 2 public var _moveTimer:Timer; public var _fightSpace:Number;// = 70 public var _enemyChaseSpeed:Number;// = 0.01 public var _enemy:MovieClip; public var _isEnemyInDefend:Boolean; public var _isShootMode:Boolean; public var _isDying:Boolean; public var _isFainted:Boolean; public var _isEntering:Boolean; public var _strikeNum:int; public var _ninjaHasMoved:Boolean; public var _ENEMY_LIFE:Number;// = 90 public var _currHitType:int; public var _strikeTimer:Timer; public var _pauseStrikeNum:int;// = 6 public var _enemySpeed:Number;// = 0.03 public var _enemyLie:MovieClip; public var _leftBord:Number; public var _enemyType:int;// = 2 public var _enemyMove1:MovieClip; public var _enemyFall:MovieClip; public var _yLevel:int; public var _bonusObj:String;// = "enemy1Bonus" public var _enemyWalk:MovieClip; public var _rightBord:Number; public static const ADD_BONUS:String = "add bonus"; public static const GET_NINJA_LOC:String = "get ninja loc"; public static const ENEMY_DEAD:String = "enemy dead"; public static const ENEMY_HIT:String = "enemy hit"; public static const ENEMY_SHOOT:String = "enemy shoot"; public function Enemy2(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:int, _arg9:int):void{ _enemy = new MovieClip(); _enemyType = 2; _ENEMY_LIFE = 90; _lifeBar = _ENEMY_LIFE; _fightSpace = 70; _numOfMoves = 1; _bonusObj = "enemy1Bonus"; _bonusValue = 8; _pauseStrikeNum = 6; _pauseTime = 2; _enemySpeed = 0.03; _enemyChaseSpeed = 0.01; super(); _enemyStatic = new enemy2Static(); _enemyHit = new enemy2Hit(); _enemyWalk = new enemy2Walk(); _enemyFall = new enemy2Fall(); _enemyLie = new enemy2Lie(); _enemyMove1 = new enemy2Sword1(); _moveTimer = new Timer(1000); _strikeTimer = new Timer(3000); Adlib.addSound(new enSword2(), {name:"sword1", volume:1, dontPlay:true}); _leftBord = _arg1; _rightBord = _arg2; _yLevel = _arg8; _enemy.x = _arg3; _enemy.y = _arg4; _enemy.scaleX = _arg7; _enemyHit.alpha = 0; _enemy.addChild(_enemyHit); _enemy.addChildAt(_enemyStatic, 1); this.addChild(_enemy); this.enemyEnter(_arg3, _arg5, _arg4, _arg6, _arg9); } private function move1():void{ var delayTime:Number; _enemy.removeChildAt(1); _enemy.addChildAt(_enemyMove1, 1); delayTime = Math.random(); Adlib.playSound("sword1"); Tweener.addTween(_enemy.getChildAt(1), {_frame:1}); Tweener.addTween(_enemy.getChildAt(1), {delay:0.3, onComplete:function (){ dispatchEvent(new Event("enemy hit")); }}); Tweener.addTween(_enemy.getChildAt(1), {_frame:MovieClip(_enemy.getChildAt(1)).totalFrames, time:0.4, transition:"linear"}); Tweener.addTween(_enemy.getChildAt(1), {delay:(0.4 + delayTime), onComplete:beginFight}); } public function handleReducedLife():void{ this.checkIfToPause(); } public function handleFightMode():void{ var _local1:int; _local1 = Math.floor(((Math.random() * _numOfMoves) + 1)); _currHitType = _local1; var _local2 = this; _local2[("move" + _local1)](); } public function erase():void{ var _local1:DisplayObject; var _local2:int; Tweener.removeTweens(_enemy.getChildAt(1)); Tweener.removeTweens(_enemy); Tweener.removeTweens(this); _enemy.removeChildAt(1); _enemy.removeChildAt(0); _local2 = 0; while (_local2 < this.numChildren) { _local1 = this.getChildAt(0); this.removeChild(_local1); _local1 = null; _local2++; }; _isFightMode = false; _moveTimer.stop(); _moveTimer = null; _strikeTimer.stop(); _strikeTimer = null; _enemy = null; _enemyHit = null; _enemyStatic = null; _enemyWalk = null; _enemyFall = null; _enemyMove1 = null; _enemyLie = null; } public function handleEnemyPause():void{ this.enemyPause(); } } }//package
Section 55
//enemy2Bar (enemy2Bar) package { import flash.display.*; public dynamic class enemy2Bar extends MovieClip { } }//package
Section 56
//enemy2Bonus (enemy2Bonus) package { import flash.display.*; public dynamic class enemy2Bonus extends MovieClip { } }//package
Section 57
//enemy2Fall (enemy2Fall) package { import flash.display.*; public dynamic class enemy2Fall extends MovieClip { public var sword:MovieClip; } }//package
Section 58
//enemy2Hit (enemy2Hit) package { import flash.display.*; public dynamic class enemy2Hit extends MovieClip { } }//package
Section 59
//enemy2Lie (enemy2Lie) package { import flash.display.*; public dynamic class enemy2Lie extends MovieClip { public var sword:MovieClip; } }//package
Section 60
//enemy2Static (enemy2Static) package { import flash.display.*; public dynamic class enemy2Static extends MovieClip { public var sword:MovieClip; } }//package
Section 61
//enemy2Sword1 (enemy2Sword1) package { import flash.display.*; public dynamic class enemy2Sword1 extends MovieClip { public var sword:MovieClip; } }//package
Section 62
//enemy2Walk (enemy2Walk) package { import flash.display.*; public dynamic class enemy2Walk extends MovieClip { public var sword:MovieClip; } }//package
Section 63
//Enemy3 (Enemy3) package { import flash.events.*; import caurina.transitions.*; import flash.display.*; import com.tweegee.games.*; import flash.utils.*; public class Enemy3 extends Enemy { public var _isFightMode:Boolean; private var _soundArr:Array; public var _bonusValue:int;// = 16 public var _enemyHit:MovieClip; public var _lifeBar:Number; public var _enemyStatic:MovieClip; public var _lastMoves:Array; public var _isPaused:Boolean; public var _numOfMoves:int;// = 2 public var _pauseTime:Number;// = 2 public var _moveTimer:Timer; public var _fightSpace:Number;// = 75 public var _enemyChaseSpeed:Number;// = 0.012 public var _enemy:MovieClip; public var _hasFainted:Boolean; public var _enemyDefend:MovieClip; public var _isEnemyInDefend:Boolean; public var _isShootMode:Boolean; public var _isDying:Boolean; public var _retreatDis:int;// = 40 public var _isFainted:Boolean; public var _isEntering:Boolean; public var _strikeNum:int; public var _ninjaHasMoved:Boolean; public var _ENEMY_LIFE:Number;// = 220 public var _currHitType:int; public var _strikeTimer:Timer; public var _pauseStrikeNum:int;// = 12 public var _enemyLie:MovieClip; public var _leftBord:Number; public var _enemySpeed:Number;// = 0.05 public var _enemyType:int;// = 3 public var _strikeInt:Number;// = 0.5 public var _enemyMove1:MovieClip; public var _enemyMove2:MovieClip; public var _enemyFall:MovieClip; public var _yLevel:int; public var _bonusObj:String;// = "enemy2Bonus" public var _enemyWalk:MovieClip; public var _rightBord:Number; public static const ADD_BONUS:String = "add bonus"; public static const GET_NINJA_LOC:String = "get ninja loc"; public static const ENEMY_DEAD:String = "enemy dead"; public static const ENEMY_HIT:String = "enemy hit"; public static const ENEMY_SHOOT:String = "enemy shoot"; public function Enemy3(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:int, _arg9:int):void{ _enemy = new MovieClip(); _lastMoves = new Array(); _enemyType = 3; _ENEMY_LIFE = 220; _lifeBar = _ENEMY_LIFE; _fightSpace = 75; _numOfMoves = 2; _bonusObj = "enemy2Bonus"; _bonusValue = 16; _pauseStrikeNum = 12; _pauseTime = 2; _enemySpeed = 0.05; _enemyChaseSpeed = 0.012; _strikeInt = 0.5; _retreatDis = 40; super(); _enemyStatic = new enemy3Static(); _enemyHit = new enemy3Hit(); _enemyWalk = new enemy3Walk(); _enemyFall = new enemy3Fall(); _enemyLie = new enemy3Lie(); _enemyMove1 = new enemy3Sword1(); _enemyMove2 = new enemy3SwordUp(); _enemyDefend = new enemy3Defend(); _moveTimer = new Timer(1000); _strikeTimer = new Timer(7000); Adlib.addSound(new enAx1(), {name:"ax1", volume:1.5, dontPlay:true}); Adlib.addSound(new enAx2(), {name:"ax2", volume:3, dontPlay:true}); _soundArr = ["ax1", "ax2"]; _leftBord = _arg1; _rightBord = _arg2; _yLevel = _arg8; _enemy.x = _arg3; _enemy.y = _arg4; _enemy.scaleX = _arg7; _enemyHit.alpha = 0; _enemy.addChild(_enemyHit); _enemy.addChildAt(_enemyStatic, 1); this.addChild(_enemy); this.enemyEnter(_arg3, _arg5, _arg4, _arg6, _arg9); } private function move1():void{ _enemy.removeChildAt(1); _enemy.addChildAt(_enemyMove1, 1); Adlib.playSound(_soundArr[0]); Tweener.addTween(_enemy.getChildAt(1), {_frame:1}); Tweener.addTween(_enemy.getChildAt(1), {delay:0.3, onComplete:function (){ dispatchEvent(new Event("enemy hit")); }}); Tweener.addTween(_enemy.getChildAt(1), {_frame:MovieClip(_enemy.getChildAt(1)).totalFrames, time:0.4, transition:"linear"}); Tweener.addTween(_enemy.getChildAt(1), {delay:(_strikeInt + 0.4), onComplete:beginFight}); } public function handleFightMode():void{ var _local1:Number; _local1 = Math.random(); if (_local1 < 0.4){ _currHitType = 1; this.move1(); } else { if ((((_local1 > 0.4)) && ((_local1 < 0.9)))){ _currHitType = 2; this.move2(); } else { this.defend(); }; }; } public function erase():void{ var _local1:DisplayObject; var _local2:int; Tweener.removeTweens(_enemy.getChildAt(1)); Tweener.removeTweens(_enemy); Tweener.removeTweens(this); _enemy.removeChildAt(1); _enemy.removeChildAt(0); _local2 = 0; while (_local2 < this.numChildren) { _local1 = this.getChildAt(0); this.removeChild(_local1); _local1 = null; _local2++; }; _isFightMode = false; _moveTimer.stop(); _moveTimer = null; _strikeTimer.stop(); _strikeTimer = null; _enemy = null; _enemyHit = null; _enemyStatic = null; _enemyWalk = null; _enemyFall = null; _enemyMove1 = null; _enemyMove2 = null; _enemyDefend = null; _enemyLie = null; } private function move2():void{ _enemy.removeChildAt(1); _enemy.addChildAt(_enemyMove2, 1); Adlib.playSound(_soundArr[1]); Tweener.addTween(_enemy.getChildAt(1), {_frame:1}); Tweener.addTween(_enemy.getChildAt(1), {delay:0.7, onComplete:function (){ dispatchEvent(new Event("enemy hit")); }}); Tweener.addTween(_enemy.getChildAt(1), {_frame:MovieClip(_enemy.getChildAt(1)).totalFrames, time:1, transition:"linear"}); Tweener.addTween(_enemy.getChildAt(1), {delay:(_strikeInt + 1), onComplete:beginFight}); } public function handleReducedLife():void{ this.checkIfToFaint(); this.checkIfToPause(); } public function handleEnemyPause():void{ this.enemyPause(); this.enemyPauseMove(); } } }//package
Section 64
//enemy3Bar (enemy3Bar) package { import flash.display.*; public dynamic class enemy3Bar extends MovieClip { } }//package
Section 65
//enemy3Bonus (enemy3Bonus) package { import flash.display.*; public dynamic class enemy3Bonus extends MovieClip { } }//package
Section 66
//enemy3Defend (enemy3Defend) package { import flash.display.*; public dynamic class enemy3Defend extends MovieClip { public var sword:MovieClip; } }//package
Section 67
//enemy3Fall (enemy3Fall) package { import flash.display.*; public dynamic class enemy3Fall extends MovieClip { public var sword:MovieClip; public function enemy3Fall(){ addFrameScript(0, frame1, 31, frame32); } function frame1(){ stop(); } function frame32(){ stop(); } } }//package
Section 68
//enemy3Hit (enemy3Hit) package { import flash.display.*; public dynamic class enemy3Hit extends MovieClip { } }//package
Section 69
//enemy3Lie (enemy3Lie) package { import flash.display.*; public dynamic class enemy3Lie extends MovieClip { public var sword:MovieClip; public function enemy3Lie(){ addFrameScript(0, frame1, 24, frame25); } function frame1(){ stop(); } function frame25(){ stop(); } } }//package
Section 70
//enemy3Static (enemy3Static) package { import flash.display.*; public dynamic class enemy3Static extends MovieClip { public var sword:MovieClip; } }//package
Section 71
//enemy3Sword1 (enemy3Sword1) package { import flash.display.*; public dynamic class enemy3Sword1 extends MovieClip { public var sword:MovieClip; public function enemy3Sword1(){ addFrameScript(0, frame1, 20, frame21); } function frame1(){ stop(); } function frame21(){ stop(); } } }//package
Section 72
//enemy3SwordUp (enemy3SwordUp) package { import flash.display.*; public dynamic class enemy3SwordUp extends MovieClip { public var sword:MovieClip; public function enemy3SwordUp(){ addFrameScript(0, frame1, 60, frame61); } function frame1(){ stop(); } function frame61(){ stop(); } } }//package
Section 73
//enemy3Walk (enemy3Walk) package { import flash.display.*; public dynamic class enemy3Walk extends MovieClip { public var sword:MovieClip; } }//package
Section 74
//Enemy4 (Enemy4) package { import flash.events.*; import caurina.transitions.*; import flash.display.*; import com.tweegee.games.*; import flash.utils.*; public class Enemy4 extends Enemy { public var _isFightMode:Boolean; private var _soundArr:Array; public var _bonusValue:int;// = 26 public var _enemyHit:MovieClip; public var _lifeBar:Number; public var _enemyStatic:MovieClip; public var _lastMoves:Array; public var _isPaused:Boolean; public var _numOfMoves:int;// = 2 public var _pauseTime:Number;// = 2 public var _moveTimer:Timer; public var _fightSpace:Number;// = 75 public var _enemyChaseSpeed:Number;// = 0.01 public var _enemy:MovieClip; public var _hasFainted:Boolean; public var _enemyDefend:MovieClip; public var _isEnemyInDefend:Boolean; public var _isShootMode:Boolean; public var _isDying:Boolean; public var _retreatDis:int;// = 40 public var _isFainted:Boolean; public var _isEntering:Boolean; public var _strikeNum:int; public var _ninjaHasMoved:Boolean; public var _ENEMY_LIFE:Number;// = 240 public var _currHitType:int; public var _strikeTimer:Timer; public var _pauseStrikeNum:int;// = 15 public var _enemyLie:MovieClip; public var _leftBord:Number; public var _enemySpeed:Number;// = 0.02 public var _enemyType:int;// = 4 public var _strikeInt:Number;// = 0.2 public var _enemyMove1:MovieClip; public var _enemyMove2:MovieClip; public var _enemyMove3:MovieClip; public var _enemyMove4:MovieClip; public var _enemyFall:MovieClip; public var _yLevel:int; public var _bonusObj:String;// = "enemy3Bonus" public var _enemyWalk:MovieClip; public var _rightBord:Number; public static const ADD_BONUS:String = "add bonus"; public static const GET_NINJA_LOC:String = "get ninja loc"; public static const ENEMY_DEAD:String = "enemy dead"; public static const ENEMY_HIT:String = "enemy hit"; public static const ENEMY_SHOOT:String = "enemy shoot"; public function Enemy4(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:int, _arg9:int):void{ _enemy = new MovieClip(); _lastMoves = new Array(); _enemyType = 4; _ENEMY_LIFE = 240; _lifeBar = _ENEMY_LIFE; _fightSpace = 75; _numOfMoves = 2; _bonusObj = "enemy3Bonus"; _bonusValue = 26; _pauseStrikeNum = 15; _pauseTime = 2; _enemySpeed = 0.02; _enemyChaseSpeed = 0.01; _strikeInt = 0.2; _retreatDis = 40; super(); _enemyStatic = new enemy4Static(); _enemyHit = new enemy4Hit(); _enemyWalk = new enemy4Walk(); _enemyFall = new enemy4Fall(); _enemyLie = new enemy4Lie(); _enemyMove1 = new enemy4Sword1(); _enemyMove2 = new enemy4Sword2(); _enemyMove3 = new enemy4Roll(); _enemyMove4 = new enemy4Jump(); _enemyDefend = new enemy4Defend(); _moveTimer = new Timer(1000); _strikeTimer = new Timer(8000); Adlib.addSound(new enSword3(), {name:"sword1", volume:0.3, dontPlay:true}); Adlib.addSound(new enSword4(), {name:"sword2", volume:0.5, dontPlay:true}); Adlib.addSound(new enJump(), {name:"jump", volume:2.5, delay:200, dontPlay:true}); Adlib.addSound(new roll(), {name:"roll", volume:8, dontPlay:true}); _soundArr = ["sword1", "sword2", "roll", "jump"]; _leftBord = _arg1; _rightBord = _arg2; _yLevel = _arg8; _enemy.x = _arg3; _enemy.y = _arg4; _enemy.scaleX = _arg7; _enemyHit.alpha = 0; _enemy.addChild(_enemyHit); _enemy.addChildAt(_enemyStatic, 1); Tweener.addTween(_enemy, {_DropShadow_strength:5, _DropShadow_quality:2, _DropShadow_blurX:2, _DropShadow_blurY:2}); this.addChild(_enemy); this.enemyEnter(_arg3, _arg5, _arg4, _arg6, _arg9); } private function move1():void{ _enemy.removeChildAt(1); _enemy.addChildAt(_enemyMove1, 1); Adlib.playSound(_soundArr[0]); Tweener.addTween(_enemy.getChildAt(1), {_frame:1}); Tweener.addTween(_enemy.getChildAt(1), {delay:0.3, onComplete:function (){ dispatchEvent(new Event("enemy hit")); }}); Tweener.addTween(_enemy.getChildAt(1), {_frame:MovieClip(_enemy.getChildAt(1)).totalFrames, time:0.4, transition:"linear"}); Tweener.addTween(_enemy.getChildAt(1), {delay:(_strikeInt + 0.4), onComplete:beginFight}); } private function move3():void{ var newX:Number; dispatchEvent(new Event("get ninja loc")); if ((((((((((((_enemy.scaleX == 1)) && (((_enemy.x + 160) < _rightBord)))) || ((((_enemy.scaleX == -1)) && (((_enemy.x - 160) > _leftBord)))))) && ((_lastMoves.indexOf(3) == -1)))) && ((Math.abs((_currNinjaX - _enemy.x)) <= _fightSpace)))) && (!(_isFainted)))){ _lastMoves.push(3); _enemy.removeChildAt(1); _enemy.addChildAt(_enemyMove3, 1); Adlib.playSound(_soundArr[2]); Tweener.addTween(_enemy.getChildAt(1), {_frame:1}); Tweener.addTween(_enemy.getChildAt(1), {_frame:(MovieClip(_enemy.getChildAt(1)).totalFrames / 2), time:0.3, transition:"linear"}); newX = (_enemy.x + (_enemy.scaleX * 150)); Tweener.addTween(_enemy, {x:newX, time:0.4, delay:0.1, onComplete:function (){ _enemy.scaleX = (_enemy.scaleX * -1); }}); Tweener.addTween(_enemy.getChildAt(1), {_frame:MovieClip(_enemy.getChildAt(1)).totalFrames, time:0.3, transition:"linear"}); Tweener.addTween(_enemy.getChildAt(1), {delay:0.7, onComplete:beginFight}); } else { this.beginFight(); }; } private function move4():void{ if (_lastMoves.indexOf(4) == -1){ _lastMoves.push(4); _enemy.removeChildAt(1); _enemy.addChildAt(_enemyMove4, 1); Adlib.playSound(_soundArr[3]); Tweener.addTween(_enemy.getChildAt(1), {_frame:1}); Tweener.addTween(_enemy.getChildAt(1), {_frame:34, time:0.8, transition:"easeOutCubic"}); Tweener.addTween(_enemy.getChildAt(1), {_frame:65, time:0.8, transition:"easeInCubic"}); Tweener.addTween(_enemy.getChildAt(1), {delay:1.6, onComplete:beginFight}); } else { this.beginFight(); }; } public function handleFightMode():void{ var _local1:Number; var _local2:int; if (_lastMoves.length == 7){ _lastMoves.splice(0, 1); }; _local1 = Math.random(); if (_local1 < 0.2){ this.move3(); } else { if ((((_local1 > 0.2)) && ((_local1 < 0.3)))){ this.move4(); } else { if ((((_local1 > 0.3)) && ((_local1 < 0.4)))){ _lastMoves.push(5); this.defend(); } else { _local2 = Math.floor(((Math.random() * _numOfMoves) + 1)); _lastMoves.push(_local2); _currHitType = _local2; var _local3 = this; _local3[("move" + _local2)](); }; }; }; } public function erase():void{ var _local1:DisplayObject; var _local2:int; Tweener.removeTweens(_enemy.getChildAt(1)); Tweener.removeTweens(_enemy); Tweener.removeTweens(this); _enemy.removeChildAt(1); _enemy.removeChildAt(0); _local2 = 0; while (_local2 < this.numChildren) { _local1 = this.getChildAt(0); this.removeChild(_local1); _local1 = null; _local2++; }; _isFightMode = false; _moveTimer.stop(); _moveTimer = null; _strikeTimer.stop(); _strikeTimer = null; _enemy = null; _enemyHit = null; _enemyStatic = null; _enemyWalk = null; _enemyFall = null; _enemyMove1 = null; _enemyMove2 = null; _enemyMove3 = null; _enemyMove4 = null; _enemyDefend = null; _enemyLie = null; } private function move2():void{ _enemy.removeChildAt(1); _enemy.addChildAt(_enemyMove2, 1); Adlib.playSound(_soundArr[1]); Tweener.addTween(_enemy.getChildAt(1), {_frame:1}); Tweener.addTween(_enemy.getChildAt(1), {delay:0.2, onComplete:function (){ dispatchEvent(new Event("enemy hit")); }}); Tweener.addTween(_enemy.getChildAt(1), {_frame:MovieClip(_enemy.getChildAt(1)).totalFrames, time:0.3, transition:"linear"}); Tweener.addTween(_enemy.getChildAt(1), {delay:(_strikeInt + 0.3), onComplete:beginFight}); } public function handleReducedLife():void{ this.checkIfToFaint(); this.checkIfToPause(); } public function handleEnemyPause():void{ this.enemyPause(); this.enemyPauseMove(); } } }//package
Section 75
//enemy4Bar (enemy4Bar) package { import flash.display.*; public dynamic class enemy4Bar extends MovieClip { } }//package
Section 76
//enemy4Bonus (enemy4Bonus) package { import flash.display.*; public dynamic class enemy4Bonus extends MovieClip { } }//package
Section 77
//enemy4Defend (enemy4Defend) package { import flash.display.*; public dynamic class enemy4Defend extends MovieClip { public var sword:MovieClip; } }//package
Section 78
//enemy4Fall (enemy4Fall) package { import flash.display.*; public dynamic class enemy4Fall extends MovieClip { public var sword:MovieClip; public function enemy4Fall(){ addFrameScript(0, frame1, 31, frame32); } function frame1(){ stop(); } function frame32(){ stop(); } } }//package
Section 79
//enemy4Hit (enemy4Hit) package { import flash.display.*; public dynamic class enemy4Hit extends MovieClip { } }//package
Section 80
//enemy4Jump (enemy4Jump) package { import flash.display.*; public dynamic class enemy4Jump extends MovieClip { public var sword:MovieClip; public function enemy4Jump(){ addFrameScript(0, frame1, 64, frame65); } function frame65(){ stop(); } function frame1(){ stop(); } } }//package
Section 81
//enemy4Lie (enemy4Lie) package { import flash.display.*; public dynamic class enemy4Lie extends MovieClip { public var sword:MovieClip; public function enemy4Lie(){ addFrameScript(0, frame1, 24, frame25); } function frame1(){ stop(); } function frame25(){ stop(); } } }//package
Section 82
//enemy4Roll (enemy4Roll) package { import flash.display.*; public dynamic class enemy4Roll extends MovieClip { public var sword:MovieClip; public function enemy4Roll(){ addFrameScript(0, frame1, 25, frame26); } function frame1(){ stop(); } function frame26(){ stop(); } } }//package
Section 83
//enemy4Static (enemy4Static) package { import flash.display.*; public dynamic class enemy4Static extends MovieClip { public var sword:MovieClip; } }//package
Section 84
//enemy4Sword1 (enemy4Sword1) package { import flash.display.*; public dynamic class enemy4Sword1 extends MovieClip { public var sword:MovieClip; public function enemy4Sword1(){ addFrameScript(0, frame1, 20, frame21); } function frame1(){ stop(); } function frame21(){ stop(); } } }//package
Section 85
//enemy4Sword2 (enemy4Sword2) package { import flash.display.*; public dynamic class enemy4Sword2 extends MovieClip { public var sword:MovieClip; public function enemy4Sword2(){ addFrameScript(0, frame1, 23, frame24); } function frame1(){ stop(); } function frame24(){ stop(); } } }//package
Section 86
//enemy4Walk (enemy4Walk) package { import flash.display.*; public dynamic class enemy4Walk extends MovieClip { public var sword:MovieClip; } }//package
Section 87
//Enemy5 (Enemy5) package { import flash.events.*; import caurina.transitions.*; import flash.geom.*; import flash.display.*; import com.tweegee.games.*; import flash.utils.*; public class Enemy5 extends Enemy { public var _isFightMode:Boolean; private var _soundArr:Array; public var _bonusValue:int;// = 20 public var _enemyHit:MovieClip; public var _lifeBar:Number; public var _enemyStatic:MovieClip; public var _lastMoves:Array; public var _isPaused:Boolean; public var _numOfMoves:int;// = 3 public var _pauseTime:Number;// = 2 public var _moveTimer:Timer; public var _fightSpace:Number;// = 75 public var _enemyChaseSpeed:Number;// = 0.02 public var _enemy:MovieClip; public var _hasFainted:Boolean; public var _enemyDefend:MovieClip; public var _isEnemyInDefend:Boolean; public var _isShootMode:Boolean; public var _isDying:Boolean; public var _retreatDis:int;// = 40 public var _isFainted:Boolean; public var _isEntering:Boolean; public var _strikeNum:int; public var _ninjaHasMoved:Boolean; public var _ENEMY_LIFE:Number;// = 240 public var _currHitType:int; public var _strikeTimer:Timer; public var _pauseStrikeNum:int;// = 15 public var _enemyLie:MovieClip; public var _leftBord:Number; public var _enemySpeed:Number;// = 0.09 public var _ballCont:Sprite; public var _enemyType:int;// = 5 public var _strikeInt:Number;// = 0.7 public var _enemyMove1:MovieClip; public var _enemyMove2:MovieClip; public var _enemyMove3:MovieClip; public var _enemyMove4:MovieClip; public var _enemyFall:MovieClip; public var _yLevel:int; public var _bonusObj:String;// = "enemy2Bonus" public var _enemyWalk:MovieClip; public var _rightBord:Number; public static const ADD_BONUS:String = "add bonus"; public static const GET_NINJA_LOC:String = "get ninja loc"; public static const ENEMY_DEAD:String = "enemy dead"; public static const ENEMY_HIT:String = "enemy hit"; public static const ENEMY_SHOOT:String = "enemy shoot"; public function Enemy5(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:int, _arg9:int):void{ _enemy = new MovieClip(); _lastMoves = new Array(); _ballCont = new Sprite(); _enemyType = 5; _ENEMY_LIFE = 240; _lifeBar = _ENEMY_LIFE; _fightSpace = 75; _numOfMoves = 3; _bonusObj = "enemy2Bonus"; _bonusValue = 20; _pauseStrikeNum = 15; _pauseTime = 2; _enemySpeed = 0.09; _enemyChaseSpeed = 0.02; _strikeInt = 0.7; _retreatDis = 40; super(); _enemyStatic = new enemy5Static(); _enemyHit = new enemy5Hit(); _enemyWalk = new enemy5Walk(); _enemyFall = new enemy5Fall(); _enemyLie = new enemy5Lie(); _enemyMove1 = new enemy5Sword1(); _enemyMove2 = new enemy5Sword2(); _enemyMove3 = new enemy5Sword3(); _enemyMove4 = new enemy5Star(); _enemyDefend = new enemy5Defend(); _moveTimer = new Timer(1000); _strikeTimer = new Timer(8000); _ballCont.name = "weaponCont"; Adlib.addSound(new enAx3(), {name:"sword1", volume:4, delay:200, dontPlay:true}); Adlib.addSound(new enAx1(), {name:"sword2", volume:1, dontPlay:true}); Adlib.addSound(new enAx3(), {name:"sword3", volume:3, delay:50, dontPlay:true}); Adlib.addSound(new starSwoosh(), {name:"shoot", volume:4, dontPlay:true}); _soundArr = ["sword1", "sword2", "sword3", "shoot"]; _leftBord = _arg1; _rightBord = _arg2; _yLevel = _arg8; _enemy.x = _arg3; _enemy.y = _arg4; _enemy.scaleX = _arg7; _enemyHit.alpha = 0; _enemy.addChild(_enemyHit); _enemy.addChildAt(_enemyStatic, 1); Tweener.addTween(_enemy, {_DropShadow_strength:3, _DropShadow_quality:2, _DropShadow_blurX:2, _DropShadow_blurY:2}); this.addChild(_enemy); this.addChild(_ballCont); this.enemyEnter(_arg3, _arg5, _arg4, _arg6, _arg9); } override public function callFunction():void{ if (!_isDying){ dispatchEvent(new Event("get ninja loc")); if (_currNinjaLevel == _yLevel){ _strikeTimer.start(); this.chaseNinja(); } else { if (!_isShootMode){ _isShootMode = true; this.shootStar(); }; }; }; } private function move1():void{ _enemy.removeChildAt(1); _enemy.addChildAt(_enemyMove1, 1); Adlib.playSound(_soundArr[0]); Tweener.addTween(_enemy.getChildAt(1), {_frame:1}); Tweener.addTween(_enemy.getChildAt(1), {delay:0.4, onComplete:function (){ dispatchEvent(new Event("enemy hit")); }}); Tweener.addTween(_enemy.getChildAt(1), {_frame:MovieClip(_enemy.getChildAt(1)).totalFrames, time:0.5, transition:"linear"}); Tweener.addTween(_enemy.getChildAt(1), {delay:(_strikeInt + 0.5), onComplete:beginFight}); } private function move3():void{ _enemy.removeChildAt(1); _enemy.addChildAt(_enemyMove3, 1); Adlib.playSound(_soundArr[2]); Tweener.addTween(_enemy.getChildAt(1), {_frame:1}); Tweener.addTween(_enemy.getChildAt(1), {delay:0.3, onComplete:function (){ dispatchEvent(new Event("enemy hit")); }}); Tweener.addTween(_enemy.getChildAt(1), {_frame:MovieClip(_enemy.getChildAt(1)).totalFrames, time:0.5, transition:"linear"}); Tweener.addTween(_enemy.getChildAt(1), {delay:(_strikeInt + 0.5), onComplete:beginFight}); } public function handleFightMode():void{ var _local1:int; if (Math.random() < 0.1){ this.defend(); } else { _local1 = Math.floor(((Math.random() * _numOfMoves) + 1)); _currHitType = _local1; var _local2 = this; _local2[("move" + _local1)](); }; } public function erase():void{ var _local1:DisplayObject; var _local2:int; Tweener.removeTweens(_enemy.getChildAt(1)); Tweener.removeTweens(_enemy); Tweener.removeTweens(this); _enemy.removeChildAt(1); _enemy.removeChildAt(0); _local2 = 0; while (_local2 < this.numChildren) { _local1 = this.getChildAt(0); this.removeChild(_local1); _local1 = null; _local2++; }; _isFightMode = false; _moveTimer.stop(); _moveTimer = null; _strikeTimer.stop(); _strikeTimer = null; _enemy = null; _enemyHit = null; _enemyStatic = null; _enemyWalk = null; _enemyFall = null; _enemyMove1 = null; _enemyMove2 = null; _enemyMove3 = null; _enemyMove4 = null; _enemyDefend = null; _enemyLie = null; } private function move2():void{ _enemy.removeChildAt(1); _enemy.addChildAt(_enemyMove2, 1); Adlib.playSound(_soundArr[1]); Tweener.addTween(_enemy.getChildAt(1), {_frame:1}); Tweener.addTween(_enemy.getChildAt(1), {delay:0.3, onComplete:function (){ dispatchEvent(new Event("enemy hit")); }}); Tweener.addTween(_enemy.getChildAt(1), {_frame:MovieClip(_enemy.getChildAt(1)).totalFrames, time:0.5, transition:"linear"}); Tweener.addTween(_enemy.getChildAt(1), {delay:(_strikeInt + 0.5), onComplete:beginFight}); } public function handleReducedLife():void{ this.checkIfToFaint(); this.checkIfToPause(); } private function shootStar():void{ var star:Sprite; var pnt:Point; var shootSymbol:MovieClip; var newSymX:Number; if (_isShootMode){ _currHitType = 4; _enemy.removeChildAt(1); _enemy.addChildAt(_enemyMove4, 1); Adlib.playSound(_soundArr[3]); star = new enemyStarObj(); pnt = new Point(_enemy.getChildAt(1)["hand"].x, _enemy.getChildAt(1)["hand"].y); pnt = _enemy.localToGlobal(pnt); star.x = pnt.x; star.y = pnt.y; _ballCont.addChild(star); shootSymbol = new hitWord5(); shootSymbol.x = (pnt.x - 60); shootSymbol.y = (pnt.y - 40); newSymX = (shootSymbol.x - 180); addChild(shootSymbol); Tweener.addTween(shootSymbol, {_frame:shootSymbol.totalFrames, x:newSymX, time:1, onComplete:function (){ removeChild(shootSymbol); shootSymbol = null; }}); Tweener.addTween(_enemy.getChildAt(1), {_frame:1}); Tweener.addTween(_enemy.getChildAt(1), {_frame:24, time:0.5, transition:"linear"}); Tweener.addTween(star, {x:(star.x + (700 * _enemy.scaleX)), y:(star.y - 20), time:1.5, transition:"easeOutSine", onUpdate:function (){ dispatchEvent(new DataEvent("enemy shoot", false, false, "useDefence")); }, onComplete:removeWeapon, onCompleteParams:[star]}); Tweener.addTween(star, {alpha:0, time:0.3, delay:1.2}); }; } override public function startMoving():void{ if (((((!(_isDying)) && (!(_isEntering)))) && (!(_isPaused)))){ Tweener.removeTweens(_enemy.getChildAt(1)); Tweener.removeTweens(_enemy); _isFightMode = false; _strikeTimer.stop(); if (!_isShootMode){ _isShootMode = true; this.shootStar(); }; }; } public function handleEnemyPause():void{ this.enemyPause(); this.enemyPauseMove(); } override public function detectNinja():void{ _moveTimer.stop(); _strikeTimer.stop(); _strikeTimer.start(); _isShootMode = false; this.chaseNinja(); } public function removeWeapon(_arg1:DisplayObject):void{ Tweener.removeTweens(_arg1); _ballCont.removeChild(_arg1); _arg1 = null; this.shootStar(); } } }//package
Section 88
//enemy5Bar (enemy5Bar) package { import flash.display.*; public dynamic class enemy5Bar extends MovieClip { } }//package
Section 89
//enemy5Defend (enemy5Defend) package { import flash.display.*; public dynamic class enemy5Defend extends MovieClip { public var sword:MovieClip; } }//package
Section 90
//enemy5Fall (enemy5Fall) package { import flash.display.*; public dynamic class enemy5Fall extends MovieClip { public var sword:MovieClip; public function enemy5Fall(){ addFrameScript(0, frame1, 31, frame32); } function frame1(){ stop(); } function frame32(){ stop(); } } }//package
Section 91
//enemy5Hit (enemy5Hit) package { import flash.display.*; public dynamic class enemy5Hit extends MovieClip { } }//package
Section 92
//enemy5Lie (enemy5Lie) package { import flash.display.*; public dynamic class enemy5Lie extends MovieClip { public var sword:MovieClip; public function enemy5Lie(){ addFrameScript(0, frame1, 24, frame25); } function frame1(){ stop(); } function frame25(){ stop(); } } }//package
Section 93
//enemy5Star (enemy5Star) package { import flash.display.*; public dynamic class enemy5Star extends MovieClip { public var hand:MovieClip; public var sword:MovieClip; public function enemy5Star(){ addFrameScript(0, frame1, 23, frame24); } function frame1(){ stop(); } function frame24(){ stop(); } } }//package
Section 94
//enemy5Static (enemy5Static) package { import flash.display.*; public dynamic class enemy5Static extends MovieClip { public var sword:MovieClip; } }//package
Section 95
//enemy5Sword1 (enemy5Sword1) package { import flash.display.*; public dynamic class enemy5Sword1 extends MovieClip { public var sword:MovieClip; public function enemy5Sword1(){ addFrameScript(0, frame1, 20, frame21); } function frame1(){ stop(); } function frame21(){ stop(); } } }//package
Section 96
//enemy5Sword2 (enemy5Sword2) package { import flash.display.*; public dynamic class enemy5Sword2 extends MovieClip { public var sword:MovieClip; public function enemy5Sword2(){ addFrameScript(0, frame1, 23, frame24); } function frame1(){ stop(); } function frame24(){ stop(); } } }//package
Section 97
//enemy5Sword3 (enemy5Sword3) package { import flash.display.*; public dynamic class enemy5Sword3 extends MovieClip { public var sword:MovieClip; public function enemy5Sword3(){ addFrameScript(0, frame1, 23, frame24); } function frame1(){ stop(); } function frame24(){ stop(); } } }//package
Section 98
//enemy5Walk (enemy5Walk) package { import flash.display.*; public dynamic class enemy5Walk extends MovieClip { public var sword:MovieClip; } }//package
Section 99
//Enemy6 (Enemy6) package { import flash.events.*; import caurina.transitions.*; import flash.display.*; import com.tweegee.games.*; import flash.utils.*; public class Enemy6 extends Enemy { public var _isFightMode:Boolean; private var _soundArr:Array; public var _bonusValue:int;// = 20 public var _enemyHit:MovieClip; public var _lifeBar:Number; public var _enemyStatic:MovieClip; public var _lastMoves:Array; public var _isPaused:Boolean; private var _bottomY:Number; public var _numOfMoves:int;// = 4 public var _pauseTime:Number;// = 2 public var _moveTimer:Timer; public var _fightSpace:Number;// = 75 public var _enemyChaseSpeed:Number;// = 0.01 public var _enemy:MovieClip; public var _hasFainted:Boolean; public var _enemyDefend:MovieClip; public var _isEnemyInDefend:Boolean; public var _isShootMode:Boolean; public var _retreatDis:int;// = 40 public var _isDying:Boolean; public var _isFainted:Boolean; public var _isEntering:Boolean; public var _strikeNum:int; public var _ninjaHasMoved:Boolean; public var _ENEMY_LIFE:Number;// = 220 public var _currHitType:int; public var _strikeTimer:Timer; public var _pauseStrikeNum:int;// = 15 public var _enemyLie:MovieClip; public var _leftBord:Number; public var _enemySpeed:Number;// = 0.02 public var _enemyType:int;// = 6 public var _strikeInt:Number;// = 0.25 public var _enemyMove1:MovieClip; public var _enemyMove2:MovieClip; public var _enemyMove3:MovieClip; public var _enemyMove4:MovieClip; public var _enemyMove5:MovieClip; public var _enemyMove6:MovieClip; public var _enemyFall:MovieClip; public var _yLevel:int; public var _bonusObj:String;// = "enemy3Bonus" public var _enemyWalk:MovieClip; public var _rightBord:Number; public static const ADD_BONUS:String = "add bonus"; public static const GET_NINJA_LOC:String = "get ninja loc"; public static const ENEMY_DEAD:String = "enemy dead"; public static const ENEMY_HIT:String = "enemy hit"; public static const ENEMY_SHOOT:String = "enemy shoot"; public function Enemy6(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:int, _arg9:int):void{ _enemy = new MovieClip(); _lastMoves = new Array(); _enemyType = 6; _ENEMY_LIFE = 220; _lifeBar = _ENEMY_LIFE; _fightSpace = 75; _numOfMoves = 4; _bonusObj = "enemy3Bonus"; _bonusValue = 20; _pauseStrikeNum = 15; _pauseTime = 2; _enemySpeed = 0.02; _enemyChaseSpeed = 0.01; _strikeInt = 0.25; _retreatDis = 40; super(); _enemyStatic = new enemy6Static(); _enemyHit = new enemy6Hit(); _enemyWalk = new enemy6Walk(); _enemyFall = new enemy6Fall(); _enemyLie = new enemy6Lie(); _enemyDefend = new enemy6Defend(); _enemyMove1 = new enemy6Sword1(); _enemyMove2 = new enemy6Sword2(); _enemyMove3 = new enemy6Sword3(); _enemyMove4 = new enemy6Kick(); _enemyMove5 = new enemy6SwordUp(); _enemyMove6 = new enemy6Roll(); _moveTimer = new Timer(1000); _strikeTimer = new Timer(8000); Adlib.addSound(new enSword2(), {name:"sword1", volume:1, dontPlay:true}); Adlib.addSound(new enSword1(), {name:"sword2", volume:4, dontPlay:true}); Adlib.addSound(new enSword5(), {name:"sword3", volume:1, dontPlay:true}); Adlib.addSound(new kickSound(), {name:"kick", volume:1, delay:300, dontPlay:true}); Adlib.addSound(new sword2(), {name:"swordUp", volume:1, delay:200, dontPlay:true}); Adlib.addSound(new roll(), {name:"roll", volume:8, dontPlay:true}); _soundArr = ["sword1", "sword2", "sword3", "kick", "swordUp", "roll"]; _leftBord = _arg1; _rightBord = _arg2; _yLevel = _arg8; _enemy.x = _arg3; _enemy.y = _arg4; _bottomY = _arg6; _enemy.scaleX = _arg7; _enemyHit.alpha = 0; _enemy.addChild(_enemyHit); _enemy.addChildAt(_enemyStatic, 1); this.addChild(_enemy); this.enemyEnter(_arg3, _arg5, _arg4, _arg6, _arg9); } private function move1():void{ _enemy.removeChildAt(1); _enemy.addChildAt(_enemyMove1, 1); Adlib.playSound(_soundArr[0]); Tweener.addTween(_enemy.getChildAt(1), {_frame:1}); Tweener.addTween(_enemy.getChildAt(1), {delay:0.3, onComplete:function (){ dispatchEvent(new Event("enemy hit")); }}); Tweener.addTween(_enemy.getChildAt(1), {_frame:MovieClip(_enemy.getChildAt(1)).totalFrames, time:0.4, transition:"linear"}); Tweener.addTween(_enemy.getChildAt(1), {delay:(_strikeInt + 0.4), onComplete:beginFight}); } private function move6():void{ var newX:Number; dispatchEvent(new Event("get ninja loc")); if ((((((((((((_enemy.scaleX == 1)) && (((_enemy.x + 160) < _rightBord)))) || ((((_enemy.scaleX == -1)) && (((_enemy.x - 160) > _leftBord)))))) && ((_lastMoves.indexOf(6) == -1)))) && ((Math.abs((_currNinjaX - _enemy.x)) <= _fightSpace)))) && (!(_isFainted)))){ _lastMoves.push(6); _enemy.removeChildAt(1); _enemy.addChildAt(_enemyMove6, 1); Adlib.playSound(_soundArr[5]); Tweener.addTween(_enemy.getChildAt(1), {_frame:1}); Tweener.addTween(_enemy.getChildAt(1), {_frame:(MovieClip(_enemy.getChildAt(1)).totalFrames / 2), time:0.3, transition:"linear"}); newX = (_enemy.x + (_enemy.scaleX * 150)); Tweener.addTween(_enemy, {x:newX, time:0.4, delay:0.1, onComplete:function (){ _enemy.scaleX = (_enemy.scaleX * -1); }}); Tweener.addTween(_enemy.getChildAt(1), {_frame:MovieClip(_enemy.getChildAt(1)).totalFrames, time:0.3, transition:"linear"}); Tweener.addTween(_enemy.getChildAt(1), {delay:0.7, onComplete:beginFight}); } else { this.beginFight(); }; } private function move3():void{ _enemy.removeChildAt(1); _enemy.addChildAt(_enemyMove3, 1); Adlib.playSound(_soundArr[2]); Tweener.addTween(_enemy.getChildAt(1), {_frame:1}); Tweener.addTween(_enemy.getChildAt(1), {delay:0.2, onComplete:function (){ dispatchEvent(new Event("enemy hit")); }}); Tweener.addTween(_enemy.getChildAt(1), {_frame:MovieClip(_enemy.getChildAt(1)).totalFrames, time:0.3, transition:"linear"}); Tweener.addTween(_enemy.getChildAt(1), {delay:(_strikeInt + 0.3), onComplete:beginFight}); } private function move4():void{ _enemy.removeChildAt(1); _enemy.addChildAt(_enemyMove4, 1); Adlib.playSound(_soundArr[3]); Tweener.addTween(_enemy.getChildAt(1), {_frame:1}); Tweener.addTween(_enemy.getChildAt(1), {delay:0.5, onComplete:function (){ dispatchEvent(new Event("enemy hit")); }}); Tweener.addTween(_enemy.getChildAt(1), {_frame:MovieClip(_enemy.getChildAt(1)).totalFrames, time:0.8, transition:"linear"}); Tweener.addTween(_enemy.getChildAt(1), {delay:(_strikeInt + 0.8), onComplete:beginFight}); } public function handleFightMode():void{ var _local1:Number; var _local2:int; if (_lastMoves.length == 7){ _lastMoves.splice(0, 1); }; _local1 = Math.random(); if (_local1 < 0.1){ this.move6(); } else { if ((((_local1 > 0.1)) && ((_local1 < 0.3)))){ _lastMoves.push(5); _currHitType = 5; this.move5(); } else { if ((((_local1 > 0.3)) && ((_local1 < 0.4)))){ _lastMoves.push(7); this.defend(); } else { _local2 = Math.floor(((Math.random() * _numOfMoves) + 1)); _lastMoves.push(_local2); _currHitType = _local2; var _local3 = this; _local3[("move" + _local2)](); }; }; }; } public function erase():void{ var _local1:DisplayObject; var _local2:int; Tweener.removeTweens(_enemy.getChildAt(1)); Tweener.removeTweens(_enemy); Tweener.removeTweens(this); _enemy.removeChildAt(1); _enemy.removeChildAt(0); _local2 = 0; while (_local2 < this.numChildren) { _local1 = this.getChildAt(0); this.removeChild(_local1); _local1 = null; _local2++; }; _isFightMode = false; _moveTimer.stop(); _moveTimer = null; _strikeTimer.stop(); _strikeTimer = null; _enemy = null; _enemyHit = null; _enemyStatic = null; _enemyWalk = null; _enemyFall = null; _enemyMove1 = null; _enemyMove2 = null; _enemyMove3 = null; _enemyMove4 = null; _enemyMove5 = null; _enemyMove6 = null; _enemyLie = null; _enemyDefend = null; } private function move5():void{ _enemy.removeChildAt(1); _enemy.addChildAt(_enemyMove5, 1); Adlib.playSound(_soundArr[4]); Tweener.addTween(_enemy.getChildAt(1), {_frame:1}); Tweener.addTween(_enemy.getChildAt(1), {delay:0.6, onComplete:function (){ dispatchEvent(new Event("enemy hit")); }}); Tweener.addTween(_enemy.getChildAt(1), {_frame:MovieClip(_enemy.getChildAt(1)).totalFrames, time:0.8, transition:"linear"}); Tweener.addTween(_enemy.getChildAt(1), {delay:(_strikeInt + 0.8), onComplete:beginFight}); } private function move2():void{ _enemy.removeChildAt(1); _enemy.addChildAt(_enemyMove2, 1); Adlib.playSound(_soundArr[1]); Tweener.addTween(_enemy.getChildAt(1), {_frame:1}); Tweener.addTween(_enemy.getChildAt(1), {delay:0.2, onComplete:function (){ dispatchEvent(new Event("enemy hit")); }}); Tweener.addTween(_enemy.getChildAt(1), {_frame:MovieClip(_enemy.getChildAt(1)).totalFrames, time:0.3, transition:"linear"}); Tweener.addTween(_enemy.getChildAt(1), {delay:(_strikeInt + 0.3), onComplete:beginFight}); } public function handleReducedLife():void{ this.checkIfToFaint(); this.checkIfToPause(); } public function handleEnemyPause():void{ this.enemyPause(); this.enemyPauseMove(); } } }//package
Section 100
//enemy6Bar (enemy6Bar) package { import flash.display.*; public dynamic class enemy6Bar extends MovieClip { } }//package
Section 101
//enemy6Defend (enemy6Defend) package { import flash.display.*; public dynamic class enemy6Defend extends MovieClip { public var sword:MovieClip; } }//package
Section 102
//enemy6Fall (enemy6Fall) package { import flash.display.*; public dynamic class enemy6Fall extends MovieClip { public var sword:MovieClip; public function enemy6Fall(){ addFrameScript(0, frame1, 31, frame32); } function frame1(){ stop(); } function frame32(){ stop(); } } }//package
Section 103
//enemy6Hit (enemy6Hit) package { import flash.display.*; public dynamic class enemy6Hit extends MovieClip { } }//package
Section 104
//enemy6Kick (enemy6Kick) package { import flash.display.*; public dynamic class enemy6Kick extends MovieClip { public var sword:MovieClip; public function enemy6Kick(){ addFrameScript(0, frame1, 35, frame36); } function frame1(){ stop(); } function frame36(){ stop(); } } }//package
Section 105
//enemy6Lie (enemy6Lie) package { import flash.display.*; public dynamic class enemy6Lie extends MovieClip { public var sword:MovieClip; public function enemy6Lie(){ addFrameScript(0, frame1, 24, frame25); } function frame1(){ stop(); } function frame25(){ stop(); } } }//package
Section 106
//enemy6Roll (enemy6Roll) package { import flash.display.*; public dynamic class enemy6Roll extends MovieClip { public var sword:MovieClip; public function enemy6Roll(){ addFrameScript(0, frame1, 25, frame26); } function frame1(){ stop(); } function frame26(){ stop(); } } }//package
Section 107
//enemy6Static (enemy6Static) package { import flash.display.*; public dynamic class enemy6Static extends MovieClip { public var sword:MovieClip; } }//package
Section 108
//enemy6Sword1 (enemy6Sword1) package { import flash.display.*; public dynamic class enemy6Sword1 extends MovieClip { public var sword:MovieClip; public function enemy6Sword1(){ addFrameScript(0, frame1, 20, frame21); } function frame1(){ stop(); } function frame21(){ stop(); } } }//package
Section 109
//enemy6Sword2 (enemy6Sword2) package { import flash.display.*; public dynamic class enemy6Sword2 extends MovieClip { public var sword:MovieClip; public function enemy6Sword2(){ addFrameScript(0, frame1, 23, frame24); } function frame1(){ stop(); } function frame24(){ stop(); } } }//package
Section 110
//enemy6Sword3 (enemy6Sword3) package { import flash.display.*; public dynamic class enemy6Sword3 extends MovieClip { public var sword:MovieClip; public function enemy6Sword3(){ addFrameScript(0, frame1, 23, frame24); } function frame1(){ stop(); } function frame24(){ stop(); } } }//package
Section 111
//enemy6SwordUp (enemy6SwordUp) package { import flash.display.*; public dynamic class enemy6SwordUp extends MovieClip { public var sword:MovieClip; public function enemy6SwordUp(){ addFrameScript(0, frame1, 60, frame61); } function frame1(){ stop(); } function frame61(){ stop(); } } }//package
Section 112
//enemy6Walk (enemy6Walk) package { import flash.display.*; public dynamic class enemy6Walk extends MovieClip { public var sword:MovieClip; } }//package
Section 113
//Enemy7 (Enemy7) package { import flash.events.*; import caurina.transitions.*; import flash.geom.*; import flash.display.*; import com.tweegee.games.*; import flash.utils.*; public class Enemy7 extends Enemy { public var _isFightMode:Boolean; private var _soundArr:Array; public var _bonusValue:int;// = 30 public var _enemyHit:MovieClip; public var _lifeBar:Number; public var _enemyStatic:MovieClip; public var _lastMoves:Array; public var _isPaused:Boolean; private var _bottomY:Number; public var _numOfMoves:int;// = 4 public var _pauseTime:Number;// = 2 public var _moveTimer:Timer; public var _fightSpace:Number;// = 75 public var _enemyChaseSpeed:Number;// = 0.007 public var _enemy:MovieClip; public var _hasFainted:Boolean; public var _enemyDefend:MovieClip; public var _isEnemyInDefend:Boolean; public var _isShootMode:Boolean; public var _retreatDis:int;// = 40 public var _isDying:Boolean; public var _isFainted:Boolean; public var _isEntering:Boolean; public var _strikeNum:int; public var _ninjaHasMoved:Boolean; public var _ENEMY_LIFE:Number;// = 300 public var _currHitType:int; public var _strikeTimer:Timer; public var _pauseStrikeNum:int;// = 15 public var _enemyLie:MovieClip; public var _leftBord:Number; public var _enemySpeed:Number;// = 0.01 private var _ballCont:Sprite; public var _enemyType:int;// = 7 public var _strikeInt:Number;// = 0.15 public var _enemyMove1:MovieClip; public var _enemyMove2:MovieClip; public var _enemyMove3:MovieClip; public var _enemyMove4:MovieClip; public var _enemyMove5:MovieClip; public var _enemyMove6:MovieClip; public var _enemyMove7:MovieClip; public var _enemyMove8:MovieClip; public var _enemyFall:MovieClip; public var _yLevel:int; public var _bonusObj:String;// = "enemy4Bonus" public var _enemyWalk:MovieClip; public var _rightBord:Number; public static const ADD_BONUS:String = "add bonus"; public static const GET_NINJA_LOC:String = "get ninja loc"; public static const ENEMY_DEAD:String = "enemy dead"; public static const ENEMY_HIT:String = "enemy hit"; public static const ENEMY_SHOOT:String = "enemy shoot"; public function Enemy7(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:int, _arg9:int):void{ _enemy = new MovieClip(); _lastMoves = new Array(); _enemyType = 7; _ENEMY_LIFE = 300; _lifeBar = _ENEMY_LIFE; _fightSpace = 75; _numOfMoves = 4; _bonusObj = "enemy4Bonus"; _bonusValue = 30; _pauseStrikeNum = 15; _pauseTime = 2; _enemySpeed = 0.01; _enemyChaseSpeed = 0.007; _strikeInt = 0.15; _retreatDis = 40; super(); _enemyStatic = new enemy7Static(); _enemyHit = new enemy7Hit(); _enemyWalk = new enemy7Walk(); _enemyFall = new enemy7Fall(); _enemyLie = new enemy7Lie(); _enemyDefend = new enemy7Defend(); _enemyMove1 = new enemy7Sword1(); _enemyMove2 = new enemy7Sword2(); _enemyMove3 = new enemy7Sword3(); _enemyMove4 = new enemy7Kick(); _enemyMove5 = new enemy7SwordUp(); _enemyMove6 = new enemy7Roll(); _enemyMove7 = new enemy7Disappear(); _enemyMove8 = new enemy7JumpAndShoot(); _moveTimer = new Timer(1000); _strikeTimer = new Timer(8000); Adlib.addSound(new enSword2(), {name:"sword1", volume:1, dontPlay:true}); Adlib.addSound(new enSword1(), {name:"sword2", volume:4, dontPlay:true}); Adlib.addSound(new enSword5(), {name:"sword3", volume:1, dontPlay:true}); Adlib.addSound(new kickSound(), {name:"kick", volume:0.7, delay:300, dontPlay:true}); Adlib.addSound(new sword2(), {name:"swordUp", volume:1, delay:200, dontPlay:true}); Adlib.addSound(new roll(), {name:"roll", volume:9, dontPlay:true}); Adlib.addSound(new dissapear(), {name:"dissapearIn", volume:0.3, dontPlay:true}); Adlib.addSound(new dissapear(), {name:"dissapearOut", volume:0.3, delay:1800, dontPlay:true}); Adlib.addSound(new enJump(), {name:"jumpUp", volume:3, delay:100, dontPlay:true}); Adlib.addSound(new fall(), {name:"fall", volume:2.5, dontPlay:true}); Adlib.addSound(new shootBall(), {name:"shoot", volume:0.8, dontPlay:true}); _soundArr = ["sword1", "sword2", "sword3", "kick", "swordUp", "roll", "dissapearIn", "dissapearOut", "jumpUp", "fall", "shoot"]; _leftBord = _arg1; _rightBord = _arg2; _yLevel = _arg8; _enemy.x = _arg3; _enemy.y = _arg4; _bottomY = _arg6; _enemy.scaleX = _arg7; _enemyHit.alpha = 0; _enemy.addChild(_enemyHit); _enemy.addChildAt(_enemyStatic, 1); Tweener.addTween(_enemy, {_DropShadow_strength:5, _DropShadow_quality:2, _DropShadow_blurX:2, _DropShadow_blurY:2}); this.addChild(_enemy); _ballCont = new Sprite(); _ballCont.name = "weaponCont"; this.addChild(_ballCont); this.enemyEnter(_arg3, _arg5, _arg4, _arg6, _arg9); } private function move1():void{ _enemy.removeChildAt(1); _enemy.addChildAt(_enemyMove1, 1); Adlib.playSound(_soundArr[0]); Tweener.addTween(_enemy.getChildAt(1), {_frame:1}); Tweener.addTween(_enemy.getChildAt(1), {delay:0.3, onComplete:function (){ dispatchEvent(new Event("enemy hit")); }}); Tweener.addTween(_enemy.getChildAt(1), {_frame:MovieClip(_enemy.getChildAt(1)).totalFrames, time:0.4, transition:"linear"}); Tweener.addTween(_enemy.getChildAt(1), {delay:(_strikeInt + 0.4), onComplete:beginFight}); } private function move7():void{ var isOkLoc:Boolean; var ranX:Number; var newScale:Number; if (_lastMoves.indexOf(7) == -1){ dispatchEvent(new Event("get ninja loc")); _lastMoves.push(7); while (!(isOkLoc)) { ranX = ((Math.random() * (_rightBord - _leftBord)) + _leftBord); if (Math.abs((_currNinjaX - ranX)) >= _fightSpace){ isOkLoc = true; }; }; newScale = 1; if (ranX > _currNinjaX){ newScale = -1; }; _enemy.removeChildAt(1); _enemy.addChildAt(_enemyMove7, 1); Adlib.playSound(_soundArr[6]); Adlib.playSound(_soundArr[7]); Tweener.addTween(_enemy.getChildAt(1), {_frame:1}); Tweener.addTween(_enemy.getChildAt(1), {_frame:MovieClip(_enemy.getChildAt(1)).totalFrames, time:0.3, transition:"linear"}); Tweener.addTween(_enemy, {x:ranX, scaleX:newScale, delay:1}); Tweener.addTween(_enemy.getChildAt(1), {_frame:1, time:0.3, delay:2, transition:"linear", onComplete:function (){ _isFightMode = false; chaseNinja(); }}); } else { this.beginFight(); }; } private function move6():void{ var newX:Number; dispatchEvent(new Event("get ninja loc")); if ((((((((((((_enemy.scaleX == 1)) && (((_enemy.x + 160) < _rightBord)))) || ((((_enemy.scaleX == -1)) && (((_enemy.x - 160) > _leftBord)))))) && ((_lastMoves.indexOf(6) == -1)))) && ((Math.abs((_currNinjaX - _enemy.x)) <= _fightSpace)))) && (!(_isFainted)))){ _lastMoves.push(6); _enemy.removeChildAt(1); _enemy.addChildAt(_enemyMove6, 1); Adlib.playSound(_soundArr[5]); Tweener.addTween(_enemy.getChildAt(1), {_frame:1}); Tweener.addTween(_enemy.getChildAt(1), {_frame:(MovieClip(_enemy.getChildAt(1)).totalFrames / 2), time:0.3, transition:"linear"}); newX = (_enemy.x + (_enemy.scaleX * 150)); Tweener.addTween(_enemy, {x:newX, time:0.4, delay:0.1, onComplete:function (){ _enemy.scaleX = (_enemy.scaleX * -1); }}); Tweener.addTween(_enemy.getChildAt(1), {_frame:MovieClip(_enemy.getChildAt(1)).totalFrames, time:0.3, transition:"linear"}); Tweener.addTween(_enemy.getChildAt(1), {delay:0.7, onComplete:beginFight}); } else { this.beginFight(); }; } private function move3():void{ _enemy.removeChildAt(1); _enemy.addChildAt(_enemyMove3, 1); Adlib.playSound(_soundArr[2]); Tweener.addTween(_enemy.getChildAt(1), {_frame:1}); Tweener.addTween(_enemy.getChildAt(1), {delay:0.2, onComplete:function (){ dispatchEvent(new Event("enemy hit")); }}); Tweener.addTween(_enemy.getChildAt(1), {_frame:MovieClip(_enemy.getChildAt(1)).totalFrames, time:0.3, transition:"linear"}); Tweener.addTween(_enemy.getChildAt(1), {delay:(_strikeInt + 0.3), onComplete:beginFight}); } private function move8():void{ var startX:Number; var middleX:Number; var currBall:Sprite; var delayNum:Number; var currScope:*; var i:int; var shootBall:Function; var calcEndX:Function; if ((((((((_enemy.scaleX == 1)) && (((_enemy.x + 160) < _rightBord)))) || ((((_enemy.scaleX == -1)) && (((_enemy.x - 160) > _leftBord)))))) && ((_lastMoves.indexOf(8) == -1)))){ shootBall = function ():void{ var pnt:Point; var newX:Number; dispatchEvent(new Event("get ninja loc")); if (_currNinjaX > _enemy.x){ _enemy.scaleX = 1; } else { _enemy.scaleX = -1; }; currBall = new energyBall(); pnt = new Point(_enemy.getChildAt(1)["hand"].x, _enemy.getChildAt(1)["hand"].y); pnt = _enemy.localToGlobal(pnt); currBall.x = pnt.x; currBall.y = pnt.y; _ballCont.addChild(currBall); newX = _currNinjaX; Adlib.playSound(_soundArr[10]); Tweener.addTween(currBall, {x:newX, y:_bottomY, time:0.4, transition:"linear", onUpdate:function (){ dispatchEvent(new DataEvent("enemy shoot", false, false, "dontUseDefence")); }, onComplete:function (){ removeWeapon(this); }}); }; calcEndX = function ():void{ var _local1:Number; _local1 = (startX + (_enemy.scaleX * 160)); if (Math.abs((_currNinjaX - _local1)) < _fightSpace){ _local1 = (_currNinjaX - (_enemy.scaleX * _fightSpace)); }; Adlib.playSound(_soundArr[9]); Tweener.addTween(_enemy, {x:_local1, y:_bottomY, time:0.5}); }; dispatchEvent(new Event("get ninja loc")); _lastMoves.push(8); _enemy.removeChildAt(1); _enemy.addChildAt(_enemyMove8, 1); startX = _enemy.x; middleX = (_currNinjaX - (80 * _enemy.scaleX)); Adlib.playSound(_soundArr[8]); Tweener.addTween(_enemy.getChildAt(1), {_frame:1}); Tweener.addTween(_enemy.getChildAt(1), {_frame:31, time:0.5, transition:"easeOutCubic"}); Tweener.addTween(_enemy, {x:middleX, y:(_enemy.y - 130), time:0.5}); delayNum = 0.5; currScope = this; i = 0; while (i < 16) { Tweener.addTween(this, {delay:delayNum, onComplete:shootBall}); delayNum = (delayNum + 0.2); i = (i + 1); }; Tweener.addTween(this, {delay:4.1, onComplete:calcEndX}); Tweener.addTween(_enemy.getChildAt(1), {_frame:MovieClip(_enemy.getChildAt(1)).totalFrames, time:0.5, delay:4.1, transition:"easeInCubic", onComplete:function (){ _isFightMode = false; chaseNinja(); }}); } else { this.beginFight(); }; } private function move4():void{ _enemy.removeChildAt(1); _enemy.addChildAt(_enemyMove4, 1); Adlib.playSound(_soundArr[3]); Tweener.addTween(_enemy.getChildAt(1), {_frame:1}); Tweener.addTween(_enemy.getChildAt(1), {delay:0.4, onComplete:function (){ dispatchEvent(new Event("enemy hit")); }}); Tweener.addTween(_enemy.getChildAt(1), {_frame:MovieClip(_enemy.getChildAt(1)).totalFrames, time:0.6, transition:"linear"}); Tweener.addTween(_enemy.getChildAt(1), {delay:(_strikeInt + 0.6), onComplete:beginFight}); } public function handleFightMode():void{ var _local1:Number; var _local2:int; if (_lastMoves.length == 7){ _lastMoves.splice(0, 1); }; _local1 = Math.random(); if (_local1 < 0.1){ this.move7(); } else { if ((((_local1 > 0.1)) && ((_local1 < 0.3)))){ _currHitType = 6; _isShootMode = true; this.move8(); } else { if ((((_local1 > 0.3)) && ((_local1 < 0.4)))){ _currHitType = 5; _lastMoves.push(5); this.move5(); } else { if ((((_local1 > 0.4)) && ((_local1 < 0.5)))){ this.move6(); } else { if ((((_local1 > 0.5)) && ((_local1 < 0.6)))){ _lastMoves.push(9); this.defend(); } else { _local2 = Math.floor(((Math.random() * _numOfMoves) + 1)); _lastMoves.push(_local2); _currHitType = _local2; var _local3 = this; _local3[("move" + _local2)](); }; }; }; }; }; } public function erase():void{ var _local1:DisplayObject; var _local2:int; Tweener.removeTweens(_enemy.getChildAt(1)); Tweener.removeTweens(_enemy); Tweener.removeTweens(this); Tweener.removeAllTweens(); _enemy.removeChildAt(1); _enemy.removeChildAt(0); _local2 = 0; while (_local2 < this.numChildren) { _local1 = this.getChildAt(0); this.removeChild(_local1); _local1 = null; _local2++; }; _isFightMode = false; _moveTimer.stop(); _moveTimer = null; _strikeTimer.stop(); _strikeTimer = null; _enemy = null; _enemyHit = null; _enemyStatic = null; _enemyWalk = null; _enemyFall = null; _enemyMove1 = null; _enemyMove2 = null; _enemyMove3 = null; _enemyMove4 = null; _enemyMove5 = null; _enemyMove6 = null; _enemyMove7 = null; _enemyMove8 = null; _enemyLie = null; _enemyDefend = null; } private function move5():void{ _enemy.removeChildAt(1); _enemy.addChildAt(_enemyMove5, 1); Adlib.playSound(_soundArr[4]); Tweener.addTween(_enemy.getChildAt(1), {_frame:1}); Tweener.addTween(_enemy.getChildAt(1), {delay:0.6, onComplete:function (){ dispatchEvent(new Event("enemy hit")); }}); Tweener.addTween(_enemy.getChildAt(1), {_frame:MovieClip(_enemy.getChildAt(1)).totalFrames, time:0.8, transition:"linear"}); Tweener.addTween(_enemy.getChildAt(1), {delay:(_strikeInt + 0.8), onComplete:beginFight}); } private function move2():void{ _enemy.removeChildAt(1); _enemy.addChildAt(_enemyMove2, 1); Adlib.playSound(_soundArr[1]); Tweener.addTween(_enemy.getChildAt(1), {_frame:1}); Tweener.addTween(_enemy.getChildAt(1), {delay:0.2, onComplete:function (){ dispatchEvent(new Event("enemy hit")); }}); Tweener.addTween(_enemy.getChildAt(1), {_frame:MovieClip(_enemy.getChildAt(1)).totalFrames, time:0.3, transition:"linear"}); Tweener.addTween(_enemy.getChildAt(1), {delay:(_strikeInt + 0.3), onComplete:beginFight}); } public function handleReducedLife():void{ this.checkIfToFaint(); this.checkIfToPause(); } public function handleEnemyPause():void{ this.enemyPause(); this.enemyPauseMove(); } public function removeWeapon(_arg1:DisplayObject):void{ Tweener.removeTweens(_arg1); if (_arg1.parent == _ballCont){ _ballCont.removeChild(_arg1); }; _arg1 = null; } override public function stopFighting():void{ _isFightMode = false; _isShootMode = false; } } }//package
Section 114
//enemy7Bar (enemy7Bar) package { import flash.display.*; public dynamic class enemy7Bar extends MovieClip { } }//package
Section 115
//enemy7Defend (enemy7Defend) package { import flash.display.*; public dynamic class enemy7Defend extends MovieClip { public var sword:MovieClip; } }//package
Section 116
//enemy7Disappear (enemy7Disappear) package { import flash.display.*; public dynamic class enemy7Disappear extends MovieClip { public function enemy7Disappear(){ addFrameScript(0, frame1, 16, frame17); } function frame1(){ stop(); } function frame17(){ stop(); } } }//package
Section 117
//enemy7Fall (enemy7Fall) package { import flash.display.*; public dynamic class enemy7Fall extends MovieClip { public var sword:MovieClip; public function enemy7Fall(){ addFrameScript(0, frame1, 31, frame32); } function frame1(){ stop(); } function frame32(){ stop(); } } }//package
Section 118
//enemy7Hit (enemy7Hit) package { import flash.display.*; public dynamic class enemy7Hit extends MovieClip { } }//package
Section 119
//enemy7JumpAndShoot (enemy7JumpAndShoot) package { import flash.display.*; public dynamic class enemy7JumpAndShoot extends MovieClip { public var hand:MovieClip; public var sword:MovieClip; public function enemy7JumpAndShoot(){ addFrameScript(0, frame1, 55, frame56); } function frame1(){ stop(); } function frame56(){ stop(); } } }//package
Section 120
//enemy7Kick (enemy7Kick) package { import flash.display.*; public dynamic class enemy7Kick extends MovieClip { public var sword:MovieClip; public function enemy7Kick(){ addFrameScript(0, frame1, 35, frame36); } function frame1(){ stop(); } function frame36(){ stop(); } } }//package
Section 121
//enemy7Lie (enemy7Lie) package { import flash.display.*; public dynamic class enemy7Lie extends MovieClip { public var sword:MovieClip; public function enemy7Lie(){ addFrameScript(0, frame1, 26, frame27); } function frame1(){ stop(); } function frame27(){ stop(); } } }//package
Section 122
//enemy7Roll (enemy7Roll) package { import flash.display.*; public dynamic class enemy7Roll extends MovieClip { public var sword:MovieClip; public function enemy7Roll(){ addFrameScript(0, frame1, 25, frame26); } function frame1(){ stop(); } function frame26(){ stop(); } } }//package
Section 123
//enemy7Static (enemy7Static) package { import flash.display.*; public dynamic class enemy7Static extends MovieClip { public var sword:MovieClip; } }//package
Section 124
//enemy7Sword1 (enemy7Sword1) package { import flash.display.*; public dynamic class enemy7Sword1 extends MovieClip { public var sword:MovieClip; public function enemy7Sword1(){ addFrameScript(0, frame1, 20, frame21); } function frame1(){ stop(); } function frame21(){ stop(); } } }//package
Section 125
//enemy7Sword2 (enemy7Sword2) package { import flash.display.*; public dynamic class enemy7Sword2 extends MovieClip { public var sword:MovieClip; public function enemy7Sword2(){ addFrameScript(0, frame1, 23, frame24); } function frame1(){ stop(); } function frame24(){ stop(); } } }//package
Section 126
//enemy7Sword3 (enemy7Sword3) package { import flash.display.*; public dynamic class enemy7Sword3 extends MovieClip { public var sword:MovieClip; public function enemy7Sword3(){ addFrameScript(0, frame1, 23, frame24); } function frame1(){ stop(); } function frame24(){ stop(); } } }//package
Section 127
//enemy7SwordUp (enemy7SwordUp) package { import flash.display.*; public dynamic class enemy7SwordUp extends MovieClip { public var sword:MovieClip; public function enemy7SwordUp(){ addFrameScript(0, frame1, 60, frame61); } function frame1(){ stop(); } function frame61(){ stop(); } } }//package
Section 128
//enemy7Walk (enemy7Walk) package { import flash.display.*; public dynamic class enemy7Walk extends MovieClip { public var sword:MovieClip; } }//package
Section 129
//enemyLifeBar (enemyLifeBar) package { import flash.display.*; public dynamic class enemyLifeBar extends MovieClip { public var lifeMask:MovieClip; } }//package
Section 130
//enemyStarObj (enemyStarObj) package { import flash.display.*; public dynamic class enemyStarObj extends MovieClip { } }//package
Section 131
//EnemyType (EnemyType) package { import caurina.transitions.properties.*; public class EnemyType { private var _points:int; private var _weaponSymbol:Array; public var _type:int; private var _weaponStrength:Array; public function EnemyType():void{ DisplayShortcuts.init(); } public function get type():int{ return (_type); } public function get points():int{ return (_points); } public function set weaponSymbol(_arg1:Array){ _weaponSymbol = _arg1; } public function set weaponStrength(_arg1:Array){ _weaponStrength = _arg1; } public function set points(_arg1:int){ _points = _arg1; } public function set type(_arg1:int){ _type = _arg1; } public function get weaponSymbol():Array{ return (_weaponSymbol); } public function get weaponStrength():Array{ return (_weaponStrength); } } }//package
Section 132
//energyBall (energyBall) package { import flash.display.*; public dynamic class energyBall extends MovieClip { } }//package
Section 133
//enJump (enJump) package { import flash.media.*; public dynamic class enJump extends Sound { } }//package
Section 134
//enSword1 (enSword1) package { import flash.media.*; public dynamic class enSword1 extends Sound { } }//package
Section 135
//enSword2 (enSword2) package { import flash.media.*; public dynamic class enSword2 extends Sound { } }//package
Section 136
//enSword3 (enSword3) package { import flash.media.*; public dynamic class enSword3 extends Sound { } }//package
Section 137
//enSword4 (enSword4) package { import flash.media.*; public dynamic class enSword4 extends Sound { } }//package
Section 138
//enSword5 (enSword5) package { import flash.media.*; public dynamic class enSword5 extends Sound { } }//package
Section 139
//fall (fall) package { import flash.media.*; public dynamic class fall extends Sound { } }//package
Section 140
//finalFrameLose (finalFrameLose) package { import flash.display.*; public dynamic class finalFrameLose extends MovieClip { } }//package
Section 141
//finalFrameWin (finalFrameWin) package { import flash.display.*; public dynamic class finalFrameWin extends MovieClip { } }//package
Section 142
//GameEngine (GameEngine) package { import flash.events.*; import caurina.transitions.*; import flash.geom.*; import flash.display.*; import com.tweegee.games.*; import caurina.transitions.properties.*; import flash.utils.*; public class GameEngine extends MovieClip { private var _enemiesArr:Array; private var _lastLevelNum:int;// = 0 private var _ninjaHit:MovieClip; private var _hitWord2:MovieClip; private var _isNinjaStatic:Boolean; private var _topObjs:Sprite; private var _ninjaDefend:MovieClip; private var _isDefendMode:Boolean; private var _ninjaLifeCount:Number;// = 3 private var _lifeBar:Sprite; private var _topBorder:Number; private var _starCount:int;// = 0 private var _bottomY:Number; private var _soundArr:Array; private var _ninjaKick:MovieClip; private var _isFirstEvent:Boolean; private var _fightSpace:Number;// = 65 private var _borderSpace:Number;// = 40 private var _speedBonusMess:Sprite; private var _ninjaStar:MovieClip; private var _levels:Array; private var _isFalling:Boolean; private var _obsArray:Array; private var _enemyLifeBar:Sprite; private var _leftBorder:Number; private var _enemyWidth:Number;// = 90 private var _levelNum:uint; private var _ninjaDown:MovieClip; private var _keys:Array; private var _enemies:Array; public var _currLevel:Sprite; private var _ninjaLie:MovieClip; private var _addEnemiesNum:Array; private var _levelScore:Number; private var _enemiesBarArr:Array; private var _currYlevel:int; private var _bonusObjArr:Array; private var _ninjaLevelStars:int; private var _jumpNum:uint; private var _ninjaSword1:MovieClip; private var _ninjaSword2:MovieClip; private var _ninjaSword3:MovieClip; public var _totalScore:int; private var _levelBar:Sprite; private var _NINJA_LIFE:Number;// = 600 private var _ninjaLevelLife:int; private var _deadEnemies:int; private var _ninjaSwordUp:MovieClip; private var _ninjaLifeBar:Number; private var _lifeCountBar:Sprite; private var _scoreBar:Sprite; private var _ninja:Sprite; private var _ninjaUp:MovieClip; private var _newX:Number; private var _newY:Number; private var _rightBorder:Number; private var _ninjaFall:MovieClip; private var _startBar:Sprite; private var _levelTimer:Timer; private var _ninjaStatic:MovieClip; private var _ememyLifeBarNextY:Number; private var _addEnemies:Array; private var _hitWord1:MovieClip; private var _ninjaWalk:MovieClip; private var _hitWord5:MovieClip; private var _hitWord6:MovieClip; private var _hitWord7:MovieClip; private var _hitWord3:MovieClip; private var _hitWord4:MovieClip; private var _stage:Stage; public static const LEVEL_END:String = "level end"; public static const RESTART_LEVEL:String = "restart level"; public static const GAME_END:String = "game end"; public function GameEngine(_arg1):void{ _lifeBar = new lifeBar(); _lifeCountBar = new lifeCountBar(); _startBar = new ninjaStarBar(); _scoreBar = new scoreMov(); _levelBar = new levelMov(); _speedBonusMess = new speedBonus(); _lastLevelNum = 0; _starCount = 0; _NINJA_LIFE = 600; _ninjaLifeBar = _NINJA_LIFE; _ninjaLifeCount = 3; _fightSpace = 65; _borderSpace = 40; _enemyWidth = 90; super(); _stage = _arg1; DisplayShortcuts.init(); ColorShortcuts.init(); FilterShortcuts.init(); _levelTimer = new Timer(1000); this.setGameSettings(); } private function endNinjaDefend(_arg1:int):void{ Tweener.addTween(_ninja.getChildAt(1), {_DropShadow_strength:0, _DropShadow_quality:0, _DropShadow_blurX:0, _DropShadow_blurY:0}); Tweener.removeTweens(_ninja.getChildAt(1), "_DropShadow_strength", "_DropShadow_quality", "_DropShadow_blurX", "_DropShadow_blurY"); _isDefendMode = false; this.endNinjaMov(_arg1); } private function adjustEnemyLifeBar(_arg1:Sprite, _arg2:Number):void{ if (_arg2 < 0){ _arg2 = 0; }; Tweener.addTween(_arg1.getChildAt(1)["lifeMask"], {scaleX:_arg2, time:0.2}); } private function moveEnemiesLifeBars(_arg1:int, _arg2:int):void{ var _local3:int; var _local4:Sprite; var _local5:int; Tweener.addTween(_local4, {alpha:0, time:0.8}); _ememyLifeBarNextY = (_ememyLifeBarNextY - 30); _local3 = (_enemyLifeBar.getChildIndex(_enemiesBarArr[_arg1][_arg2]) + 1); _local5 = _local3; while (_local5 < _enemyLifeBar.numChildren) { _local4 = Sprite(_enemyLifeBar.getChildAt(_local5)); Tweener.addTween(_local4, {y:(_local4.y - 30), time:0.5, delay:0.3}); _local5++; }; _enemyLifeBar.removeChild(_enemiesBarArr[_arg1][_arg2]); delete _enemiesBarArr[_arg1][_arg2]; _enemiesBarArr[_arg1].splice(_arg2, 1); } private function checkIfHitNinja(_arg1:Event):void{ if (_ninja.getChildAt(0).hitTestObject(MovieClip(_arg1.currentTarget.getChildAt(0)).getChildAt(1)["sword"]["hit"])){ if (!_isDefendMode){ this.handleNinjaHit(_arg1.currentTarget); } else { this.handleNinjaDefendMode(); }; }; } private function endNinjaMov(_arg1:Number):void{ _ninja.removeChildAt(1); _ninjaStatic.gotoAndPlay(1); _ninja.addChildAt(_ninjaStatic, 1); _isNinjaStatic = true; _keys[_arg1].isRunning = false; this.checkIsTherePressedWaiting(); } private function isObstacle(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:int, _arg6:Number):Boolean{ var isHitObstacle:Boolean; var i:uint; var currSpace:Number; var currEnemy:MovieClip; var enemyHit:MovieClip; var k:int; var startYlevel:Number; var theDis:Number; var disTime:Number; var oldX = _arg1; var oldY = _arg2; var newX = _arg3; var newY = _arg4; var keyInd = _arg5; var bound = _arg6; isHitObstacle = false; i = 0; while (i < _obsArray.length) { if (_obsArray[i].hitTestPoint(bound, (newY - 30), true)){ return (true); }; i = (i + 1); }; if (bound < _leftBorder){ _newX = (_leftBorder + (_ninja.width / 2)); } else { if (bound > _rightBorder){ _newX = (_rightBorder - (_ninja.width / 2)); }; }; if (!_obsArray[_currYlevel].hitTestPoint(newX, newY, true)){ _isFalling = true; Adlib.playSound("fall"); startYlevel = _currYlevel; _ninja.removeChildAt(1); _ninja.addChildAt(_ninjaFall, 1); this.checkObstacles(newX, newY, newX); theDis = (_newY - oldY); disTime = (0.001 * theDis); Tweener.addTween(_ninja.getChildAt(1), {_frame:1}); Tweener.addTween(_ninja.getChildAt(1), {_frame:32, time:0.7, delay:(disTime / 10), transition:"linear", onComplete:function (){ _isFalling = false; checkForEnemies(startYlevel); checkIfFell(); walk(keyInd); }}); Tweener.addTween(_ninja, {x:_newX, y:_newY, time:disTime, transition:"easeOutCubic", onUpdate:checkIfHitBonusObj}); }; currSpace = (_fightSpace * _ninja.scaleX); while (k < _enemiesArr[_currYlevel].length) { currEnemy = _enemiesArr[_currYlevel][k]; enemyHit = MovieClip(MovieClip(currEnemy.getChildAt(0)).getChildAt(0)); if (((enemyHit.hitTestPoint((oldX + currSpace), newY)) && (!(currEnemy.isDying)))){ return (true); }; k = (k + 1); }; return (false); } private function handleKeyUp(_arg1:KeyboardEvent):void{ var _local2:Number; var _local3:uint; _local2 = _arg1.keyCode; _local3 = 0; while (_local3 < _keys.length) { if (_keys[_local3].code == _local2){ _keys[_local3].isPressed = false; if (_keys[_local3].onCompleteFuncToCall != null){ var _local4 = this; _local4[_keys[_local3].onCompleteFuncToCall](_keys[_local3].onCompleteParams); }; _isFirstEvent = true; }; _local3++; }; } private function checkForEnemies(_arg1:Number):void{ var _local2:int; var _local3:int; if (_currYlevel != _arg1){ _local2 = 0; while (_local2 < _enemiesArr[_currYlevel].length) { _enemiesArr[_currYlevel][_local2].detectNinja(); _local2++; }; _local3 = 0; while (_local3 < _enemiesArr[_arg1].length) { _enemiesArr[_arg1][_local3].startMoving(); _local3++; }; } else { this.alertNinjaMove(); }; } private function kick(_arg1:int):void{ var _local2:int; if (_keys[_arg1].isPressed){ _ninja.removeChildAt(1); _ninja.addChildAt(_keys[_arg1].keyObj, 1); _keys[_arg1].isRunning = true; _isNinjaStatic = false; _local2 = 7; Adlib.playSound(_soundArr[(_local2 - 2)]); Tweener.addTween(_ninja.getChildAt(1), {_frame:1}); Tweener.addTween(this, {delay:(_keys[_arg1].moveTime / 1.5), onComplete:checkIfHitEnemy, onCompleteParams:[_ninja.getChildAt(1)["leg"]["hit"], _local2]}); Tweener.addTween(_ninja.getChildAt(1), {_frame:MovieClip(_ninja.getChildAt(1)).totalFrames, time:_keys[_arg1].moveTime, transition:"linear", onComplete:kick, onCompleteParams:[_arg1]}); } else { this.endNinjaMov(_arg1); }; } private function handleKeyDown(_arg1:KeyboardEvent):void{ var _local2:Number; var _local3:uint; _local2 = _arg1.keyCode; _local3 = 0; while (_local3 < _keys.length) { if (_keys[_local3].code == _local2){ _keys[_local3].isPressed = true; if (((!(_keys[11].isRunning)) && (!(_keys[12].isRunning)))){ if (_isFirstEvent){ _isFirstEvent = false; this.handlePressedKey(_local3); } else { if ((((_local3 == 0)) || ((_local3 == 10)))){ this.handlePressedKey(_local3); }; }; } else { if (_local3 == 12){ this.handlePressedKey(_local3); }; }; }; _local3++; }; } private function setEnemy():void{ var enemyYlevel:int; var enemyStartX:Number; var enemyStartY:Number; var enemyEndX:Number; var enemyEndY:Number; var enemyDir:Number; var levelBounds:Object; var leftBord:Number; var rightBord:Number; var setLeftBorder:Function; var setRightBorder:Function; var setTopBorder:Function; var isNinjaLevel:Boolean; setLeftBorder = function ():void{ enemyStartX = (_leftBorder - _enemyWidth); enemyStartY = MovieClip(_obsArray[enemyYlevel]).y; enemyEndX = leftBord; enemyEndY = enemyStartY; enemyDir = 1; leftBord = (_leftBorder + (_enemyWidth / 2)); }; setRightBorder = function ():void{ enemyStartX = (_rightBorder + _enemyWidth); enemyStartY = MovieClip(_obsArray[enemyYlevel]).y; enemyEndX = rightBord; enemyEndY = enemyStartY; enemyDir = -1; rightBord = (_rightBorder - (_enemyWidth / 2)); }; setTopBorder = function ():void{ enemyStartY = (_topBorder - 100); enemyEndY = MovieClip(_obsArray[enemyYlevel]).y; if (Math.random() < 0.5){ enemyStartX = leftBord; enemyDir = 1; } else { enemyStartX = rightBord; enemyDir = -1; }; enemyEndX = enemyStartX; }; enemyYlevel = _addEnemies[0][1]; levelBounds = MovieClip(_obsArray[enemyYlevel]).getBounds(_currLevel); leftBord = (levelBounds.left + (_enemyWidth / 2)); rightBord = (levelBounds.right - (_enemyWidth / 2)); if ((((levelBounds.left < _leftBorder)) && ((levelBounds.right > _rightBorder)))){ if (Math.random() <= 0.5){ setLeftBorder(); } else { setRightBorder(); }; } else { if (levelBounds.left < _leftBorder){ setLeftBorder(); } else { if (levelBounds.right > _rightBorder){ setRightBorder(); } else { setTopBorder(); }; }; }; if (_currYlevel == enemyYlevel){ isNinjaLevel = true; }; this.addEnemy(_addEnemies[0][0], leftBord, rightBord, enemyStartX, enemyStartY, enemyEndX, enemyEndY, enemyDir, enemyYlevel); _addEnemies.splice(0, 1); } private function checkIfFell():void{ if (_ninja.hitTestObject(MovieClip(_obsArray[0]))){ Tweener.removeTweens(_ninja); _currLevel.removeChild(_ninja); Tweener.addTween(this, {delay:0.5, onComplete:endLevel, onCompleteParams:["lose"]}); }; } public function setLevel(_arg1):void{ var levelName:String; var levelRef:Class; var p:int; var h:int; var j:uint; var boundObj:Object; var topObj:DisplayObject; var q:int; var enemyType:int; var bounds:Object; var leftBord:Number; var rightBord:Number; var dir:Number; var startX:Number; var startY:Number; var endX:Number; var endY:Number; var enemyYlevel:Number; var k:int; var bonusType:int; var bonusX:Number; var bonusY:Number; var currBonus:MovieClip; var addBonus:Boolean; var t:int; var currBubble:Sprite; var m:int; var i:uint; var levelNum = _arg1; _levelNum = levelNum; _levelScore = 0; _currYlevel = _levels[(_levelNum - 1)].ninjaYlevel; _obsArray = new Array(); _enemiesArr = new Array(); _enemiesBarArr = new Array(); _addEnemies = new Array(); _addEnemiesNum = new Array(); _topObjs = new Sprite(); _enemyLifeBar = new Sprite(); _ememyLifeBarNextY = 0; _ninjaLevelLife = _ninjaLifeBar; _ninjaLevelStars = _starCount; _bonusObjArr = new Array(); _deadEnemies = 0; levelName = ("level" + _levelNum); levelRef = (getDefinitionByName(levelName) as Class); _currLevel = new (levelRef); p = 0; while (p < _levels[(_levelNum - 1)].addEnemies.length) { _addEnemies.push(_levels[(_levelNum - 1)].addEnemies[p]); p = (p + 1); }; h = 0; while (h < _levels[(_levelNum - 1)].addEnemiesNum.length) { _addEnemiesNum.push(_levels[(_levelNum - 1)].addEnemiesNum[h]); h = (h + 1); }; j = 0; while (j < _currLevel.numChildren) { if ((((_currLevel.getChildAt(j).name == "yLevel")) || ((_currLevel.getChildAt(j).name == "obs")))){ _obsArray.push(_currLevel.getChildAt(j)); _enemiesArr.push(new Array()); _enemiesBarArr.push(new Array()); }; j = (j + 1); }; _obsArray.sortOn(["y", "x"], [(Array.NUMERIC | Array.DESCENDING), Array.NUMERIC]); boundObj = _currLevel["border"].getBounds(_currLevel); _rightBorder = boundObj.right; _leftBorder = boundObj.left; _topBorder = boundObj.top; _bottomY = MovieClip(_obsArray[0]).y; _lifeBar.x = 15; _lifeBar.y = 53; _currLevel.addChild(_lifeBar); _lifeBar["lifeMask"].scaleX = (_ninjaLifeBar / _NINJA_LIFE); _lifeCountBar.x = 20; _lifeCountBar.y = 10; _currLevel.addChild(_lifeCountBar); _scoreBar.x = 470; _scoreBar.y = 25; _scoreBar["scoreTxt"].text = String(_totalScore); _currLevel.addChild(_scoreBar); _levelBar.x = 320; _levelBar.y = 25; _levelBar["levelTxt"].text = _levelNum; _currLevel.addChild(_levelBar); _startBar.x = 210; _startBar.y = 25; if (_starCount > 0){ _startBar.alpha = 1; } else { _startBar.alpha = 0.4; }; _startBar["starCountTxt"].text = _starCount; _currLevel.addChild(_startBar); _enemyLifeBar.x = 650; _enemyLifeBar.y = 18; _currLevel.addChild(_enemyLifeBar); q = 0; while (q < _levels[(_levelNum - 1)].topObjArr.length) { topObj = _levels[(_levelNum - 1)].topObjArr[q][0]; topObj.x = _levels[(_levelNum - 1)].topObjArr[q][1]; topObj.y = _levels[(_levelNum - 1)].topObjArr[q][2]; _topObjs.addChild(topObj); q = (q + 1); }; _ninja = new Sprite(); _ninja.x = _levels[(_levelNum - 1)].ninjaX; _ninja.y = MovieClip(_obsArray[_levels[(_levelNum - 1)].ninjaYlevel]).y; _ninja.scaleX = _levels[(_levelNum - 1)].ninjaScale; _ninjaHit.alpha = 0; _ninja.addChild(_ninjaHit); _ninja.addChildAt(_ninjaStatic, 1); _isNinjaStatic = true; _isDefendMode = false; _currLevel.addChild(_ninja); k = 0; while (k < _levels[(_levelNum - 1)].startEnemies.length) { enemyType = _levels[(_levelNum - 1)].startEnemies[k][0]; enemyYlevel = _levels[(_levelNum - 1)].startEnemies[k][5]; endY = MovieClip(_obsArray[enemyYlevel]).y; startY = endY; if (_levels[(_levelNum - 1)].startEnemies[k][3] != null){ startY = _levels[(_levelNum - 1)].startEnemies[k][3]; }; dir = _levels[(_levelNum - 1)].startEnemies[k][1]; startX = _levels[(_levelNum - 1)].startEnemies[k][2]; endX = _levels[(_levelNum - 1)].startEnemies[k][4]; bounds = MovieClip(_obsArray[enemyYlevel]).getBounds(_currLevel); leftBord = (bounds.left + (_enemyWidth / 2)); rightBord = (bounds.right - (_enemyWidth / 2)); if (bounds.left < _leftBorder){ leftBord = (_leftBorder + (_enemyWidth / 2)); }; if (bounds.right > _rightBorder){ rightBord = (_rightBorder - (_enemyWidth / 2)); }; this.addEnemy(enemyType, leftBord, rightBord, startX, startY, endX, endY, dir, enemyYlevel); k = (k + 1); }; addBonus = true; while (t < _levels[(_levelNum - 1)].bonusArr.length) { bonusType = _levels[(_levelNum - 1)].bonusArr[t][0]; bonusX = _levels[(_levelNum - 1)].bonusArr[t][1]; bonusY = _levels[(_levelNum - 1)].bonusArr[t][2]; switch (bonusType){ case 1: currBonus = new ninjaStarStatic(); currBonus.weaponRef = "addNinjaStars"; currBonus.hitAnim = new starBonusHit(); break; case 2: if (_lastLevelNum == _levelNum){ addBonus = false; }; currBonus = new ninjaLifeBonus(); currBonus.lifesBar = 1; currBonus.hitAnim = new lifeBonusHit(); break; }; if (addBonus){ currBonus.x = bonusX; currBonus.y = bonusY; _bonusObjArr.push(currBonus); _currLevel.addChild(currBonus); }; t = (t + 1); }; while (m < _levels[(_levelNum - 1)].bubbleArr.length) { currBubble = _levels[(_levelNum - 1)].bubbleArr[m][0]; currBubble.x = _levels[(_levelNum - 1)].bubbleArr[m][1]; currBubble.y = _levels[(_levelNum - 1)].bubbleArr[m][2]; _currLevel.addChild(currBubble); Tweener.addTween(currBubble, {alpha:0, time:0.2, onComplete:function (){ _currLevel.removeChild(currBubble); currBubble = null; }}); m = (m + 1); }; addChild(_currLevel); addChild(_topObjs); while (i < _keys.length) { _keys[i].isPressed = false; _keys[i].isRunning = false; i = (i + 1); }; _isFirstEvent = true; this.addKeyListeners(); _levelTimer.start(); } private function resumeTimers():void{ var _local1:int; var _local2:int; var _local3:int; _levelTimer.start(); _local1 = 0; while (_local1 < _enemiesArr.length) { if (_local1 == _currYlevel){ _local2 = 0; while (_local2 < _enemiesArr[_local1].length) { _enemiesArr[_local1][_local2]["_strikeTimer"].start(); _local2++; }; } else { _local3 = 0; while (_local3 < _enemiesArr[_local1].length) { _enemiesArr[_local1][_local3]["_moveTimer"].start(); _local3++; }; }; _local1++; }; } private function handleNinjaDefendMode():void{ Adlib.playSound("defenceHit"); Tweener.addTween(_ninja.getChildAt(1), {time:0.3, _DropShadow_strength:8, _DropShadow_quality:7, _DropShadow_blurX:4, _DropShadow_blurY:4, _DropShadow_color:52479}); Tweener.addTween(_ninja.getChildAt(1), {time:0.2, delay:0.3, _DropShadow_quality:2, _DropShadow_blurX:4, _DropShadow_blurY:4}); } private function eraseEnemy(_arg1:int, _arg2:int):void{ var _local3:String; var _local4:Class; var _local5:MovieClip; _local3 = ("Enemy" + _enemiesArr[_arg1][_arg2].enemyType); _local4 = (getDefinitionByName(_local3) as Class); _local5 = _enemiesArr[_arg1][_arg2]; _local5.removeEventListener(_local4.GET_NINJA_LOC, setNinjaCurrLoc); _local5.removeEventListener(_local4.ENEMY_HIT, checkIfHitNinja); _local5.removeEventListener(_local4.ENEMY_SHOOT, checkIfShootNinja); _local5.removeEventListener(_local4.ENEMY_DEAD, removeEnemy); _local5.removeEventListener(_local4.ADD_BONUS, addEnemyBonus); _local5.erase(); if (_local5.parent == _currLevel){ _currLevel.removeChild(_local5); }; delete _enemiesArr[_arg1][_arg2]; _enemiesArr[_arg1].splice(_arg2, 1); this.moveEnemiesLifeBars(_arg1, _arg2); } private function displayHitSymbol(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:int):void{ var ranX:Number; var ranY:Number; var hitNum:int; var symName:String; var symDef:Class; var currSymbol:MovieClip; var fadeOut:Function; var xRef = _arg1; var yRef = _arg2; var scale = _arg3; var hitType = _arg4; fadeOut = function (_arg1:DisplayObject):void{ var symbol = _arg1; Tweener.addTween(symbol, {alpha:0, scaleX:0, time:0.2, onComplete:function (){ _currLevel.removeChild(symbol); symbol = null; }}); }; ranX = (xRef + (((Math.random() * -60) - 20) * scale)); ranY = ((yRef - 100) - (Math.random() * 50)); hitNum = hitType; symName = ("hitWord" + hitNum); symDef = (getDefinitionByName(symName) as Class); currSymbol = new (symDef); currSymbol.alpha = 0; currSymbol.scaleX = 0; currSymbol.x = xRef; currSymbol.y = yRef; currSymbol.rotation = (-((xRef - ranX)) / 2); _currLevel.addChild(currSymbol); Tweener.addTween(currSymbol, {_frame:1}); Tweener.addTween(currSymbol, {x:ranX, y:ranY, alpha:1, time:0.5, scaleX:1, onComplete:function (){ fadeOut(this); }}); Tweener.addTween(currSymbol, {_frame:MovieClip(currSymbol).totalFrames, time:0.3, delay:0.2, transition:"linear"}); } private function adjustNinjaLifeBar(_arg1:Number):void{ var _local2:Number; var _local3:Number; _local2 = Math.abs((_arg1 * 0.05)); _local3 = (_ninjaLifeBar / _NINJA_LIFE); if (_local3 < 0){ _local3 = 0; }; if (_local3 > 1){ _local3 = 1; }; Tweener.addTween(_lifeBar["lifeMask"], {scaleX:_local3, time:_local2}); } private function handleNinjaHit(_arg1:Object):void{ var _local2:int; var _local3:Number; Tweener.addTween(_ninja.getChildAt(1), {_Glow_color:16737945, _Glow_strength:6, _Glow_alpha:0.6, _Glow_blurX:9, _Glow_blurY:9, time:0.2}); Tweener.addTween(_ninja.getChildAt(1), {_Glow_strength:0, time:0.1, delay:0.3}); _local2 = _enemies[(Number(_arg1.enemyType) - 1)].weaponSymbol[(Number(_arg1.currHitType) - 1)]; this.displayHitSymbol(_ninja.x, _ninja.y, _ninja.scaleX, _local2); _local3 = _enemies[(Number(_arg1.enemyType) - 1)].weaponStrength[(Number(_arg1.currHitType) - 1)]; _ninjaLifeBar = (_ninjaLifeBar - _local3); this.adjustNinjaLifeBar(-(_local3)); if (_ninjaLifeBar <= 0){ this.ninjaDie(); }; } private function addEnemyBonus(_arg1:Event):void{ var _local2:Class; var _local3:Sprite; var _local4:int; var _local5:MovieClip; var _local6:Point; var _local7:Number; var _local8:Number; var _local9:int; _local2 = (getDefinitionByName(_arg1.currentTarget.bonusObj) as Class); _local3 = new (_local2); _local3.x = _arg1.currentTarget.enemyX; _local3.y = _arg1.currentTarget.enemyY; _local4 = _local3.numChildren; _local9 = 0; while (_local9 < _local4) { _local5 = MovieClip(_local3.getChildAt(0)); _local6 = new Point(_local3.getChildAt(0).x, _local3.getChildAt(0).y); _local6 = _local3.localToGlobal(_local6); _local5.x = _local6.x; _local5.y = _local6.y; if (_local5.x > _rightBorder){ _local5.x = (_rightBorder - 5); }; if (_local5.x < _leftBorder){ _local5.x = (_leftBorder + 5); }; if (_local5.y < _topBorder){ _local5.y = (_topBorder + 5); }; _local5.life = _arg1.currentTarget.bonusValue; _local5.hitAnim = new bonusHit(); _bonusObjArr.push(_local5); _currLevel.addChild(_local5); _local7 = _local5.width; _local8 = _local5.height; Tweener.addTween(_local5, {width:5, height:5, alpha:0}); Tweener.addTween(_local5, {width:_local7, height:_local8, y:(_local5.y - 120), alpha:1, time:1.5}); _local9++; }; } private function addNinjaLife():void{ _ninjaLifeCount++; _lifeCountBar[("life" + _ninjaLifeCount)].alpha = 1; _ninjaLifeBar = _NINJA_LIFE; this.adjustNinjaLifeBar(_NINJA_LIFE); } private function checkIfHitEnemy(_arg1:Sprite, _arg2:int):Boolean{ var _local3:MovieClip; var _local4:MovieClip; var _local5:Boolean; var _local6:int; var _local7:int; _local6 = 0; while (_local6 < _enemiesArr.length) { _local7 = 0; while (_local7 < _enemiesArr[_local6].length) { _local4 = MovieClip(_enemiesArr[_local6][_local7]); _local3 = MovieClip(_enemiesArr[_local6][_local7].getChildAt(0).getChildAt(0)); if (((((_arg1.hitTestObject(_local3)) && (!(_local4.isFainted)))) && (!(_local4.isDying)))){ if (!_local4.isEnemyInDefend){ this.displayHitSymbol(_local4.enemyX, _local4.enemyY, _local4.enemyScale, _arg2); _local4.reduceLife(_arg2); this.adjustEnemyLifeBar(Sprite(_enemiesBarArr[_local6][_local7]), _local4.reduceValue); _local5 = true; } else { Adlib.playSound("defenceHit"); _local4.defenceGlow(); }; }; _local7++; }; _local6++; }; return (_local5); } private function handlePressedKey(_arg1:Number):void{ switch (_arg1){ case 0: if (!_keys[0].isRunning){ if (((!(_keys[1].isPressed)) && (!(_keys[2].isPressed)))){ _jumpNum++; }; var _local2 = this; _local2[_keys[_arg1].funcToCall](_arg1); } else { if ((((((_jumpNum < 2)) && (!(_keys[1].isPressed)))) && (!(_keys[2].isPressed)))){ _jumpNum++; _local2 = this; _local2[_keys[_arg1].funcToCall](_arg1); }; }; break; case 5: if (((((((_keys[1].isRunning) || (_keys[2].isRunning))) || (_isNinjaStatic))) && (!(_keys[5].isRunning)))){ _local2 = this; _local2[_keys[_arg1].funcToCall](_arg1); }; break; case 8: if (_starCount > 0){ if (((((_keys[1].isRunning) || (_keys[2].isRunning))) || (_isNinjaStatic))){ _local2 = this; _local2[_keys[_arg1].funcToCall](_arg1); }; }; break; case 9: if (_isNinjaStatic){ _local2 = this; _local2[_keys[_arg1].funcToCall](_arg1); }; break; case 10: _isFirstEvent = true; break; case 12: _local2 = this; _local2[_keys[_arg1].funcToCall](_arg1); break; default: if (((((_keys[1].isRunning) || (_keys[2].isRunning))) || (_isNinjaStatic))){ _local2 = this; _local2[_keys[_arg1].funcToCall](_arg1); }; break; }; } private function alertNinjaBeginMove():void{ var _local1:int; _local1 = 0; while (_local1 < _enemiesArr[_currYlevel].length) { _enemiesArr[_currYlevel][_local1].handleNinjaMove(); _local1++; }; } public function clearLevel():void{ var _local1:Sprite; var _local2:int; var _local3:DisplayObject; var _local4:int; var _local5:int; var _local6:int; this.removeChild(_currLevel); this.removeChild(_topObjs); while (_obsArray.length > 0) { _local1 = _obsArray[0]; _currLevel.removeChild(_local1); delete _obsArray[0]; _obsArray.splice(0, 1); }; _local2 = 0; while (_local2 < _enemiesArr.length) { _local6 = 0; while (_local6 < _enemiesArr[_local2].length) { this.eraseEnemy(_local2, _local6); _local6++; }; _local2++; }; _local4 = 0; while (_local4 < _topObjs.numChildren) { _local3 = _topObjs.getChildAt(0); _topObjs.removeChild(_local3); _local3 = null; _local4++; }; _topObjs = null; _local5 = 0; while (_local5 < _currLevel.numChildren) { _local3 = _currLevel.getChildAt(0); _currLevel.removeChild(_local3); _local3 = null; _local5++; }; _currLevel = null; } public function removeKeyListeners():void{ _stage.removeEventListener(KeyboardEvent.KEY_DOWN, handleKeyDown); _stage.removeEventListener(KeyboardEvent.KEY_UP, handleKeyUp); } private function checkIfHitsLevel(_arg1:Number, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:DisplayObject, _arg6:int):Boolean{ var _local7:Number; var _local8:Number; var _local9:Number; var _local10:Number; _local7 = ((_arg4 - _arg3) / (_arg2 - _arg1)); if (_arg1 < _arg2){ _local8 = _arg1; while (_local8 < _arg2) { if (_arg5.hitTestPoint(_local8, ((_local7 * (_local8 - _arg1)) + _arg3))){ _newX = _local8; _newY = _arg5.y; _currYlevel = _arg6; return (true); }; _local8++; }; } else { if (_arg1 > _arg2){ _local9 = _arg1; while (_local9 > _arg2) { if (_arg5.hitTestPoint(_local9, ((_local7 * (_local9 - _arg1)) + _arg3))){ _newX = _local9; _newY = _arg5.y; _currYlevel = _arg6; return (true); }; _local9--; }; } else { _local10 = _arg3; while (_local10 < _arg4) { if (_arg5.hitTestPoint(_arg1, _local10)){ _newX = _arg2; _newY = _arg5.y; _currYlevel = _arg6; return (true); }; _local10++; }; }; }; return (false); } private function jumpUp(_arg1:int):void{ var middleX:Number; var endX:Number; var startY:Number; var middleY:Number; var startYlevel:Number; var newPointsArr:Array; var moveTime:Number; var keyInd = _arg1; if (_keys[keyInd].isPressed){ _ninja.removeChildAt(1); _ninja.addChildAt(_keys[keyInd].keyObj, 1); _keys[keyInd].isRunning = true; _isNinjaStatic = false; this.alertNinjaBeginMove(); startY = _ninja.y; middleY = (_ninja.y - 150); startYlevel = _currYlevel; if (_keys[1].isPressed){ if (_ninja.scaleX != 1){ _ninja.scaleX = 1; }; middleX = (_ninja.x + 150); endX = (_ninja.x + 300); } else { if (_keys[2].isPressed){ if (_ninja.scaleX != -1){ _ninja.scaleX = -1; }; middleX = (_ninja.x - 150); endX = (_ninja.x - 300); } else { middleX = _ninja.x; endX = _ninja.x; }; }; Adlib.playSound("jump"); Tweener.addTween(_ninja.getChildAt(1), {_frame:1}); Tweener.addTween(_ninja.getChildAt(1), {_frame:34, time:_keys[keyInd].moveTime, transition:"linear"}); newPointsArr = this.checkBorders(middleX, endX); middleX = newPointsArr[0]; endX = newPointsArr[1]; Tweener.addTween(_ninja, {x:middleX, y:middleY, time:0.3, delay:0.2, onUpdate:checkIfHitBonusObj, transition:"easeOutCubic"}); this.checkObstacles(middleX, middleY, endX); moveTime = (0.001 * (_newY - middleY)); Tweener.addTween(_ninja.getChildAt(1), {_frame:50, time:moveTime, delay:0.5, transition:"linear"}); Tweener.addTween(_ninja, {x:_newX, y:_newY, time:moveTime, delay:_keys[keyInd].moveTime, onUpdate:checkIfHitBonusObj, transition:"easeInCubic", onComplete:function (){ jumpUp(keyInd); checkForEnemies(startYlevel); checkIfFell(); }}); } else { _jumpNum = 0; Tweener.addTween(_ninja.getChildAt(1), {_frame:50}); Tweener.addTween(_ninja.getChildAt(1), {_frame:65, time:0.4, transition:"linear", onComplete:endNinjaMov, onCompleteParams:[keyInd]}); }; } private function addEnemy(_arg1:int, _arg2:Number, _arg3:Number, _arg4:Number, _arg5:Number, _arg6:Number, _arg7:Number, _arg8:Number, _arg9:Number):void{ var _local10:String; var _local11:Class; var _local12:Sprite; var _local13:String; var _local14:Class; var _local15:Sprite; var _local16:Sprite; var _local17:Sprite; _local10 = ("Enemy" + _arg1); _local11 = (getDefinitionByName(_local10) as Class); _local12 = new _local11(_arg2, _arg3, _arg4, _arg5, _arg6, _arg7, _arg8, _arg9, _currYlevel); _local12.addEventListener(_local11.GET_NINJA_LOC, setNinjaCurrLoc); _local12.addEventListener(_local11.ENEMY_HIT, checkIfHitNinja); _local12.addEventListener(_local11.ENEMY_SHOOT, checkIfShootNinja); _local12.addEventListener(_local11.ENEMY_DEAD, removeEnemy); _local12.addEventListener(_local11.ADD_BONUS, addEnemyBonus); _local13 = (("enemy" + _arg1) + "Bar"); _local14 = (getDefinitionByName(_local13) as Class); _local15 = new (_local14); _local16 = new enemyLifeBar(); _local17 = new Sprite(); _local17.addChild(_local15); _local17.addChild(_local16); _local17.y = _ememyLifeBarNextY; _ememyLifeBarNextY = (_ememyLifeBarNextY + 30); _enemiesBarArr[_arg9].push(_local17); _local17.alpha = 0; _enemyLifeBar.addChild(_local17); Tweener.addTween(_local17, {alpha:1, time:0.8, delay:0.5}); _enemiesArr[_arg9].push(_local12); _currLevel.addChild(_local12); _currLevel.setChildIndex(_ninja, _currLevel.getChildIndex(_local12)); } private function alertStopFighting():void{ var _local1:int; var _local2:int; _local1 = 0; while (_local1 < _enemiesArr.length) { _local2 = 0; while (_local2 < _enemiesArr[_local1].length) { _enemiesArr[_local1][_local2].stopFighting(); _local2++; }; _local1++; }; } private function addNinjaStars():void{ _starCount = (_starCount + 10); _startBar.alpha = 1; _startBar["starCountTxt"].text = _starCount; } private function bendDown(_arg1:int):void{ _ninja.removeChildAt(1); _ninja.addChildAt(_keys[_arg1].keyObj, 1); _ninja.getChildAt(0).height = (_ninja.getChildAt(0).height / 2); _keys[_arg1].isRunning = true; _isNinjaStatic = false; Tweener.addTween(_ninja.getChildAt(1), {_frame:1}); Tweener.addTween(_ninja.getChildAt(1), {_frame:(MovieClip(_ninja.getChildAt(1)).totalFrames / 2), time:_keys[_arg1].moveTime, transition:"linear", onComplete:bendUp, onCompleteParams:[_arg1]}); } private function pauseTimers():void{ var _local1:int; var _local2:int; _levelTimer.stop(); _local1 = 0; while (_local1 < _enemiesArr.length) { _local2 = 0; while (_local2 < _enemiesArr[_local1].length) { _enemiesArr[_local1][_local2]["_moveTimer"].stop(); _enemiesArr[_local1][_local2]["_strikeTimer"].stop(); _local2++; }; _local1++; }; } private function endLevel(_arg1:String):void{ var levelTime:Number; var levelPnts:int; var result = _arg1; this.removeKeyListeners(); Tweener.removeAllTweens(); _lastLevelNum = _levelNum; _currLevel.removeChild(_lifeBar); _currLevel.removeChild(_lifeCountBar); _currLevel.removeChild(_startBar); _currLevel.removeChild(_scoreBar); _currLevel.removeChild(_levelBar); _currLevel.removeChild(_enemyLifeBar); levelTime = _levelTimer.currentCount; _levelTimer.stop(); _levelTimer.reset(); if (result == "win"){ trace("next level!"); levelPnts = (_levels[(_levelNum - 1)].points / levelTime); if (levelPnts > 0){ _levelScore = (_levelScore + levelPnts); _speedBonusMess["bonus_txt"].text = ("+ " + String(levelPnts)); _speedBonusMess.x = 370; _speedBonusMess.y = 140; _speedBonusMess.alpha = 0; _currLevel.addChild(_speedBonusMess); Tweener.addTween(_speedBonusMess, {alpha:1, _Blur_blurX:5, _Blur_blurY:3, time:0.3, transition:"linear"}); Tweener.addTween(_speedBonusMess, {_Blur_blurX:0, _Blur_blurY:0, time:0.3, delay:0.3, transition:"linear"}); Tweener.addTween(_speedBonusMess, {alpha:0, time:0.3, delay:2.7, transition:"linear"}); Tweener.addTween(this, {delay:3, onComplete:function (){ _currLevel.removeChild(_speedBonusMess); }}); }; _totalScore = (_totalScore + _levelScore); dispatchEvent(new Event(GameEngine.LEVEL_END)); } else { if (_ninjaLifeCount > 1){ _lifeCountBar[("life" + _ninjaLifeCount)].alpha = 0; _ninjaLifeCount--; _ninjaLifeBar = _NINJA_LIFE; _starCount = _ninjaLevelStars; Tweener.removeTweens(_lifeBar["lifeMask"], "scaleX"); dispatchEvent(new Event(GameEngine.RESTART_LEVEL)); } else { _totalScore = (_totalScore + _levelScore); trace("game over!"); dispatchEvent(new Event(GameEngine.GAME_END)); }; }; } private function ninjaSwordUp(_arg1:int):void{ var _local2:int; if (_keys[_arg1].isPressed){ _ninja.removeChildAt(1); _ninja.addChildAt(_keys[_arg1].keyObj, 1); _keys[_arg1].isRunning = true; _isNinjaStatic = false; _local2 = 4; Adlib.playSound(_soundArr[(_local2 - 1)]); Tweener.addTween(_ninja.getChildAt(1), {_frame:1}); Tweener.addTween(this, {delay:0.6, onComplete:checkIfHitEnemy, onCompleteParams:[_ninja.getChildAt(1)["sword"], _local2]}); Tweener.addTween(_ninja.getChildAt(1), {_frame:MovieClip(_ninja.getChildAt(1)).totalFrames, time:_keys[_arg1].moveTime, transition:"linear", onComplete:ninjaSwordUp, onCompleteParams:[_arg1]}); } else { this.endNinjaMov(_arg1); }; } private function removeEnemy(_arg1:Event):void{ var _local2:int; var _local3:int; var _local4:int; var _local5:int; _local2 = _arg1.currentTarget.enemyYlevel; while (_local3 < _enemiesArr[_local2].length) { if (_enemiesArr[_local2][_local3] == _arg1.currentTarget){ _local4 = _local3; }; _local3++; }; this.eraseEnemy(_local2, _local4); _deadEnemies++; _levelScore = (_levelScore + _enemies[(_arg1.currentTarget.enemyType - 1)].points); _scoreBar["scoreTxt"].text = String((_totalScore + _levelScore)); if ((((((_deadEnemies >= _levels[(_levelNum - 1)].startAddingEnemies)) && ((_deadEnemies < _levels[(_levelNum - 1)].totalEnemies)))) && ((_addEnemies.length > 0)))){ _local5 = 0; while (_local5 < _addEnemiesNum[0]) { this.setEnemy(); _local5++; }; _addEnemiesNum.splice(0, 1); } else { if (_deadEnemies == _levels[(_levelNum - 1)].totalEnemies){ Tweener.addTween(this, {delay:_levels[(_levelNum - 1)].endLevelDelay, onComplete:endLevel, onCompleteParams:["win"]}); }; }; } private function checkObstacles(_arg1:Number, _arg2:Number, _arg3:Number):void{ var _local4:Array; var _local5:uint; _newX = _arg3; _newY = _bottomY; _currYlevel = 0; _local4 = this.checkBorders(_newX, _newX); _newX = _local4[0]; _local5 = 0; while (_local5 < _obsArray.length) { this.checkIfHitsLevel(_arg1, _newX, _arg2, (_bottomY + 5), _obsArray[_local5], _local5); _local5++; }; if (_newY == _bottomY){ this.removeKeyListeners(); }; } private function checkIsTherePressedWaiting():void{ var _local1:uint; _local1 = 0; while (_local1 < _keys.length) { if (_keys[_local1].isPressed){ if (!_keys[12].isRunning){ this.handlePressedKey(_local1); }; }; _local1++; }; } private function checkIfHitBonusObj():void{ var i:int; var currBonusHit:MovieClip; var disToFullLife:Number; var j:int; i = 0; while (i < _bonusObjArr.length) { if (_ninja.getChildAt(0).hitTestObject(_bonusObjArr[i])){ if (_bonusObjArr[i].life != null){ disToFullLife = (_NINJA_LIFE - _ninjaLifeBar); _ninjaLifeBar = (_ninjaLifeBar + _bonusObjArr[i].life); if (_ninjaLifeBar > _NINJA_LIFE){ _ninjaLifeBar = _NINJA_LIFE; this.adjustNinjaLifeBar(disToFullLife); } else { this.adjustNinjaLifeBar(_bonusObjArr[i].life); }; Adlib.playSound("bonusDing"); }; if (_bonusObjArr[i].weaponRef != null){ var _local2 = this; _local2[_bonusObjArr[i].weaponRef](); Adlib.playSound("starDing"); }; if (_bonusObjArr[i].lifesBar != null){ j = 0; while (j < _bonusObjArr[i].lifesBar) { this.addNinjaLife(); j = (j + 1); }; }; currBonusHit = _bonusObjArr[i].hitAnim; currBonusHit.x = _bonusObjArr[i].x; currBonusHit.y = _bonusObjArr[i].y; _currLevel.removeChild(_bonusObjArr[i]); delete _bonusObjArr[i]; _bonusObjArr.splice(i, 1); _currLevel.addChild(currBonusHit); Tweener.addTween(currBonusHit, {_frame:1}); Tweener.addTween(currBonusHit, {_frame:currBonusHit.totalFrames, y:(currBonusHit.y - 10), time:0.3, transition:"easeInExpo"}); Tweener.addTween(currBonusHit, {y:(currBonusHit.y + 20), alpha:0, time:0.2, delay:0.5, transition:"easeOutExpo", onComplete:function (){ _currLevel.removeChild(this); currBonusHit = null; }}); }; i = (i + 1); }; } private function checkBorders(_arg1:Number, _arg2:Number):Array{ var _local3:Array; _local3 = [_arg1, _arg2]; if (_local3[1] < _leftBorder){ _local3[0] = (_leftBorder + (_ninja.width / 2)); _local3[1] = _local3[0]; } else { if (_local3[1] > _rightBorder){ _local3[0] = (_rightBorder - (_ninja.width / 2)); _local3[1] = _local3[0]; }; }; return (_local3); } private function alertNinjaMove():void{ var _local1:int; _local1 = 0; while (_local1 < _enemiesArr[_currYlevel].length) { _enemiesArr[_currYlevel][_local1].handleNinjaMove(); _enemiesArr[_currYlevel][_local1].chaseNinja(); _local1++; }; } private function ninjaSword(_arg1:int):void{ var _local2:int; if (_keys[_arg1].isPressed){ _keys[_arg1].isRunning = true; _isNinjaStatic = false; _local2 = (_arg1 - 4); _ninja.removeChildAt(1); _ninja.addChildAt(_keys[_arg1].keyObj, 1); Adlib.playSound(_soundArr[(_local2 - 1)]); Tweener.addTween(_ninja.getChildAt(1), {_frame:1}); Tweener.addTween(this, {delay:(_keys[_arg1].moveTime / 2), onComplete:checkIfHitEnemy, onCompleteParams:[_ninja.getChildAt(1)["sword"]["hit"], _local2]}); Tweener.addTween(_ninja.getChildAt(1), {_frame:MovieClip(_ninja.getChildAt(1)).totalFrames, time:_keys[_arg1].moveTime, transition:"linear", onComplete:ninjaSword, onCompleteParams:[_arg1]}); } else { this.endNinjaMov(_arg1); }; } private function ninjaShootStar(_arg1:int):void{ var currHitType:int; var newStar:Sprite; var pnt:Point; var newX:Number; var shootSymbol:MovieClip; var newSymX:Number; var checkHit:Function; var keyInd = _arg1; if (((_keys[keyInd].isPressed) && ((_starCount > 0)))){ checkHit = function (_arg1:MovieClip){ if (checkIfHitEnemy(_arg1, currHitType)){ Tweener.removeTweens(_arg1); _currLevel.removeChild(_arg1); _arg1 = null; }; }; _ninja.removeChildAt(1); _ninja.addChildAt(_keys[keyInd].keyObj, 1); _keys[keyInd].isRunning = true; _isNinjaStatic = false; currHitType = 6; Adlib.playSound(_soundArr[(currHitType - 1)]); _starCount--; _startBar["starCountTxt"].text = _starCount; if (_starCount == 0){ _startBar.alpha = 0.4; }; newStar = new starObj(); pnt = new Point(_ninja.getChildAt(1)["hand"].x, _ninja.getChildAt(1)["hand"].y); pnt = _ninja.localToGlobal(pnt); newStar.x = pnt.x; newStar.y = pnt.y; _currLevel.addChild(newStar); newX = (newStar.x + (600 * _ninja.scaleX)); shootSymbol = new hitWord5(); shootSymbol.x = (pnt.x + (60 * _ninja.scaleX)); shootSymbol.y = (pnt.y - 40); newSymX = (shootSymbol.x + (180 * _ninja.scaleX)); _currLevel.addChild(shootSymbol); Tweener.addTween(shootSymbol, {_frame:shootSymbol.totalFrames, x:newSymX, time:1, onComplete:function (){ _currLevel.removeChild(shootSymbol); shootSymbol = null; }}); Tweener.addTween(newStar, {x:newX, time:1.5, transition:"easeOutSine", onUpdate:checkHit, onUpdateParams:[newStar], onComplete:function (){ _currLevel.removeChild(this); }}); Tweener.addTween(newStar, {alpha:0, time:0.3, delay:1.2}); Tweener.addTween(_ninja.getChildAt(1), {_frame:1}); Tweener.addTween(_ninja.getChildAt(1), {_frame:MovieClip(_ninja.getChildAt(1)).totalFrames, time:_keys[keyInd].moveTime, transition:"linear", onComplete:ninjaShootStar, onCompleteParams:[keyInd]}); } else { this.endNinjaMov(keyInd); }; } private function bendUp(_arg1:int):void{ var keyInd = _arg1; if (_keys[keyInd].isPressed){ Tweener.addTween(this, {delay:0.2, onComplete:bendUp, onCompleteParams:[keyInd]}); } else { _ninja.getChildAt(0).height = (_ninja.getChildAt(0).height * 2); Tweener.addTween(_ninja.getChildAt(1), {_frame:MovieClip(_ninja.getChildAt(1)).totalFrames, time:_keys[keyInd].moveTime, transition:"linear", onComplete:function (){ endNinjaMov(keyInd); }}); }; } private function setGameSettings():void{ _levels = new Array(); _levels[0] = new Level(); _levels[0].ninjaX = 30; _levels[0].ninjaYlevel = 4; _levels[0].ninjaScale = 1; _levels[0].startEnemies = [[1, 1, 270, null, 330, 1], [3, -1, 600, 130, 600, 5]]; _levels[0].addEnemies = [[2, 2]]; _levels[0].addEnemiesNum = [1]; _levels[0].startAddingEnemies = 1; _levels[0].totalEnemies = (_levels[0].startEnemies.length + _levels[0].addEnemies.length); _levels[0].topObjArr = []; _levels[0].bonusArr = []; _levels[0].bubbleArr = [[new comicsBubble1(), 460, 82]]; _levels[0].points = 2000; _levels[0].endLevelDelay = 3; _levels[1] = new Level(); _levels[1].ninjaX = 110; _levels[1].ninjaYlevel = 2; _levels[1].ninjaScale = 1; _levels[1].startEnemies = [[5, -1, 635, null, 635, 1]]; _levels[1].addEnemies = [[5, 2], [2, 1], [1, 1]]; _levels[1].addEnemiesNum = [2, 1]; _levels[1].startAddingEnemies = 1; _levels[1].totalEnemies = (_levels[1].startEnemies.length + _levels[1].addEnemies.length); _levels[1].topObjArr = [[new bridgeTop(), 395, 212]]; _levels[1].bonusArr = [[1, 280, 100]]; _levels[1].bubbleArr = [[new hitWord6(), 425, 150]]; _levels[1].points = 2500; _levels[1].endLevelDelay = 2; _levels[2] = new Level(); _levels[2].ninjaX = 110; _levels[2].ninjaYlevel = 1; _levels[2].ninjaScale = 1; _levels[2].startEnemies = [[6, -1, 220, -5, 220, 1], [6, 1, 635, null, 620, 5]]; _levels[2].addEnemies = [[6, 1]]; _levels[2].addEnemiesNum = [1]; _levels[2].startAddingEnemies = 2; _levels[2].totalEnemies = (_levels[2].startEnemies.length + _levels[2].addEnemies.length); _levels[2].topObjArr = [[new level3TopObj1(), 163, 332.3], [new level3TopObj2(), 418, 293]]; _levels[2].bonusArr = [[1, 288, 110]]; _levels[2].bubbleArr = [[new comicsBubble2(), 184, 235]]; _levels[2].points = 3000; _levels[2].endLevelDelay = 2; _levels[3] = new Level(); _levels[3].ninjaX = 370; _levels[3].ninjaYlevel = 1; _levels[3].ninjaScale = -1; _levels[3].startEnemies = [[4, 1, 285, null, 295, 1], [4, -1, 470, 230, 470, 1]]; _levels[3].addEnemies = [[2, 1], [4, 1], [4, 1]]; _levels[3].addEnemiesNum = [1, 2]; _levels[3].startAddingEnemies = 2; _levels[3].totalEnemies = (_levels[3].startEnemies.length + _levels[3].addEnemies.length); _levels[3].topObjArr = [[new level4TopObj(), 377, 446]]; _levels[3].bonusArr = []; _levels[3].bubbleArr = [[new comicsWord1(), 418, 136]]; _levels[3].points = 3500; _levels[3].endLevelDelay = 2; _levels[4] = new Level(); _levels[4].ninjaX = 400; _levels[4].ninjaYlevel = 1; _levels[4].ninjaScale = -1; _levels[4].startEnemies = [[1, 1, 100, null, 110, 1], [2, 1, 200, 180, 200, 1], [2, 2, 610, null, 600, 1]]; _levels[4].addEnemies = [[1, 1], [2, 1], [2, 1], [1, 1], [1, 1], [2, 1], [7, 1]]; _levels[4].addEnemiesNum = [0, 0, 2, 0, 1, 1, 2, 0, 1]; _levels[4].startAddingEnemies = 0; _levels[4].totalEnemies = (_levels[4].startEnemies.length + _levels[4].addEnemies.length); _levels[4].topObjArr = []; _levels[4].bonusArr = [[2, 380, 200]]; _levels[4].bubbleArr = []; _levels[4].points = 4500; _levels[4].endLevelDelay = 3; _ninjaStatic = new ninjaStatic(); _ninjaHit = new ninjaHit(); _ninjaUp = new ninjaUp(); _ninjaWalk = new ninjaWalk(); _ninjaDown = new ninjaDown(); _ninjaFall = new ninjaFall(); _ninjaLie = new ninjaLie(); _ninjaSword1 = new ninjaSword1(); _ninjaSword2 = new ninjaSword2(); _ninjaSword3 = new ninjaSword3(); _ninjaSwordUp = new ninjaSwordUpMov(); _ninjaKick = new ninjaKick(); _ninjaStar = new ninjaStar(); _ninjaDefend = new ninjaDefendMov(); _enemies = new Array(); _enemies[0] = new EnemyType(); _enemies[0].type = 1; _enemies[0].weaponStrength = [9]; _enemies[0].weaponSymbol = [1]; _enemies[0].points = 20; _enemies[1] = new EnemyType(); _enemies[1].type = 2; _enemies[1].weaponStrength = [9]; _enemies[1].weaponSymbol = [2]; _enemies[1].points = 20; _enemies[2] = new EnemyType(); _enemies[2].type = 3; _enemies[2].weaponStrength = [12, 13]; _enemies[2].weaponSymbol = [3, 6]; _enemies[2].points = 40; _enemies[3] = new EnemyType(); _enemies[3].type = 4; _enemies[3].weaponStrength = [7, 7]; _enemies[3].weaponSymbol = [3, 4]; _enemies[3].points = 70; _enemies[4] = new EnemyType(); _enemies[4].type = 5; _enemies[4].weaponStrength = [14, 12, 12, 16]; _enemies[4].weaponSymbol = [4, 3, 2, 1]; _enemies[4].points = 50; _enemies[5] = new EnemyType(); _enemies[5].type = 6; _enemies[5].weaponStrength = [13, 13, 13, 11, 17]; _enemies[5].weaponSymbol = [4, 3, 2, 7, 6]; _enemies[5].points = 60; _enemies[6] = new EnemyType(); _enemies[6].type = 7; _enemies[6].weaponStrength = [13, 13, 13, 11, 15, 10]; _enemies[6].weaponSymbol = [4, 3, 2, 1, 6, 7]; _enemies[6].points = 100; Adlib.addSound(new walkSound(), {volume:1, name:"walk", dontPlay:true}); Adlib.addSound(new lifeBonus(), {volume:5, name:"bonusDing", dontPlay:true}); Adlib.addSound(new starBonus(), {volume:1, name:"starDing", dontPlay:true}); Adlib.addSound(new swoosh(), {volume:1.3, name:"kick", dontPlay:true}); Adlib.addSound(new starSwoosh(), {volume:4, name:"star", dontPlay:true}); Adlib.addSound(new sword2(), {volume:1, name:"swordUp", delay:250, dontPlay:true}); Adlib.addSound(new sword3(), {volume:0.4, name:"sword3", dontPlay:true}); Adlib.addSound(new sword4(), {volume:0.5, name:"sword4", dontPlay:true}); Adlib.addSound(new sword5(), {volume:0.9, name:"sword5", dontPlay:true}); _soundArr = ["sword3", "sword4", "sword5", "swordUp", "star", "kick"]; Adlib.addSound(new MetalTap(), {name:"defenceHit", volume:0.5, dontPlay:true}); Adlib.addSound(new jump(), {name:"jump", volume:0.8, dontPlay:true}); Adlib.addSound(new fall(), {name:"fall", volume:2.2, dontPlay:true}); Adlib.addSound(new ninjaDead(), {name:"ninjaDie", volume:0.3, dontPlay:true}); _keys = new Array(); _keys[0] = new Keys(); _keys[0].keyObj = _ninjaUp; _keys[0].code = 38; _keys[0].moveTime = 0.5; _keys[0].isPressed = false; _keys[0].isRunning = false; _keys[0].funcToCall = "jumpUp"; _keys[1] = new Keys(); _keys[1].keyObj = _ninjaWalk; _keys[1].code = 39; _keys[1].moveTime = 0.3; _keys[1].isPressed = false; _keys[1].isRunning = false; _keys[1].funcToCall = "walk"; _keys[2] = new Keys(); _keys[2].keyObj = _ninjaWalk; _keys[2].code = 37; _keys[2].moveTime = 0.3; _keys[2].isPressed = false; _keys[2].isRunning = false; _keys[2].funcToCall = "walk"; _keys[3] = new Keys(); _keys[3].keyObj = _ninjaDown; _keys[3].code = 40; _keys[3].moveTime = 0.02; _keys[3].isPressed = false; _keys[3].isRunning = false; _keys[3].funcToCall = "bendDown"; _keys[4] = new Keys(); _keys[4].keyObj = _ninjaKick; _keys[4].code = 32; _keys[4].moveTime = 0.6; _keys[4].isPressed = false; _keys[4].isRunning = false; _keys[4].funcToCall = "kick"; _keys[5] = new Keys(); _keys[5].keyObj = _ninjaSword1; _keys[5].code = 65; _keys[5].moveTime = 0.4; _keys[5].isPressed = false; _keys[5].isRunning = false; _keys[5].funcToCall = "ninjaSwordHigh"; _keys[6] = new Keys(); _keys[6].keyObj = _ninjaSword2; _keys[6].code = 83; _keys[6].moveTime = 0.4; _keys[6].isPressed = false; _keys[6].isRunning = false; _keys[6].funcToCall = "ninjaSword"; _keys[7] = new Keys(); _keys[7].keyObj = _ninjaSword3; _keys[7].code = 68; _keys[7].moveTime = 0.4; _keys[7].isPressed = false; _keys[7].isRunning = false; _keys[7].funcToCall = "ninjaSword"; _keys[8] = new Keys(); _keys[8].keyObj = _ninjaStar; _keys[8].code = 69; _keys[8].moveTime = 0.4; _keys[8].isPressed = false; _keys[8].isRunning = false; _keys[8].funcToCall = "ninjaShootStar"; _keys[9] = new Keys(); _keys[9].keyObj = _ninjaSwordUp; _keys[9].code = 87; _keys[9].moveTime = 0.8; _keys[9].isPressed = false; _keys[9].isRunning = false; _keys[9].funcToCall = "ninjaSwordUp"; _keys[10] = new Keys(); _keys[10].code = 16; _keys[10].isPressed = false; _keys[11] = new Keys(); _keys[11].keyObj = _ninjaDefend; _keys[11].code = 81; _keys[11].isPressed = false; _keys[11].isRunning = false; _keys[11].funcToCall = "ninjaDefend"; _keys[11].onCompleteFuncToCall = "endNinjaDefend"; _keys[11].onCompleteParams = 11; _keys[12] = new Keys(); _keys[12].code = 80; _keys[12].isPressed = false; _keys[12].isRunning = false; _keys[12].funcToCall = "handleGamePause"; } private function ninjaDie():void{ Adlib.playSound("ninjaDie"); this.alertStopFighting(); Tweener.addTween(_ninja.getChildAt(1), {_Glow_strength:0}); this.removeKeyListeners(); Tweener.removeTweens(_ninja.getChildAt(1)); Tweener.removeTweens(_ninja); _ninja.removeChildAt(1); _ninja.addChildAt(_ninjaLie, 1); Tweener.addTween(_ninja.getChildAt(1), {_frame:MovieClip(_ninja.getChildAt(1)).totalFrames, time:2}); Tweener.addTween(_ninja, {alpha:0.5, time:0.3}); Tweener.addTween(_ninja, {alpha:1, time:0.3, delay:0.6}); Tweener.addTween(_ninja, {alpha:0.5, time:0.3, delay:0.9}); Tweener.addTween(_ninja, {alpha:1, time:0.3, delay:1.2}); Tweener.addTween(_ninja, {alpha:0.5, time:0.3, delay:1.5}); Tweener.addTween(_ninja, {alpha:1, time:0.3, delay:1.8}); Tweener.addTween(this, {delay:4, onComplete:endLevel, onCompleteParams:["lose"]}); } private function walk(_arg1:int):void{ var movePar:Number; var boundsObj:Object; var bound:Number; var moveTime:Number; var isHitObstacle:Boolean; var keyInd = _arg1; if (((!(_isFalling)) && (!(_keys[0].isRunning)))){ if (_keys[keyInd].isPressed){ _ninja.removeChildAt(1); _ninja.addChildAt(_keys[keyInd].keyObj, 1); _keys[keyInd].isRunning = true; _isNinjaStatic = false; boundsObj = _ninja.getBounds(_currLevel); moveTime = _keys[keyInd].moveTime; if (_keys[keyInd].code == 39){ if (_ninja.scaleX != 1){ _ninja.scaleX = 1; }; movePar = 30; bound = boundsObj.right; } else { if (_keys[keyInd].code == 37){ if (_ninja.scaleX != -1){ _ninja.scaleX = -1; }; movePar = -30; bound = boundsObj.left; }; }; if (_keys[10].isPressed){ movePar = (movePar * 1.5); moveTime = (moveTime / 1.1); }; Adlib.playSound("walk"); Tweener.addTween(_ninja.getChildAt(1), {_frame:1}); Tweener.addTween(_ninja.getChildAt(1), {_frame:MovieClip(_ninja.getChildAt(1)).totalFrames, time:moveTime, transition:"linear", onComplete:function (){ walk(keyInd); }}); _newX = (_ninja.x + movePar); isHitObstacle = this.isObstacle(_ninja.x, _ninja.y, (_ninja.x + movePar), _ninja.y, keyInd, (bound + (movePar / 2))); if (!isHitObstacle){ this.alertNinjaBeginMove(); Tweener.addTween(_ninja, {x:_newX, time:(moveTime / 1.5), transition:"linear", onUpdate:checkIfHitBonusObj, onComplete:function (){ alertNinjaMove(); }}); }; } else { this.endNinjaMov(keyInd); }; }; } private function setNinjaCurrLoc(_arg1:Event):void{ _arg1.currentTarget.currNinjaLevel = _currYlevel; _arg1.currentTarget.currNinjaX = _ninja.x; } private function checkIfShootNinja(_arg1:DataEvent):void{ var _local2:Sprite; var _local3:DisplayObject; var _local4:int; _local2 = _arg1.currentTarget.getChildByName("weaponCont"); _local4 = 0; while (_local4 < _local2.numChildren) { _local3 = Sprite(_local2).getChildAt(_local4); if (_ninja.getChildAt(0).hitTestObject(_local3)){ if (((_isDefendMode) && ((_arg1.data == "useDefence")))){ this.handleNinjaDefendMode(); } else { this.handleNinjaHit(_arg1.currentTarget); }; _arg1.currentTarget.removeWeapon(_local3); }; _local4++; }; } private function ninjaSwordHigh(_arg1:int):void{ var _local2:int; if (_keys[_arg1].isPressed){ _keys[_arg1].isRunning = true; _isNinjaStatic = false; _local2 = (_arg1 - 4); _ninja.removeChildAt(1); _ninja.addChildAt(_keys[_arg1].keyObj, 1); Adlib.playSound(_soundArr[(_local2 - 1)]); Tweener.addTween(_ninja.getChildAt(1), {_frame:1}); Tweener.addTween(this, {delay:(_keys[_arg1].moveTime / 1.5), onComplete:checkIfHitEnemy, onCompleteParams:[_ninja.getChildAt(1)["sword"]["hit"], _local2]}); Tweener.addTween(_ninja.getChildAt(1), {_frame:MovieClip(_ninja.getChildAt(1)).totalFrames, time:_keys[_arg1].moveTime, transition:"linear", onComplete:ninjaSwordHigh, onCompleteParams:[_arg1]}); } else { this.endNinjaMov(_arg1); }; } public function addKeyListeners():void{ _stage.addEventListener(KeyboardEvent.KEY_DOWN, handleKeyDown); _stage.addEventListener(KeyboardEvent.KEY_UP, handleKeyUp); _stage.focus = _stage; } private function handleGamePause(_arg1:int):void{ var _local2:BitmapData; var _local3:Bitmap; var _local4:DisplayObject; if (!_keys[_arg1].isRunning){ _keys[_arg1].isRunning = true; Tweener.addTween(this, {_saturation:0.4}); Tweener.pauseAllTweens(); this.pauseTimers(); _local2 = new BitmapData(this.width, this.height); _local2.draw(this); _local3 = new Bitmap(_local2); this.addChild(_local3); } else { _local4 = this.getChildAt((this.numChildren - 1)); this.removeChild(_local4); _local4 = null; Tweener.addTween(this, {_saturation:1}); Tweener.resumeAllTweens(); this.resumeTimers(); _keys[_arg1].isRunning = false; }; } private function ninjaDefend(_arg1:int):void{ _keys[_arg1].isRunning = true; _isNinjaStatic = false; _isDefendMode = true; _ninja.removeChildAt(1); _ninja.addChildAt(_keys[_arg1].keyObj, 1); Tweener.addTween(_ninja.getChildAt(1), {_DropShadow_strength:8, _DropShadow_quality:2, _DropShadow_blurX:4, _DropShadow_blurY:4, _DropShadow_color:52479}); } } }//package
Section 143
//gong (gong) package { import flash.media.*; public dynamic class gong extends Sound { } }//package
Section 144
//hay (hay) package { import flash.media.*; public dynamic class hay extends Sound { } }//package
Section 145
//hitWord1 (hitWord1) package { import flash.display.*; public dynamic class hitWord1 extends MovieClip { public function hitWord1(){ addFrameScript(0, frame1, 19, frame20); } function frame1(){ stop(); } function frame20(){ stop(); } } }//package
Section 146
//hitWord2 (hitWord2) package { import flash.display.*; public dynamic class hitWord2 extends MovieClip { public function hitWord2(){ addFrameScript(0, frame1, 19, frame20); } function frame1(){ stop(); } function frame20(){ stop(); } } }//package
Section 147
//hitWord3 (hitWord3) package { import flash.display.*; public dynamic class hitWord3 extends MovieClip { public function hitWord3(){ addFrameScript(0, frame1, 19, frame20); } function frame1(){ stop(); } function frame20(){ stop(); } } }//package
Section 148
//hitWord4 (hitWord4) package { import flash.display.*; public dynamic class hitWord4 extends MovieClip { public function hitWord4(){ addFrameScript(0, frame1, 19, frame20); } function frame1(){ stop(); } function frame20(){ stop(); } } }//package
Section 149
//hitWord5 (hitWord5) package { import flash.display.*; public dynamic class hitWord5 extends MovieClip { public function hitWord5(){ addFrameScript(0, frame1, 19, frame20); } function frame1(){ stop(); } function frame20(){ stop(); } } }//package
Section 150
//hitWord6 (hitWord6) package { import flash.display.*; public dynamic class hitWord6 extends MovieClip { public function hitWord6(){ addFrameScript(0, frame1, 19, frame20); } function frame1(){ stop(); } function frame20(){ stop(); } } }//package
Section 151
//hitWord7 (hitWord7) package { import flash.display.*; public dynamic class hitWord7 extends MovieClip { public function hitWord7(){ addFrameScript(0, frame1, 19, frame20); } function frame1(){ stop(); } function frame20(){ stop(); } } }//package
Section 152
//jump (jump) package { import flash.media.*; public dynamic class jump extends Sound { } }//package
Section 153
//Keys (Keys) package { import flash.display.*; public class Keys { private var _funcToCall:String; private var _code:Number; private var _onCompleteFuncToCall:String; private var _isPressed:Boolean; private var _moveTime:Number; private var _isRunning:Boolean; private var _onCompleteParams:int; private var _keyObj:MovieClip; public function Keys():void{ } public function get onCompleteFuncToCall():String{ return (_onCompleteFuncToCall); } public function get moveTime():Number{ return (_moveTime); } public function set funcToCall(_arg1:String):void{ _funcToCall = _arg1; } public function set onCompleteParams(_arg1:int):void{ _onCompleteParams = _arg1; } public function set code(_arg1:Number):void{ _code = _arg1; } public function get onCompleteParams():int{ return (_onCompleteParams); } public function get keyObj():MovieClip{ return (_keyObj); } public function get funcToCall():String{ return (_funcToCall); } public function get isPressed():Boolean{ return (_isPressed); } public function set isRunning(_arg1:Boolean):void{ _isRunning = _arg1; } public function get code():Number{ return (_code); } public function set isPressed(_arg1:Boolean):void{ _isPressed = _arg1; } public function set onCompleteFuncToCall(_arg1:String):void{ _onCompleteFuncToCall = _arg1; } public function get isRunning():Boolean{ return (_isRunning); } public function set keyObj(_arg1:MovieClip):void{ _keyObj = _arg1; } public function set moveTime(_arg1:Number):void{ _moveTime = _arg1; } } }//package
Section 154
//kickSound (kickSound) package { import flash.media.*; public dynamic class kickSound extends Sound { } }//package
Section 155
//kill (kill) package { import flash.media.*; public dynamic class kill extends Sound { } }//package
Section 156
//Level (Level) package { public class Level { private var _points:int; private var _addEnemiesNum:Array; private var _ninjaYlevel:Number; private var _endLevelDelay:Number; private var _topObjArr:Array; private var _totalEnemies:int; private var _startAddingEnemies:int; private var _bonusArr:Array; private var _ninjaX:Number; private var _bubbleArr:Array; private var _startEnemies:Array; private var _addEnemies:Array; private var _ninjaScale:Number; public function Level():void{ } public function get startAddingEnemies():int{ return (_startAddingEnemies); } public function get addEnemiesNum():Array{ return (_addEnemiesNum); } public function set addEnemies(_arg1:Array){ _addEnemies = _arg1; } public function set startAddingEnemies(_arg1:int){ _startAddingEnemies = _arg1; } public function get ninjaX():Number{ return (_ninjaX); } public function set addEnemiesNum(_arg1:Array){ _addEnemiesNum = _arg1; } public function set totalEnemies(_arg1:int){ _totalEnemies = _arg1; } public function get endLevelDelay():Number{ return (_endLevelDelay); } public function set ninjaX(_arg1:Number){ _ninjaX = _arg1; } public function get topObjArr():Array{ return (_topObjArr); } public function set bonusArr(_arg1:Array){ _bonusArr = _arg1; } public function set ninjaYlevel(_arg1:Number){ _ninjaYlevel = _arg1; } public function set endLevelDelay(_arg1:Number){ _endLevelDelay = _arg1; } public function get bubbleArr():Array{ return (_bubbleArr); } public function set topObjArr(_arg1:Array){ _topObjArr = _arg1; } public function get addEnemies():Array{ return (_addEnemies); } public function set points(_arg1:int){ _points = _arg1; } public function set ninjaScale(_arg1:Number){ _ninjaScale = _arg1; } public function set startEnemies(_arg1:Array){ _startEnemies = _arg1; } public function IncreaseScore(){ } public function get totalEnemies():int{ return (_totalEnemies); } public function get ninjaYlevel():Number{ return (_ninjaYlevel); } public function get ninjaScale():Number{ return (_ninjaScale); } public function get points():int{ return (_points); } public function set bubbleArr(_arg1:Array){ _bubbleArr = _arg1; } public function get startEnemies():Array{ return (_startEnemies); } public function get bonusArr():Array{ return (_bonusArr); } } }//package
Section 157
//level1 (level1) package { import flash.display.*; public dynamic class level1 extends MovieClip { public var obs:MovieClip; public var border:MovieClip; public var yLevel:yLevelBasic; } }//package
Section 158
//level2 (level2) package { import flash.display.*; public dynamic class level2 extends MovieClip { public var border:MovieClip; public var yLevel:yLevelBasic; } }//package
Section 159
//level3 (level3) package { import flash.display.*; public dynamic class level3 extends MovieClip { public var obs:yLevelBasic; public var border:MovieClip; public var yLevel:yLevelBasic; } }//package
Section 160
//level3TopObj1 (level3TopObj1) package { import flash.display.*; public dynamic class level3TopObj1 extends MovieClip { } }//package
Section 161
//level3TopObj2 (level3TopObj2) package { import flash.display.*; public dynamic class level3TopObj2 extends MovieClip { } }//package
Section 162
//level4 (level4) package { import flash.display.*; public dynamic class level4 extends MovieClip { public var border:MovieClip; public var yLevel:yLevelBasic; } }//package
Section 163
//level4TopObj (level4TopObj) package { import flash.display.*; public dynamic class level4TopObj extends MovieClip { } }//package
Section 164
//level5 (level5) package { import flash.display.*; public dynamic class level5 extends MovieClip { public var border:MovieClip; public var yLevel:yLevelBasic; } }//package
Section 165
//levelLoop (levelLoop) package { import flash.media.*; public dynamic class levelLoop extends Sound { } }//package
Section 166
//levelMov (levelMov) package { import flash.display.*; import flash.text.*; public dynamic class levelMov extends MovieClip { public var levelTxt:TextField; } }//package
Section 167
//lie (lie) package { import flash.media.*; public dynamic class lie extends Sound { } }//package
Section 168
//lifeBar (lifeBar) package { import flash.display.*; public dynamic class lifeBar extends MovieClip { public var lifeMask:MovieClip; } }//package
Section 169
//lifeBonus (lifeBonus) package { import flash.media.*; public dynamic class lifeBonus extends Sound { } }//package
Section 170
//lifeBonusHit (lifeBonusHit) package { import flash.display.*; public dynamic class lifeBonusHit extends MovieClip { } }//package
Section 171
//lifeCountBar (lifeCountBar) package { import flash.display.*; public dynamic class lifeCountBar extends MovieClip { public var life1:MovieClip; public var life3:MovieClip; public var life2:MovieClip; public var life4:MovieClip; } }//package
Section 172
//Main (Main) package { import flash.events.*; import caurina.transitions.*; import flash.geom.*; import flash.display.*; import com.tweegee.games.*; import caurina.transitions.properties.*; import flash.net.*; public dynamic class Main extends MovieClip { private var _frameZoomInArr:Array; private var _LEVELS_NUM:uint;// = 5 private var _currLevelFrame:MovieClip; private var _finalScore:int; public var __id0_:AdlibToolbar; private var _gameEngine:Sprite; private var _storyBoard:Sprite; private var _currLevelWidth:Number; private var logoMc:Sprite; private var _levelNum:uint; private var _message:MovieClip; private var _saveScoreBtn:MovieClip; private var _frameZoomOutArr:Array; private var _currFrameNum:int; private var _isLogin:String; private var _gameOver:Boolean; private var _transScreen:Sprite; private var _saveScore:Function; private var _endScreen:MovieClip; private var _startScreen:MovieClip; private var _frameLocsArr:Array; private var _currLevelHeight:Number; private var _stage:Stage; public function Main():void{ _LEVELS_NUM = 5; _frameLocsArr = [[-440, 0, 1, 1, 2.5, "zoomInFrame"], [-1450, 0, 0.5, 3.5, 4.5, "zoomInFrame"], [0, -388, 0.5, 2, 4.5, "moveToFrame"], [-355, -388, 0, 1, 1.5, "zoomInFrame"], [-1450, -388, 0.5, 2, 3, "zoomInFrame"], [0, -770, 0.5, 2, 4.5, "moveToFrame"], [-1030, -770, 0, 3.5, 4, "zoomInFrame"]]; _frameZoomInArr = [[], [2740, 1590, -203, -73, 0.5, 2.5, "startLevel"], [2740, 1590, -490, -73, 0.5, 2.5, "startLevel"], [], [2740, 1590, -170, -200, 0.5, 2.5, "startLevel"], [2740, 1590, -485, -200, 0.5, 2.5, "startLevel"], [], [2740, 1590, -337, -332, 0.5, 2.5, "startLevel"]]; _frameZoomOutArr = [[], [2220, 1190, 203, 73, 0.5, 0.5, "moveToFrame"], [2220, 1190, 490, 73, 0.5, 0.5, "moveToFrame"], [], [2220, 1190, 170, 200, 0.5, 0.5, "moveToFrame"], [2220, 1190, 485, 200, 0.5, 0.5, "moveToFrame"], [], [2220, 1190, 337, 332, 0.5, 0.5, "callShowFinalFrame"]]; super(); DisplayShortcuts.init(); ColorShortcuts.init(); FilterShortcuts.init(); initGame(stage, savescorefunc, "login"); __setProp___id0__Scene1_Layer1_1(); } private function handleStartGame(_arg1:MouseEvent):void{ _startScreen["start_btn"].removeEventListener(MouseEvent.CLICK, handleStartGame); _startScreen["start_btn"].removeEventListener(MouseEvent.MOUSE_OVER, handleMouseOverBtn); _startScreen["start_btn"].removeEventListener(MouseEvent.MOUSE_OUT, handleMouseOutBtn); _startScreen["start_btn"].butonMode = false; Adlib.playSound("btnSound"); _storyBoard = new storyBoard(); addChildAt(_storyBoard, 0); Tweener.addTween(_storyBoard, {_saturation:0.5}); _transScreen = new transScreen(); addChild(_transScreen); _transScreen.alpha = 1; removeChild(_startScreen); _startScreen = null; Tweener.addTween(_transScreen, {alpha:0, _Blur_blurX:5, _Blur_blurY:7, time:1, transition:"easeInSine", onComplete:zoomInIntro}); } private function startLevel():void{ _levelNum++; this.removeChild(_storyBoard); _currLevelFrame = _storyBoard[("frameLevel" + _levelNum)]; Object(_gameEngine).setLevel(_levelNum); Adlib.playSound("levelLoop"); } private function showFinalFrame(_arg1:String):void{ var _local2:MovieClip; var _local3:Number; var _local4:Number; var _local5:Number; _gameEngine.removeEventListener(GameEngine.LEVEL_END, handleEndLevel); _gameEngine.removeEventListener(GameEngine.RESTART_LEVEL, handleRestartLevel); _gameEngine.removeEventListener(GameEngine.GAME_END, handleLoseGame); this.removeChild(_gameEngine); _gameEngine = null; if (_arg1 == "lose"){ _local2 = new finalFrameLose(); _local3 = 2; _local4 = 0; _local5 = 3; } else { _local2 = new finalFrameWin(); _local3 = 1; _local4 = 3; _local5 = 6; }; _storyBoard.removeChild(_storyBoard["questionFrame"]); _storyBoard.addChild(_local2); _local2.x = 558.5; _local2.y = 290; _local2.width = 150; _local2.height = 124; Tweener.addTween(_storyBoard, {x:-1450, y:-770, time:_local3, transition:"easeOutCirc"}); Tweener.addTween(_storyBoard, {width:2710, height:1560, x:-1925, y:-1080, time:0.5, delay:(_local3 + 0.5), transition:"easeInSine"}); Tweener.addTween(_storyBoard, {_saturation:1, delay:(_local3 + 2.5)}); Tweener.addTween(_storyBoard, {width:755, height:420, x:0, y:0, time:1, delay:((_local3 + 5.5) + _local4)}); Tweener.addTween(this, {delay:(((_local3 + 5.5) + _local5) + _local4), onComplete:showEndScreen}); } private function callShowFinalFrame():void{ this.showFinalFrame("win"); } private function callFunc(_arg1:MovieClip):void{ if (_arg1.name == "playAgain_btn"){ this.restartGame(); } else { _saveScore.call(this, _finalScore); }; } private function drawFrame():void{ var _local1:BitmapData; var _local2:Matrix; var _local3:Bitmap; var _local4:String; addChildAt(_storyBoard, 0); Adlib.stopSound("levelLoop"); Adlib.playSound("drumsShort"); Adlib.playSound("drumsLoop"); _currLevelWidth = 755; _currLevelHeight = 420; _local1 = new BitmapData(_currLevelWidth, _currLevelHeight); _local2 = new Matrix(); _local2.translate(0, 0); _local1.draw(_gameEngine, _local2); _local3 = new Bitmap(_local1); _storyBoard.addChildAt(_local3, _storyBoard.getChildIndex(_currLevelFrame)); _local3.width = _currLevelFrame.width; _local3.height = _currLevelFrame.height; _local3.x = _currLevelFrame.x; _local3.y = _currLevelFrame.y; _storyBoard.removeChild(_currLevelFrame); _currLevelFrame = null; var _local5 = _gameEngine; _local5["clearLevel"](); _local4 = "zoomOutFrame"; if (_gameOver){ _local4 = "zoomOutLoseLevel"; }; Tweener.addTween(this, {delay:2, onComplete:this[_local4]}); } private function disableBtns(_arg1:MouseEvent):void{ Adlib.playSound("btnSound"); _endScreen["playAgain_btn"].removeEventListener(MouseEvent.CLICK, disableBtns); _endScreen["playAgain_btn"].removeEventListener(MouseEvent.MOUSE_OVER, handleMouseOverBtn); _endScreen["playAgain_btn"].removeEventListener(MouseEvent.MOUSE_OUT, handleMouseOutBtn); _endScreen["playAgain_btn"].buttonMode = false; if (_saveScoreBtn != null){ _saveScoreBtn.removeEventListener(MouseEvent.CLICK, disableBtns); _saveScoreBtn.removeEventListener(MouseEvent.MOUSE_OVER, handleMouseOverBtn); _saveScoreBtn.removeEventListener(MouseEvent.MOUSE_OUT, handleMouseOutBtn); _saveScoreBtn.buttonMode = false; }; Tweener.addTween(_endScreen, {alpha:0, time:1, onComplete:callFunc, onCompleteParams:[_arg1.target]}); } private function moveToFrame():void{ var _local1:Number; var _local2:Number; var _local3:Number; var _local4:int; var _local5:int; var _local6:String; _local1 = _frameLocsArr[_currFrameNum][0]; _local2 = _frameLocsArr[_currFrameNum][1]; _local3 = _frameLocsArr[_currFrameNum][2]; _local4 = _frameLocsArr[_currFrameNum][3]; _local5 = _frameLocsArr[_currFrameNum][4]; _local6 = _frameLocsArr[_currFrameNum][5]; _currFrameNum++; Tweener.addTween(_storyBoard, {x:_local1, y:_local2, delay:_local3, time:_local4, transition:"easeOutCirc"}); Tweener.addTween(this, {delay:_local5, onComplete:this[_local6]}); } public function restartGame():void{ this.removeChild(_endScreen); _endScreen = null; this.setGame(); } private function showEndScreen():void{ _endScreen = new endScreen(); _endScreen.x = 0; _endScreen.y = 0; _endScreen["score_txt"].text = String(_finalScore); if ((((_isLogin == "login")) && ((_finalScore > 0)))){ _saveScoreBtn = new saveScoreBtn(); _saveScoreBtn.x = 515; _saveScoreBtn.y = 322; _endScreen.addChild(_saveScoreBtn); }; addChildAt(_endScreen, 0); _transScreen = new transScreen(); addChild(_transScreen); _transScreen.alpha = 1; removeChild(_storyBoard); _storyBoard = null; Tweener.addTween(_transScreen, {alpha:0, time:1, transition:"easeOutSine", onComplete:handleEndBtns}); } private function handleMouseOverBtn(_arg1:MouseEvent):void{ _arg1.currentTarget.gotoAndPlay(2); } private function handleLoseGame(_arg1:Event):void{ var e = _arg1; _finalScore = _gameEngine["_totalScore"]; _gameOver = true; Adlib.playSound("gameOver"); _message.width = 5; _message.height = 5; this.addChild(_message); Tweener.addTween(_message, {_frame:3}); Tweener.addTween(_message, {width:279.5, height:43, time:0.2, transition:"linear"}); Tweener.addTween(_message, {width:310, height:43, time:0.2, delay:0.2, transition:"linear"}); Tweener.addTween(_message, {width:279.5, height:43, time:0.2, delay:0.4, transition:"easeInOutBounce"}); Tweener.addTween(this, {delay:3, onComplete:function (){ removeChild(_message); drawFrame(); }}); } private function handleRestartLevel(_arg1:Event):void{ var e = _arg1; Adlib.playSound("gong"); _message.width = 5; _message.height = 5; this.addChild(_message); Tweener.addTween(_message, {_frame:2}); Tweener.addTween(_message, {width:279.5, height:43, time:0.2, transition:"linear"}); Tweener.addTween(_message, {width:310, height:43, time:0.2, delay:0.2, transition:"linear"}); Tweener.addTween(_message, {width:279.5, height:43, time:0.2, delay:0.4, transition:"easeInOutBounce"}); Tweener.addTween(this, {delay:3, onComplete:function (){ removeChild(_message); Object(_gameEngine).clearLevel(); Object(_gameEngine).setLevel(_levelNum); }}); } private function zoomInIntro():void{ removeChild(_transScreen); _transScreen = null; Tweener.addTween(_storyBoard, {width:2220, height:1190, time:1, delay:1, transition:"easeInSine"}); Tweener.addTween(this, {delay:3, onComplete:prepareGameEngine}); } private function handleBtn():void{ _startScreen["start_btn"].addEventListener(MouseEvent.CLICK, handleStartGame); _startScreen["start_btn"].addEventListener(MouseEvent.MOUSE_OVER, handleMouseOverBtn); _startScreen["start_btn"].addEventListener(MouseEvent.MOUSE_OUT, handleMouseOutBtn); _startScreen["start_btn"].mouseChildren = false; _startScreen["start_btn"].buttonMode = true; } public function initGame(_arg1:Stage, _arg2:Function, _arg3:String):void{ _stage = _arg1; _saveScore = _arg2; _isLogin = _arg3; Adlib.addSound(new multSword(), {name:"btnSound", dontPlay:true}); Adlib.addSound(new drums(), {volume:1, loop:int.MAX_VALUE, isBG:true, name:"drumsLoop", dontPlay:true}); Adlib.addSound(new levelLoop(), {volume:1, loop:int.MAX_VALUE, isBG:true, name:"levelLoop", dontPlay:true}); Adlib.addSound(new drumsShort(), {name:"drumsShort", dontPlay:true}); Adlib.addSound(new gong(), {name:"gong", volume:0.5, dontPlay:true}); Adlib.addSound(new hay(), {name:"nextLevel", volume:1, dontPlay:true}); Adlib.addSound(new Triblet(), {name:"gameOver", dontPlay:true}); Adlib.playSound("drumsLoop"); logoMc = new tweegeeLogo(); logoMc.x = (_arg1.stageWidth - logoMc.width); logoMc.y = (_arg1.stageHeight - logoMc.height); logoMc.addEventListener(MouseEvent.CLICK, handleLogoClick); logoMc.buttonMode = true; addChild(logoMc); this.setGame(); } function __setProp___id0__Scene1_Layer1_1(){ try { __id0_["componentInspectorSetting"] = true; } catch(e:Error) { }; __id0_.animate = true; __id0_.icon = "soundObj"; __id0_.position = "top"; try { __id0_["componentInspectorSetting"] = false; } catch(e:Error) { }; } private function zoomOutLoseLevel():void{ var _local1:Number; var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; _local1 = _frameZoomOutArr[_currFrameNum][0]; _local2 = _frameZoomOutArr[_currFrameNum][1]; _local3 = _frameZoomOutArr[_currFrameNum][2]; _local4 = _frameZoomOutArr[_currFrameNum][3]; _local5 = _frameZoomOutArr[_currFrameNum][4]; _local6 = _frameZoomOutArr[_currFrameNum][5]; Tweener.addTween(_storyBoard, {width:_local1, height:_local2, x:(_storyBoard.x + _local3), y:(_storyBoard.y + _local4), time:_local5, transition:"easeOutSine"}); Tweener.addTween(this, {delay:_local6, onComplete:showFinalFrame, onCompleteParams:["lose"]}); } private function prepareGameEngine():void{ _gameEngine = new GameEngine(_stage); _gameEngine.addEventListener(GameEngine.LEVEL_END, handleEndLevel); _gameEngine.addEventListener(GameEngine.RESTART_LEVEL, handleRestartLevel); _gameEngine.addEventListener(GameEngine.GAME_END, handleLoseGame); addChildAt(_gameEngine, 0); this.moveToFrame(); } private function handleLogoClick(_arg1:MouseEvent):void{ var url:String; var request:URLRequest; var e = _arg1; url = "http://www.tweegee.com/ch/main/Affiliation.aspx?AffCamId=d7776146-3f57-434e-bac5-f11c5a27a2ed"; request = new URLRequest(url); try { navigateToURL(request, "_blank"); } catch(e:Error) { }; } private function moveStraightToLevel():void{ _levelNum = 0; _currFrameNum = 0; _gameOver = false; _message = new messageMov(); _message.x = 380; _message.y = 190; _finalScore = 0; _storyBoard = new storyBoard(); addChild(_storyBoard); Tweener.addTween(_storyBoard, {_saturation:0.5, width:2220, height:1190}); _gameEngine = new GameEngine(_stage); _gameEngine.addEventListener(GameEngine.LEVEL_END, handleEndLevel); _gameEngine.addEventListener(GameEngine.RESTART_LEVEL, handleRestartLevel); _gameEngine.addEventListener(GameEngine.GAME_END, handleLoseGame); addChildAt(_gameEngine, 0); this.moveToFrame(); } private function goStraightToLevel():void{ _levelNum = 4; _gameOver = false; _message = new messageMov(); _message.x = 380; _message.y = 190; _storyBoard = new storyBoard(); addChild(_storyBoard); _gameEngine = new GameEngine(_stage); _gameEngine.addEventListener(GameEngine.LEVEL_END, handleEndLevel); _gameEngine.addEventListener(GameEngine.RESTART_LEVEL, handleRestartLevel); _gameEngine.addEventListener(GameEngine.GAME_END, handleLoseGame); addChildAt(_gameEngine, 0); this.startLevel(); } private function savescorefunc():void{ } public function startGame():void{ } private function setGame():void{ _finalScore = 0; _levelNum = 0; _currFrameNum = 0; _gameOver = false; _message = new messageMov(); _message.x = 380; _message.y = 190; _startScreen = new startScreen(); _startScreen.x = 0; _startScreen.y = 0; _startScreen.alpha = 0; addChildAt(_startScreen, 0); Tweener.addTween(_startScreen, {alpha:1, time:0.5, onComplete:handleBtn}); } private function handleEndLevel(_arg1:Event):void{ var e = _arg1; Adlib.playSound("nextLevel"); _message.width = 5; _message.height = 5; this.addChild(_message); Tweener.addTween(_message, {_frame:1}); Tweener.addTween(_message, {width:279.5, height:43, time:0.2, transition:"linear"}); Tweener.addTween(_message, {width:310, height:43, time:0.2, delay:0.2, transition:"linear"}); Tweener.addTween(_message, {width:279.5, height:43, time:0.2, delay:0.4, transition:"easeInOutBounce"}); Tweener.addTween(this, {delay:3, onComplete:function (){ removeChild(_message); drawFrame(); }}); } private function zoomOutFrame():void{ var _local1:Number; var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:String; _local1 = _frameZoomOutArr[_currFrameNum][0]; _local2 = _frameZoomOutArr[_currFrameNum][1]; _local3 = _frameZoomOutArr[_currFrameNum][2]; _local4 = _frameZoomOutArr[_currFrameNum][3]; _local5 = _frameZoomOutArr[_currFrameNum][4]; _local6 = _frameZoomOutArr[_currFrameNum][5]; _local7 = _frameZoomOutArr[_currFrameNum][6]; Tweener.addTween(_storyBoard, {width:_local1, height:_local2, x:(_storyBoard.x + _local3), y:(_storyBoard.y + _local4), time:_local5, transition:"easeOutSine"}); Tweener.addTween(this, {delay:_local6, onComplete:this[_local7]}); } private function handleEndBtns():void{ removeChild(_transScreen); _transScreen = null; _endScreen["playAgain_btn"].addEventListener(MouseEvent.CLICK, disableBtns); _endScreen["playAgain_btn"].addEventListener(MouseEvent.MOUSE_OVER, handleMouseOverBtn); _endScreen["playAgain_btn"].addEventListener(MouseEvent.MOUSE_OUT, handleMouseOutBtn); _endScreen["playAgain_btn"].mouseChildren = false; _endScreen["playAgain_btn"].buttonMode = true; if (_saveScoreBtn != null){ _saveScoreBtn.addEventListener(MouseEvent.CLICK, disableBtns); _saveScoreBtn.addEventListener(MouseEvent.MOUSE_OVER, handleMouseOverBtn); _saveScoreBtn.addEventListener(MouseEvent.MOUSE_OUT, handleMouseOutBtn); _saveScoreBtn.mouseChildren = false; _saveScoreBtn.buttonMode = true; }; } private function handleSound(_arg1:Boolean):void{ if (_arg1){ Adlib.stopSound("drumsLoop"); Adlib.playSound("gong"); }; } private function handleMouseOutBtn(_arg1:MouseEvent):void{ _arg1.currentTarget.gotoAndStop(1); } private function zoomInFrame():void{ var _local1:Number; var _local2:Number; var _local3:Number; var _local4:Number; var _local5:Number; var _local6:Number; var _local7:String; var _local8:Boolean; _local1 = _frameZoomInArr[_currFrameNum][0]; _local2 = _frameZoomInArr[_currFrameNum][1]; _local3 = _frameZoomInArr[_currFrameNum][2]; _local4 = _frameZoomInArr[_currFrameNum][3]; _local5 = _frameZoomInArr[_currFrameNum][4]; _local6 = _frameZoomInArr[_currFrameNum][5]; _local7 = _frameZoomInArr[_currFrameNum][6]; if (_local7 == "startLevel"){ _local8 = true; }; Tweener.addTween(_storyBoard, {width:_local1, height:_local2, x:(_storyBoard.x + _local3), y:(_storyBoard.y + _local4), time:_local5, transition:"easeInSine", onComplete:handleSound, onCompleteParams:[_local8]}); Tweener.addTween(this, {delay:_local6, onComplete:this[_local7]}); } } }//package
Section 173
//messageMov (messageMov) package { import flash.display.*; public dynamic class messageMov extends MovieClip { public function messageMov(){ addFrameScript(0, frame1, 1, frame2, 2, frame3); } function frame3(){ stop(); } function frame1(){ stop(); } function frame2(){ stop(); } } }//package
Section 174
//MetalTap (MetalTap) package { import flash.media.*; public dynamic class MetalTap extends Sound { } }//package
Section 175
//multSword (multSword) package { import flash.media.*; public dynamic class multSword extends Sound { } }//package
Section 176
//ninjaDead (ninjaDead) package { import flash.media.*; public dynamic class ninjaDead extends Sound { } }//package
Section 177
//ninjaDefendMov (ninjaDefendMov) package { import flash.display.*; public dynamic class ninjaDefendMov extends MovieClip { public var sword:MovieClip; } }//package
Section 178
//ninjaDown (ninjaDown) package { import flash.display.*; public dynamic class ninjaDown extends MovieClip { public var sword:MovieClip; public function ninjaDown(){ addFrameScript(0, frame1, 25, frame26); } function frame1(){ stop(); } function frame26(){ stop(); } } }//package
Section 179
//ninjaFall (ninjaFall) package { import flash.display.*; public dynamic class ninjaFall extends MovieClip { public var sword:MovieClip; public function ninjaFall(){ addFrameScript(0, frame1, 31, frame32); } function frame1(){ stop(); } function frame32(){ stop(); } } }//package
Section 180
//ninjaHit (ninjaHit) package { import flash.display.*; public dynamic class ninjaHit extends MovieClip { } }//package
Section 181
//ninjaKick (ninjaKick) package { import flash.display.*; public dynamic class ninjaKick extends MovieClip { public var leg:MovieClip; public function ninjaKick(){ addFrameScript(0, frame1, 35, frame36); } function frame1(){ stop(); } function frame36(){ stop(); } } }//package
Section 182
//ninjaLie (ninjaLie) package { import flash.display.*; public dynamic class ninjaLie extends MovieClip { public var sword:MovieClip; } }//package
Section 183
//ninjaLifeBonus (ninjaLifeBonus) package { import flash.display.*; public dynamic class ninjaLifeBonus extends MovieClip { } }//package
Section 184
//ninjaStar (ninjaStar) package { import flash.display.*; public dynamic class ninjaStar extends MovieClip { public var hand:MovieClip; public var sword:MovieClip; public function ninjaStar(){ addFrameScript(0, frame1, 23, frame24); } function frame1(){ stop(); } function frame24(){ stop(); } } }//package
Section 185
//ninjaStarBar (ninjaStarBar) package { import flash.display.*; import flash.text.*; public dynamic class ninjaStarBar extends MovieClip { public var starCountTxt:TextField; } }//package
Section 186
//ninjaStarStatic (ninjaStarStatic) package { import flash.display.*; public dynamic class ninjaStarStatic extends MovieClip { } }//package
Section 187
//ninjaStatic (ninjaStatic) package { import flash.display.*; public dynamic class ninjaStatic extends MovieClip { public var sword:MovieClip; } }//package
Section 188
//ninjaSword1 (ninjaSword1) package { import flash.display.*; public dynamic class ninjaSword1 extends MovieClip { public var sword:MovieClip; public function ninjaSword1(){ addFrameScript(0, frame1, 20, frame21); } function frame1(){ stop(); } function frame21(){ stop(); } } }//package
Section 189
//ninjaSword2 (ninjaSword2) package { import flash.display.*; public dynamic class ninjaSword2 extends MovieClip { public var sword:MovieClip; public function ninjaSword2(){ addFrameScript(0, frame1, 23, frame24); } function frame1(){ stop(); } function frame24(){ stop(); } } }//package
Section 190
//ninjaSword3 (ninjaSword3) package { import flash.display.*; public dynamic class ninjaSword3 extends MovieClip { public var sword:MovieClip; public function ninjaSword3(){ addFrameScript(0, frame1, 23, frame24); } function frame1(){ stop(); } function frame24(){ stop(); } } }//package
Section 191
//ninjaSwordUpMov (ninjaSwordUpMov) package { import flash.display.*; public dynamic class ninjaSwordUpMov extends MovieClip { public var sword:MovieClip; public function ninjaSwordUpMov(){ addFrameScript(0, frame1, 60, frame61); } function frame1(){ stop(); } function frame61(){ stop(); } } }//package
Section 192
//ninjaUp (ninjaUp) package { import flash.display.*; public dynamic class ninjaUp extends MovieClip { public var sword:MovieClip; public function ninjaUp(){ addFrameScript(0, frame1, 64, frame65); } function frame65(){ stop(); } function frame1(){ stop(); } } }//package
Section 193
//ninjaWalk (ninjaWalk) package { import flash.display.*; public dynamic class ninjaWalk extends MovieClip { public var sword:MovieClip; public function ninjaWalk(){ addFrameScript(0, frame1, 18, frame19); } function frame1(){ stop(); } function frame19(){ stop(); } } }//package
Section 194
//roll (roll) package { import flash.media.*; public dynamic class roll extends Sound { } }//package
Section 195
//saveScoreBtn (saveScoreBtn) package { import flash.display.*; public dynamic class saveScoreBtn extends MovieClip { public function saveScoreBtn(){ addFrameScript(0, frame1, 22, frame23); } function frame1(){ stop(); } function frame23(){ gotoAndPlay(2); } } }//package
Section 196
//scoreMov (scoreMov) package { import flash.display.*; import flash.text.*; public dynamic class scoreMov extends MovieClip { public var scoreTxt:TextField; } }//package
Section 197
//shootBall (shootBall) package { import flash.media.*; public dynamic class shootBall extends Sound { } }//package
Section 198
//soundObj (soundObj) package { import flash.display.*; public dynamic class soundObj extends MovieClip { } }//package
Section 199
//speedBonus (speedBonus) package { import flash.display.*; import flash.text.*; public dynamic class speedBonus extends MovieClip { public var bonus_txt:TextField; } }//package
Section 200
//starBonus (starBonus) package { import flash.media.*; public dynamic class starBonus extends Sound { } }//package
Section 201
//starBonusHit (starBonusHit) package { import flash.display.*; public dynamic class starBonusHit extends MovieClip { } }//package
Section 202
//starObj (starObj) package { import flash.display.*; public dynamic class starObj extends MovieClip { } }//package
Section 203
//starSwoosh (starSwoosh) package { import flash.media.*; public dynamic class starSwoosh extends Sound { } }//package
Section 204
//startScreen (startScreen) package { import flash.display.*; public dynamic class startScreen extends MovieClip { public var start_btn:MovieClip; } }//package
Section 205
//storyBoard (storyBoard) package { import flash.display.*; public dynamic class storyBoard extends MovieClip { public var frameLevel5:MovieClip; public var frameLevel1:MovieClip; public var frameLevel3:MovieClip; public var questionFrame:MovieClip; public var frameLevel2:MovieClip; public var frameLevel4:MovieClip; } }//package
Section 206
//swoosh (swoosh) package { import flash.media.*; public dynamic class swoosh extends Sound { } }//package
Section 207
//sword1 (sword1) package { import flash.media.*; public dynamic class sword1 extends Sound { } }//package
Section 208
//sword2 (sword2) package { import flash.media.*; public dynamic class sword2 extends Sound { } }//package
Section 209
//sword3 (sword3) package { import flash.media.*; public dynamic class sword3 extends Sound { } }//package
Section 210
//sword4 (sword4) package { import flash.media.*; public dynamic class sword4 extends Sound { } }//package
Section 211
//sword5 (sword5) package { import flash.media.*; public dynamic class sword5 extends Sound { } }//package
Section 212
//transScreen (transScreen) package { import flash.display.*; public dynamic class transScreen extends MovieClip { } }//package
Section 213
//Triblet (Triblet) package { import flash.media.*; public dynamic class Triblet extends Sound { } }//package
Section 214
//tweegeeLogo (tweegeeLogo) package { import flash.display.*; public dynamic class tweegeeLogo extends Sprite { } }//package
Section 215
//walkSound (walkSound) package { import flash.media.*; public dynamic class walkSound extends Sound { } }//package
Section 216
//yLevelBasic (yLevelBasic) package { import flash.display.*; public dynamic class yLevelBasic extends MovieClip { } }//package

Library Items

Symbol 1 Sound {walkSound}
Symbol 2 Sound {starBonus}
Symbol 3 Sound {lifeBonus}
Symbol 4 Sound {levelLoop}
Symbol 5 Sound {kickSound}
Symbol 6 Sound {sword5}
Symbol 7 Sound {sword4}
Symbol 8 Sound {sword3}
Symbol 9 Sound {sword2}
Symbol 10 Sound {sword1}
Symbol 11 Sound {multSword}
Symbol 12 Sound {starSwoosh}
Symbol 13 Sound {shootBall}
Symbol 14 Sound {roll}
Symbol 15 Sound {ninjaDead}
Symbol 16 Sound {hay}
Symbol 17 Sound {MetalTap}
Symbol 18 Sound {kill}
Symbol 19 Sound {jump}
Symbol 20 Sound {gong}
Symbol 21 Sound {Triblet}
Symbol 22 Sound {swoosh}
Symbol 23 Sound {fall}
Symbol 24 Sound {enSword5}
Symbol 25 Sound {enSword4}
Symbol 26 Sound {enSword3}
Symbol 27 Sound {enSword2}
Symbol 28 Sound {enSword1}
Symbol 29 Sound {enJump}
Symbol 30 Sound {lie}
Symbol 31 Sound {enAx3}
Symbol 32 Sound {enAx2}
Symbol 33 Sound {enAx1}
Symbol 34 Sound {drumsShort}
Symbol 35 Sound {drums}
Symbol 36 Sound {dissapear}
Symbol 37 GraphicUsed by:44 78
Symbol 38 FontUsed by:39
Symbol 39 TextUses:38Used by:44
Symbol 40 GraphicUsed by:41
Symbol 41 MovieClipUses:40Used by:44
Symbol 42 GraphicUsed by:43
Symbol 43 MovieClipUses:42Used by:44
Symbol 44 MovieClip {tweegeeLogo}Uses:37 39 41 43
Symbol 45 GraphicUsed by:46
Symbol 46 MovieClipUses:45Used by:58 265 268 275 452
Symbol 47 BitmapUsed by:55
Symbol 48 BitmapUsed by:55
Symbol 49 BitmapUsed by:55
Symbol 50 BitmapUsed by:55
Symbol 51 BitmapUsed by:55 488
Symbol 52 BitmapUsed by:55
Symbol 53 BitmapUsed by:55
Symbol 54 BitmapUsed by:55
Symbol 55 GraphicUses:47 48 49 50 51 52 53 54Used by:58
Symbol 56 GraphicUsed by:57 274
Symbol 57 MovieClip {yLevelBasic}Uses:56Used by:58 265 268 275 452
Symbol 58 MovieClip {level3}Uses:46 55 57
Symbol 59 BitmapUsed by:60
Symbol 60 GraphicUses:59Used by:68
Symbol 61 FontUsed by:62 63 400 401 403 404 562
Symbol 62 TextUses:61Used by:68
Symbol 63 EditableTextUses:61Used by:68
Symbol 64 GraphicUsed by:67 479
Symbol 65 FontUsed by:66 74 395 398 477
Symbol 66 TextUses:65Used by:67
Symbol 67 MovieClip {Hay_ya_sa_fla.playAgainBtn_285}Uses:64 66Used by:68
Symbol 68 MovieClip {endScreen}Uses:60 62 63 67
Symbol 69 BitmapUsed by:70
Symbol 70 GraphicUses:69Used by:79
Symbol 71 GraphicUsed by:72
Symbol 72 MovieClipUses:71Used by:73
Symbol 73 MovieClipUses:72Used by:79
Symbol 74 TextUses:65Used by:75
Symbol 75 MovieClipUses:74Used by:78
Symbol 76 GraphicUsed by:77
Symbol 77 MovieClipUses:76Used by:78 479
Symbol 78 MovieClip {Hay_ya_sa_fla.startBtn_282}Uses:37 75 77Used by:79
Symbol 79 MovieClip {startScreen}Uses:70 73 78
Symbol 80 GraphicUsed by:81
Symbol 81 MovieClipUses:80Used by:105 106 107 108 109 110 480
Symbol 82 GraphicUsed by:83 116 340 514
Symbol 83 MovieClipUses:82Used by:105 106 107 108 109 110 480
Symbol 84 GraphicUsed by:85
Symbol 85 MovieClipUses:84Used by:105 106 107 108 109 110 480
Symbol 86 GraphicUsed by:87 120 342 500
Symbol 87 MovieClipUses:86Used by:105 106 107 108 109 110 480
Symbol 88 GraphicUsed by:89
Symbol 89 MovieClipUses:88Used by:105 106 107 108 109 110 480
Symbol 90 GraphicUsed by:91 123 345 513
Symbol 91 MovieClipUses:90Used by:105 106 107 108 109 110 480
Symbol 92 GraphicUsed by:105 106 107 108 109 110 480
Symbol 93 GraphicUsed by:104 105 106 107 108 109 110 480
Symbol 94 GraphicUsed by:95
Symbol 95 MovieClipUses:94Used by:105 106 107 108 109 110 480
Symbol 96 GraphicUsed by:97 128 350
Symbol 97 MovieClipUses:96Used by:105 106 107 108 109 110 480
Symbol 98 GraphicUsed by:99 129 219 351 421 510
Symbol 99 MovieClipUses:98Used by:105 106 107 108 109 110 480
Symbol 100 GraphicUsed by:103
Symbol 101 GraphicUsed by:102
Symbol 102 MovieClipUses:101Used by:103
Symbol 103 MovieClip {Hay_ya_sa_fla.swordEn3_72}Uses:100 102Used by:105 106 107 108 109 110 480
Symbol 104 MovieClipUses:93Used by:105 480
Symbol 105 MovieClip {enemy3Sword1}Uses:81 83 85 87 89 91 92 93 95 97 99 103 104
Symbol 106 MovieClip {enemy3Walk}Uses:81 83 85 87 89 91 92 93 95 97 99 103
Symbol 107 MovieClip {enemy3Fall}Uses:81 83 85 87 89 91 92 93 95 97 99 103
Symbol 108 MovieClip {enemy3Defend}Uses:81 83 85 87 89 91 92 93 95 97 99 103
Symbol 109 MovieClip {enemy3Static}Uses:81 83 85 87 89 91 92 93 95 97 99 103
Symbol 110 MovieClip {enemy3Lie}Uses:81 83 85 87 89 91 92 93 95 97 99 103
Symbol 111 MovieClip {Enemy3}
Symbol 112 GraphicUsed by:113
Symbol 113 MovieClip {enemy3Hit}Uses:112
Symbol 114 GraphicUsed by:115
Symbol 115 MovieClipUses:114Used by:134 160 161 216 220 224 225 232 279 289 291 292 296 442
Symbol 116 MovieClipUses:82Used by:134 160 161 216 220 224 225 232 279 289 291 292 296 442
Symbol 117 GraphicUsed by:134 160 161 216 220 224 225 232 279 289 291 292 296 442
Symbol 118 GraphicUsed by:119 341
Symbol 119 MovieClipUses:118Used by:134 160 161 216 220 224 225 232 279 289 291 292 296 442
Symbol 120 MovieClipUses:86Used by:134 160 161 216 220 224 225 232 279 289 291 292 296 442
Symbol 121 GraphicUsed by:122
Symbol 122 MovieClipUses:121Used by:134 160 161 216 220 224 225 232 279 289 291 292 296 442
Symbol 123 MovieClipUses:90Used by:134 160 161 216 220 224 225 232 279 289 291 292 296 442
Symbol 124 GraphicUsed by:134 160 161 216 220 224 225 232 279 289 291 292 296 442
Symbol 125 GraphicUsed by:134 160 161 215 216 220 224 225 232 279 289 291 292 296 442
Symbol 126 GraphicUsed by:127
Symbol 127 MovieClipUses:126Used by:134 160 161 216 220 224 225 232 279 289 291 292 296 442
Symbol 128 MovieClipUses:96Used by:134 160 161 216 220 224 225 232 279 289 291 292 296 442
Symbol 129 MovieClipUses:98Used by:134 160 161 216 220 224 225 232 279 289 291 292 296 442
Symbol 130 GraphicUsed by:133
Symbol 131 GraphicUsed by:132
Symbol 132 MovieClipUses:131Used by:133 156 159
Symbol 133 MovieClip {Hay_ya_sa_fla.ninSword_104}Uses:130 132Used by:134 161 216 220 224 225 232 279 289 291 292 442
Symbol 134 MovieClip {ninjaSword3}Uses:115 116 117 119 120 122 123 124 125 127 128 129 133
Symbol 135 GraphicUsed by:136
Symbol 136 MovieClipUses:135Used by:157 223 278 287 288 303
Symbol 137 GraphicUsed by:138
Symbol 138 MovieClipUses:137Used by:157 223 278 287 288 303
Symbol 139 GraphicUsed by:140
Symbol 140 MovieClipUses:139Used by:157 223 278 287 288 303
Symbol 141 GraphicUsed by:142
Symbol 142 MovieClipUses:141Used by:157 223 278 287 288 303
Symbol 143 GraphicUsed by:144 199
Symbol 144 MovieClipUses:143Used by:157 223 278 287 288 303
Symbol 145 GraphicUsed by:146
Symbol 146 MovieClipUses:145Used by:157 223 278 287 288 303
Symbol 147 GraphicUsed by:157 223 278 287 288 303
Symbol 148 GraphicUsed by:157 223 278 287 288 303
Symbol 149 GraphicUsed by:150 204
Symbol 150 MovieClipUses:149Used by:157 223 278 288 303
Symbol 151 GraphicUsed by:152
Symbol 152 MovieClipUses:151Used by:157 223 278 287 288 303
Symbol 153 GraphicUsed by:154 286
Symbol 154 MovieClipUses:153Used by:157 223 278 288 303
Symbol 155 GraphicUsed by:156
Symbol 156 MovieClip {Hay_ya_sa_fla.swordEn1_213}Uses:155 132Used by:157 223 278 287 288 303
Symbol 157 MovieClip {enemy1Sword1}Uses:136 138 140 142 144 146 147 148 150 152 154 156
Symbol 158 GraphicUsed by:159
Symbol 159 MovieClip {Hay_ya_sa_fla.swordMov_268}Uses:158 132Used by:160
Symbol 160 MovieClip {ninjaStar}Uses:115 116 117 119 120 122 123 124 125 127 128 129 159
Symbol 161 MovieClip {ninjaSword2}Uses:115 116 117 119 120 122 123 124 125 127 128 129 133
Symbol 162 GraphicUsed by:163
Symbol 163 MovieClipUses:162Used by:190 221 226 276 280 283 304 305 306 440 481 540
Symbol 164 GraphicUsed by:165
Symbol 165 MovieClipUses:164Used by:190 221 226 276 280 283 304 305 306 440 481 540
Symbol 166 GraphicUsed by:190 221 226 276 280 283 304 305 306 440 481 540
Symbol 167 GraphicUsed by:168
Symbol 168 MovieClipUses:167Used by:190 221 226 276 280 283 304 305 306 440 481 540
Symbol 169 GraphicUsed by:170
Symbol 170 MovieClipUses:169Used by:190 221 226 276 280 283 304 305 306 440 481 540
Symbol 171 GraphicUsed by:172
Symbol 172 MovieClipUses:171Used by:190 221 226 276 280 283 304 305 306 440 481 540
Symbol 173 GraphicUsed by:174
Symbol 174 MovieClipUses:173Used by:190 221 226 276 280 283 304 305 306 440 481 540
Symbol 175 GraphicUsed by:190 221 226 276 280 283 304 305 306 440 481 540
Symbol 176 GraphicUsed by:189 190 221 226 276 280 283 304 305 306 440 481 540
Symbol 177 GraphicUsed by:178 285 431
Symbol 178 MovieClipUses:177Used by:190 221 226 276 280 283 304 305 306 440 481 540
Symbol 179 GraphicUsed by:180
Symbol 180 MovieClipUses:179Used by:190 221 226 276 280 283 304 305 306 440 481 540
Symbol 181 GraphicUsed by:184
Symbol 182 GraphicUsed by:183 509
Symbol 183 MovieClipUses:182Used by:184
Symbol 184 MovieClip {Hay_ya_sa_fla.shoe2En7_22}Uses:181 183Used by:190 221 226 276 280 283 304 305 306 440 481 540
Symbol 185 GraphicUsed by:188
Symbol 186 GraphicUsed by:187
Symbol 187 MovieClipUses:186Used by:188
Symbol 188 MovieClip {Hay_ya_sa_fla.swordEn7_24}Uses:185 187Used by:190 221 226 276 280 283 304 305 306 440 481 540
Symbol 189 MovieClipUses:176Used by:190 304
Symbol 190 MovieClip {enemy7Sword1}Uses:163 165 166 168 170 172 174 175 176 178 180 184 188 189
Symbol 191 GraphicUsed by:192
Symbol 192 MovieClipUses:191Used by:214 222 231 277 281 282 284 307 441
Symbol 193 GraphicUsed by:194
Symbol 194 MovieClipUses:193Used by:214 222 231 277 281 282 284 307 441
Symbol 195 GraphicUsed by:196
Symbol 196 MovieClipUses:195Used by:214 222 231 277 281 282 284 307 441
Symbol 197 GraphicUsed by:198
Symbol 198 MovieClipUses:197Used by:214 222 231 277 281 282 284 307 441
Symbol 199 MovieClipUses:143Used by:214 222 231 277 281 282 284 307 441
Symbol 200 GraphicUsed by:201
Symbol 201 MovieClipUses:200Used by:214 222 231 277 281 282 284 307 441
Symbol 202 GraphicUsed by:214 222 231 277 281 282 284 307 441
Symbol 203 GraphicUsed by:213 214 222 231 277 281 282 284 307 441
Symbol 204 MovieClipUses:149Used by:214 222 231 277 281 282 284 307 441
Symbol 205 GraphicUsed by:206
Symbol 206 MovieClipUses:205Used by:214 222 231 277 281 282 284 307 441
Symbol 207 GraphicUsed by:208
Symbol 208 MovieClipUses:207Used by:214 222 231 277 281 282 284 307 441
Symbol 209 GraphicUsed by:212
Symbol 210 GraphicUsed by:211
Symbol 211 MovieClipUses:210Used by:212
Symbol 212 MovieClip {Hay_ya_sa_fla.swordEn4_117}Uses:209 211Used by:214 222 231 277 281 282 284 307 441
Symbol 213 MovieClipUses:203Used by:214
Symbol 214 MovieClip {enemy4Sword1}Uses:192 194 196 198 199 201 202 203 204 206 208 212 213
Symbol 215 MovieClipUses:125Used by:216 442
Symbol 216 MovieClip {ninjaSword1}Uses:115 116 117 119 120 122 123 124 125 127 128 129 133 215
Symbol 217 GraphicUsed by:218
Symbol 218 MovieClipUses:217Used by:219
Symbol 219 MovieClip {Hay_ya_sa_fla.shoeHit_260}Uses:98 218Used by:220
Symbol 220 MovieClip {ninjaKick}Uses:115 116 117 119 120 122 123 124 125 127 128 129 133 219
Symbol 221 MovieClip {enemy7Walk}Uses:163 165 166 168 170 172 174 175 176 178 180 184 188
Symbol 222 MovieClip {enemy4Walk}Uses:192 194 196 198 199 201 202 203 204 206 208 212
Symbol 223 MovieClip {enemy1Walk}Uses:136 138 140 142 144 146 147 148 150 152 154 156
Symbol 224 MovieClip {ninjaWalk}Uses:115 116 117 119 120 122 123 124 125 127 128 129 133
Symbol 225 MovieClip {ninjaUp}Uses:115 116 117 119 120 122 123 124 125 127 128 129 133
Symbol 226 MovieClip {enemy7Static}Uses:163 165 166 168 170 172 174 175 176 178 180 184 188Used by:230
Symbol 227 ShapeTweeningUsed by:230
Symbol 228 ShapeTweeningUsed by:230
Symbol 229 GraphicUsed by:230
Symbol 230 MovieClip {enemy7Disappear}Uses:226 227 228 229
Symbol 231 MovieClip {enemy4Roll}Uses:192 194 196 198 199 201 202 203 204 206 208 212
Symbol 232 MovieClip {ninjaDown}Uses:115 116 117 119 120 122 123 124 125 127 128 129 133
Symbol 233 BitmapUsed by:234
Symbol 234 GraphicUses:233Used by:256
Symbol 235 BitmapUsed by:236
Symbol 236 GraphicUses:235Used by:237
Symbol 237 MovieClipUses:236Used by:256
Symbol 238 BitmapUsed by:239
Symbol 239 GraphicUses:238Used by:240
Symbol 240 MovieClipUses:239Used by:256
Symbol 241 GraphicUsed by:256
Symbol 242 BitmapUsed by:243
Symbol 243 GraphicUses:242Used by:244
Symbol 244 MovieClipUses:243Used by:256
Symbol 245 GraphicUsed by:256
Symbol 246 BitmapUsed by:247
Symbol 247 GraphicUses:246Used by:248
Symbol 248 MovieClipUses:247Used by:256
Symbol 249 BitmapUsed by:250
Symbol 250 GraphicUses:249Used by:251
Symbol 251 MovieClipUses:250Used by:256
Symbol 252 GraphicUsed by:256
Symbol 253 BitmapUsed by:254
Symbol 254 GraphicUses:253Used by:255
Symbol 255 MovieClipUses:254Used by:256
Symbol 256 MovieClip {storyBoard}Uses:234 237 240 241 244 245 248 251 252 255
Symbol 257 BitmapUsed by:258
Symbol 258 GraphicUses:257Used by:259
Symbol 259 MovieClip {finalFrameLose}Uses:258
Symbol 260 BitmapUsed by:261
Symbol 261 GraphicUses:260Used by:262
Symbol 262 MovieClip {finalFrameWin}Uses:261
Symbol 263 BitmapUsed by:264
Symbol 264 GraphicUses:263Used by:265
Symbol 265 MovieClip {level5}Uses:46 264 57
Symbol 266 BitmapUsed by:267
Symbol 267 GraphicUses:266Used by:268
Symbol 268 MovieClip {level4}Uses:46 267 57
Symbol 269 BitmapUsed by:273
Symbol 270 BitmapUsed by:273
Symbol 271 BitmapUsed by:273
Symbol 272 BitmapUsed by:273
Symbol 273 GraphicUses:269 270 271 272Used by:275
Symbol 274 MovieClipUses:56Used by:275
Symbol 275 MovieClip {level1}Uses:46 273 57 274
Symbol 276 MovieClip {enemy7Fall}Uses:163 165 166 168 170 172 174 175 176 178 180 184 188
Symbol 277 MovieClip {enemy4Fall}Uses:192 194 196 198 199 201 202 203 204 206 208 212
Symbol 278 MovieClip {enemy1Fall}Uses:136 138 140 142 144 146 147 148 150 152 154 156
Symbol 279 MovieClip {ninjaFall}Uses:115 116 117 119 120 122 123 124 125 127 128 129 133
Symbol 280 MovieClip {enemy7Defend}Uses:166 168 170 172 175 178 180 184 163 174 165 188 176
Symbol 281 MovieClip {enemy4Defend}Uses:194 196 198 199 201 202 203 204 206 208 192 212
Symbol 282 MovieClip {enemy4Static}Uses:192 194 196 198 199 201 202 203 204 206 208 212
Symbol 283 MovieClip {enemy7Lie}Uses:163 165 166 168 170 172 174 175 176 178 180 184 188
Symbol 284 MovieClip {enemy4Lie}Uses:192 194 196 198 199 201 202 203 204 206 208 212
Symbol 285 MovieClipUses:177Used by:287
Symbol 286 MovieClipUses:153Used by:287
Symbol 287 MovieClip {enemy1Lie}Uses:136 138 140 142 144 146 147 148 285 152 286 156
Symbol 288 MovieClip {enemy1Static}Uses:136 138 140 142 144 146 147 148 150 152 154 156
Symbol 289 MovieClip {ninjaLie}Uses:115 116 117 119 120 122 123 124 125 127 128 129 133
Symbol 290 GraphicUsed by:291
Symbol 291 MovieClip {ninjaDefendMov}Uses:290 117 119 120 122 123 124 125 127 128 129 115 116 133
Symbol 292 MovieClip {ninjaStatic}Uses:115 116 117 119 120 122 123 124 125 127 128 129 133
Symbol 293 MovieClip {Enemy7}
Symbol 294 MovieClip {Enemy4}
Symbol 295 MovieClip {Enemy1}
Symbol 296 MovieClip {ninjaHit}Uses:115 116 117 119 120 122 123 124 125 127 128 129
Symbol 297 GraphicUsed by:298
Symbol 298 MovieClip {enemy1Hit}Uses:297
Symbol 299 GraphicUsed by:300
Symbol 300 MovieClip {enemy7Hit}Uses:299
Symbol 301 GraphicUsed by:302
Symbol 302 MovieClip {enemy4Hit}Uses:301
Symbol 303 MovieClip {enemy1Sword2}Uses:136 138 140 142 144 146 147 148 150 152 154 156
Symbol 304 MovieClip {enemy7SwordUp}Uses:163 165 166 168 170 172 174 175 176 178 180 184 188 189
Symbol 305 MovieClip {enemy7Sword3}Uses:163 165 166 168 170 172 174 175 176 178 180 184 188
Symbol 306 MovieClip {enemy7Sword2}Uses:163 165 166 168 170 172 174 175 176 178 180 184 188
Symbol 307 MovieClip {enemy4Sword2}Uses:192 194 196 198 199 201 202 203 204 206 208 212
Symbol 308 GraphicUsed by:309
Symbol 309 MovieClipUses:308Used by:310 311 312 313
Symbol 310 MovieClip {enemy4Bonus}Uses:309
Symbol 311 MovieClip {enemy3Bonus}Uses:309
Symbol 312 MovieClip {enemy2Bonus}Uses:309
Symbol 313 MovieClip {enemy1Bonus}Uses:309
Symbol 314 GraphicUsed by:320
Symbol 315 GraphicUsed by:316
Symbol 316 MovieClipUses:315Used by:320
Symbol 317 GraphicUsed by:320
Symbol 318 GraphicUsed by:319
Symbol 319 MovieClipUses:318Used by:320
Symbol 320 MovieClip {lifeBar}Uses:314 316 317 319
Symbol 321 GraphicUsed by:322
Symbol 322 MovieClipUses:321Used by:323
Symbol 323 MovieClip {lifeCountBar}Uses:322
Symbol 324 GraphicUsed by:327
Symbol 325 FontUsed by:326
Symbol 326 EditableTextUses:325Used by:327
Symbol 327 MovieClip {ninjaStarBar}Uses:324 326
Symbol 328 GraphicUsed by:329
Symbol 329 MovieClipUses:328Used by:330
Symbol 330 MovieClip {ninjaStarStatic}Uses:329
Symbol 331 GraphicUsed by:333
Symbol 332 GraphicUsed by:333
Symbol 333 MovieClip {enemyStarObj}Uses:331 332
Symbol 334 GraphicUsed by:336
Symbol 335 GraphicUsed by:336
Symbol 336 MovieClip {starObj}Uses:334 335
Symbol 337 MovieClip {Enemy2}
Symbol 338 GraphicUsed by:339
Symbol 339 MovieClipUses:338Used by:356 357 358 362 363
Symbol 340 MovieClipUses:82Used by:356 357 358 362 363
Symbol 341 MovieClipUses:118Used by:356 357 358 362 363
Symbol 342 MovieClipUses:86Used by:356 357 358 362 363
Symbol 343 GraphicUsed by:344
Symbol 344 MovieClipUses:343Used by:356 357 358 362 363
Symbol 345 MovieClipUses:90Used by:356 357 358 362 363
Symbol 346 GraphicUsed by:356 357 358 362 363
Symbol 347 GraphicUsed by:356 357 358 361 362 363
Symbol 348 GraphicUsed by:349
Symbol 349 MovieClipUses:348Used by:356 357 358 362 363
Symbol 350 MovieClipUses:96Used by:356 357 358 362 363
Symbol 351 MovieClipUses:98Used by:356 357 358 362 363
Symbol 352 GraphicUsed by:355
Symbol 353 GraphicUsed by:354
Symbol 354 MovieClipUses:353Used by:355
Symbol 355 MovieClip {Hay_ya_sa_fla.swordEn2_174}Uses:352 354Used by:356 357 358 362 363
Symbol 356 MovieClip {enemy2Lie}Uses:339 340 341 342 344 345 346 347 349 350 351 355
Symbol 357 MovieClip {enemy2Static}Uses:339 340 341 342 344 345 346 347 349 350 351 355
Symbol 358 MovieClip {enemy2Fall}Uses:339 340 341 342 344 345 346 347 349 350 351 355
Symbol 359 GraphicUsed by:360
Symbol 360 MovieClip {enemy2Hit}Uses:359
Symbol 361 MovieClipUses:347Used by:362
Symbol 362 MovieClip {enemy2Sword1}Uses:339 340 341 342 344 345 346 347 349 350 351 355 361
Symbol 363 MovieClip {enemy2Walk}Uses:339 340 341 342 344 345 346 347 349 350 351 355
Symbol 364 GraphicUsed by:365
Symbol 365 MovieClipUses:364Used by:366
Symbol 366 MovieClip {hitWord1}Uses:365
Symbol 367 GraphicUsed by:368
Symbol 368 MovieClipUses:367Used by:369
Symbol 369 MovieClip {hitWord2}Uses:368
Symbol 370 GraphicUsed by:371
Symbol 371 MovieClipUses:370Used by:372
Symbol 372 MovieClip {hitWord3}Uses:371
Symbol 373 GraphicUsed by:374
Symbol 374 MovieClipUses:373Used by:375
Symbol 375 MovieClip {hitWord7}Uses:374
Symbol 376 GraphicUsed by:377
Symbol 377 MovieClipUses:376Used by:378
Symbol 378 MovieClip {hitWord6}Uses:377
Symbol 379 GraphicUsed by:380
Symbol 380 MovieClipUses:379Used by:381
Symbol 381 MovieClip {hitWord5}Uses:380
Symbol 382 GraphicUsed by:383
Symbol 383 MovieClipUses:382Used by:384
Symbol 384 MovieClip {hitWord4}Uses:383
Symbol 385 GraphicUsed by:387
Symbol 386 GraphicUsed by:387
Symbol 387 MovieClip {starBonusHit}Uses:385 386
Symbol 388 ShapeTweeningUsed by:390
Symbol 389 GraphicUsed by:390
Symbol 390 MovieClip {lifeBonusHit}Uses:388 389
Symbol 391 ShapeTweeningUsed by:393
Symbol 392 GraphicUsed by:393
Symbol 393 MovieClip {bonusHit}Uses:391 392
Symbol 394 GraphicUsed by:396
Symbol 395 TextUses:65Used by:396
Symbol 396 MovieClip {comicsBubble2}Uses:394 395
Symbol 397 GraphicUsed by:399
Symbol 398 TextUses:65Used by:399
Symbol 399 MovieClip {comicsBubble1}Uses:397 398
Symbol 400 EditableTextUses:61Used by:402
Symbol 401 TextUses:61Used by:402
Symbol 402 MovieClip {levelMov}Uses:400 401
Symbol 403 EditableTextUses:61Used by:405
Symbol 404 TextUses:61Used by:405
Symbol 405 MovieClip {scoreMov}Uses:403 404
Symbol 406 GraphicUsed by:407
Symbol 407 MovieClipUses:406Used by:426 427 432 433 434 435 436 437 438
Symbol 408 GraphicUsed by:409
Symbol 409 MovieClipUses:408Used by:426 427 432 433 434 435 436 437 438
Symbol 410 GraphicUsed by:411
Symbol 411 MovieClipUses:410Used by:426 427 432 433 434 435 436 437 438
Symbol 412 GraphicUsed by:413
Symbol 413 MovieClipUses:412Used by:426 427 432 433 434 435 436 437 438
Symbol 414 MovieClipUsed by:426 427 432 433 434 435 436 437 438
Symbol 415 GraphicUsed by:416
Symbol 416 MovieClipUses:415Used by:426 427 432 433 434 435 436 437 438
Symbol 417 GraphicUsed by:426 427 432 433 434 435 436 437 438
Symbol 418 GraphicUsed by:426 427 430 432 433 434 435 436 437 438
Symbol 419 GraphicUsed by:420
Symbol 420 MovieClipUses:419Used by:426 427 432 433 434 435 436 437 438
Symbol 421 MovieClipUses:98Used by:426 427 432 433 434 435 436 437 438
Symbol 422 GraphicUsed by:425
Symbol 423 GraphicUsed by:424
Symbol 424 MovieClipUses:423Used by:425
Symbol 425 MovieClip {Hay_ya_sa_fla.swordEn5_130}Uses:422 424Used by:426 427 432 433 434 435 436 437 438
Symbol 426 MovieClip {enemy5Defend}Uses:407 409 411 413 414 416 417 418 420 421 425
Symbol 427 MovieClip {enemy5Static}Uses:407 409 411 413 414 416 417 418 420 421 425
Symbol 428 GraphicUsed by:429
Symbol 429 MovieClip {enemy5Hit}Uses:428
Symbol 430 MovieClipUses:418Used by:432 433
Symbol 431 MovieClipUses:177Used by:432
Symbol 432 MovieClip {enemy5Lie}Uses:407 409 411 413 414 416 417 430 431 420 421 425 418
Symbol 433 MovieClip {enemy5Sword1}Uses:407 409 411 413 414 416 417 418 420 421 425 430
Symbol 434 MovieClip {enemy5Star}Uses:407 409 411 413 414 416 417 418 420 421 425
Symbol 435 MovieClip {enemy5Sword2}Uses:407 409 411 413 414 416 417 418 420 421 425
Symbol 436 MovieClip {enemy5Walk}Uses:407 409 411 413 414 416 417 418 420 421 425
Symbol 437 MovieClip {enemy5Sword3}Uses:407 409 411 413 414 416 417 418 420 421 425
Symbol 438 MovieClip {enemy5Fall}Uses:407 409 411 413 414 416 417 418 420 421 425
Symbol 439 MovieClip {Enemy5}
Symbol 440 MovieClip {enemy7JumpAndShoot}Uses:163 165 166 168 170 172 174 175 176 178 180 184 188
Symbol 441 MovieClip {enemy4Jump}Uses:192 194 196 198 199 201 202 203 204 206 208 212
Symbol 442 MovieClip {ninjaSwordUpMov}Uses:115 116 117 119 120 122 123 124 125 127 128 129 133 215
Symbol 443 GraphicUsed by:444
Symbol 444 MovieClipUses:443Used by:447
Symbol 445 GraphicUsed by:446
Symbol 446 MovieClipUses:445Used by:447
Symbol 447 MovieClipUses:444 446Used by:448 451
Symbol 448 MovieClip {bird}Uses:447Used by:452
Symbol 449 BitmapUsed by:450
Symbol 450 GraphicUses:449Used by:452
Symbol 451 MovieClipUses:447Used by:452
Symbol 452 MovieClip {level2}Uses:46 450 451 448 57
Symbol 453 BitmapUsed by:454
Symbol 454 GraphicUses:453Used by:455
Symbol 455 MovieClip {bridgeTop}Uses:454
Symbol 456 BitmapUsed by:457
Symbol 457 GraphicUses:456Used by:458
Symbol 458 MovieClip {enemy2Bar}Uses:457
Symbol 459 BitmapUsed by:460
Symbol 460 GraphicUses:459Used by:461
Symbol 461 MovieClip {enemy3Bar}Uses:460
Symbol 462 BitmapUsed by:463
Symbol 463 GraphicUses:462Used by:464
Symbol 464 MovieClip {enemy6Bar}Uses:463
Symbol 465 BitmapUsed by:466
Symbol 466 GraphicUses:465Used by:467
Symbol 467 MovieClip {enemy7Bar}Uses:466
Symbol 468 BitmapUsed by:469
Symbol 469 GraphicUses:468Used by:470
Symbol 470 MovieClip {enemy4Bar}Uses:469
Symbol 471 BitmapUsed by:472
Symbol 472 GraphicUses:471Used by:473
Symbol 473 MovieClip {enemy5Bar}Uses:472
Symbol 474 BitmapUsed by:475
Symbol 475 GraphicUses:474Used by:476
Symbol 476 MovieClip {enemy1Bar}Uses:475
Symbol 477 TextUses:65Used by:478
Symbol 478 MovieClipUses:477Used by:479
Symbol 479 MovieClip {saveScoreBtn}Uses:64 478 77
Symbol 480 MovieClip {enemy3SwordUp}Uses:81 83 85 87 89 91 92 93 95 97 99 103 104
Symbol 481 MovieClip {enemy7Kick}Uses:163 165 166 168 170 172 174 175 176 178 180 184 188
Symbol 482 GraphicUsed by:483
Symbol 483 MovieClip {soundObj}Uses:482
Symbol 484 BitmapUsed by:486
Symbol 485 BitmapUsed by:486
Symbol 486 GraphicUses:484 485Used by:487
Symbol 487 MovieClip {level3TopObj1}Uses:486
Symbol 488 GraphicUses:51Used by:489
Symbol 489 MovieClip {level3TopObj2}Uses:488
Symbol 490 GraphicUsed by:493
Symbol 491 GraphicUsed by:492
Symbol 492 MovieClipUses:491Used by:493
Symbol 493 MovieClipUses:490 492Used by:494
Symbol 494 MovieClip {energyBall}Uses:493
Symbol 495 BitmapUsed by:496
Symbol 496 GraphicUses:495Used by:497
Symbol 497 MovieClip {level4TopObj}Uses:496
Symbol 498 GraphicUsed by:499
Symbol 499 MovieClipUses:498Used by:519 522 525 526 527 528 529 530 531 532 533
Symbol 500 MovieClipUses:86Used by:519 522 525 526 527 528 529 530 531 532 533
Symbol 501 GraphicUsed by:502
Symbol 502 MovieClipUses:501Used by:519 522 525 526 527 528 529 530 531 532 533
Symbol 503 GraphicUsed by:519 522 525 526 527 528 529 530 531 532 533
Symbol 504 GraphicUsed by:519 522 524 525 526 527 528 529 530 531 532 533
Symbol 505 GraphicUsed by:506
Symbol 506 MovieClipUses:505Used by:519 522 525 526 527 528 529 530 531 532 533
Symbol 507 GraphicUsed by:508
Symbol 508 MovieClipUses:507Used by:519 522 525 526 527 528 529 530 531 532 533
Symbol 509 MovieClipUses:182Used by:510
Symbol 510 MovieClip {Hay_ya_sa_fla.shoe2En6_37}Uses:98 509Used by:519 522 525 526 527 528 529 530 531 532 533
Symbol 511 GraphicUsed by:512
Symbol 512 MovieClipUses:511Used by:519 522 525 526 527 528 529 530 531 532 533
Symbol 513 MovieClipUses:90Used by:519 522 525 526 527 528 529 530 531 532 533
Symbol 514 MovieClipUses:82Used by:519 522 525 526 527 528 529 530 531 532 533
Symbol 515 GraphicUsed by:518
Symbol 516 GraphicUsed by:517
Symbol 517 MovieClipUses:516Used by:518
Symbol 518 MovieClip {Hay_ya_sa_fla.swordEn6_39}Uses:515 517Used by:519 522 525 526 527 528 529 530 531 532 533
Symbol 519 MovieClip {enemy6Defend}Uses:499 500 502 503 504 506 508 510 512 513 514 518
Symbol 520 GraphicUsed by:521
Symbol 521 MovieClip {enemy6Hit}Uses:520
Symbol 522 MovieClip {enemy6Static}Uses:512 514 499 500 502 513 503 504 506 508 510 518
Symbol 523 MovieClip {Enemy6}
Symbol 524 MovieClipUses:504Used by:525 527
Symbol 525 MovieClip {enemy6SwordUp}Uses:512 514 499 500 502 513 503 504 506 508 510 518 524
Symbol 526 MovieClip {enemy6Sword2}Uses:512 514 499 500 502 513 503 504 506 508 510 518
Symbol 527 MovieClip {enemy6Sword1}Uses:512 514 499 500 502 513 503 504 506 508 510 518 524
Symbol 528 MovieClip {enemy6Sword3}Uses:512 514 499 500 502 513 503 504 506 508 510 518
Symbol 529 MovieClip {enemy6Kick}Uses:512 514 499 500 502 513 503 504 506 508 510 518
Symbol 530 MovieClip {enemy6Roll}Uses:512 514 499 500 502 513 503 504 506 508 510 518
Symbol 531 MovieClip {enemy6Walk}Uses:512 514 499 500 502 513 503 504 506 508 510 518
Symbol 532 MovieClip {enemy6Fall}Uses:512 514 499 500 502 513 503 504 506 508 510 518
Symbol 533 MovieClip {enemy6Lie}Uses:512 514 499 500 502 513 503 504 506 508 510 518
Symbol 534 GraphicUsed by:537
Symbol 535 GraphicUsed by:537
Symbol 536 GraphicUsed by:537
Symbol 537 MovieClip {messageMov}Uses:534 535 536
Symbol 538 GraphicUsed by:539
Symbol 539 MovieClip {comicsWord1}Uses:538
Symbol 540 MovieClip {enemy7Roll}Uses:163 165 166 168 170 172 174 175 176 178 180 184 188
Symbol 541 GraphicUsed by:547
Symbol 542 GraphicUsed by:543
Symbol 543 MovieClipUses:542Used by:547
Symbol 544 GraphicUsed by:547
Symbol 545 GraphicUsed by:546
Symbol 546 MovieClipUses:545Used by:547
Symbol 547 MovieClip {enemyLifeBar}Uses:541 543 544 546
Symbol 548 GraphicUsed by:558
Symbol 549 GraphicUsed by:550
Symbol 550 MovieClipUses:549Used by:551
Symbol 551 MovieClipUses:550Used by:554
Symbol 552 GraphicUsed by:553
Symbol 553 MovieClipUses:552Used by:554
Symbol 554 MovieClipUses:551 553Used by:558
Symbol 555 GraphicUsed by:556
Symbol 556 MovieClipUses:555Used by:558
Symbol 557 GraphicUsed by:558
Symbol 558 MovieClipUses:548 554 556 557Used by:559
Symbol 559 MovieClip {ninjaLifeBonus}Uses:558
Symbol 560 GraphicUsed by:561
Symbol 561 MovieClip {transScreen}Uses:560
Symbol 562 EditableTextUses:61Used by:564
Symbol 563 GraphicUsed by:564
Symbol 564 MovieClip {speedBonus}Uses:562 563
Symbol 565 GraphicUsed by:566
Symbol 566 MovieClipUses:565Used by:572
Symbol 567 GraphicUsed by:568
Symbol 568 MovieClipUses:567Used by:572
Symbol 569 GraphicUsed by:570
Symbol 570 MovieClipUses:569Used by:571
Symbol 571 MovieClip {AdlibToolbar_fla.Symbol1_5}Uses:570Used by:572
Symbol 572 MovieClip {AdlibToolbar_fla.spriteButtons_2}Uses:566 568 571Used by:573
Symbol 573 MovieClip {AdlibToolbar}Uses:572Used by:Timeline

Instance Names

"__id0_"Frame 1Symbol 573 MovieClip {AdlibToolbar}
"border"Symbol 58 MovieClip {level3} Frame 1Symbol 46 MovieClip
"yLevel"Symbol 58 MovieClip {level3} Frame 1Symbol 57 MovieClip {yLevelBasic}
"obs"Symbol 58 MovieClip {level3} Frame 1Symbol 57 MovieClip {yLevelBasic}
"yLevel"Symbol 58 MovieClip {level3} Frame 1Symbol 57 MovieClip {yLevelBasic}
"yLevel"Symbol 58 MovieClip {level3} Frame 1Symbol 57 MovieClip {yLevelBasic}
"yLevel"Symbol 58 MovieClip {level3} Frame 1Symbol 57 MovieClip {yLevelBasic}
"yLevel"Symbol 58 MovieClip {level3} Frame 1Symbol 57 MovieClip {yLevelBasic}
"obs"Symbol 58 MovieClip {level3} Frame 1Symbol 57 MovieClip {yLevelBasic}
"score_txt"Symbol 68 MovieClip {endScreen} Frame 1Symbol 63 EditableText
"playAgain_btn"Symbol 68 MovieClip {endScreen} Frame 1Symbol 67 MovieClip {Hay_ya_sa_fla.playAgainBtn_285}
"start_btn"Symbol 79 MovieClip {startScreen} Frame 1Symbol 78 MovieClip {Hay_ya_sa_fla.startBtn_282}
"hit"Symbol 103 MovieClip {Hay_ya_sa_fla.swordEn3_72} Frame 1Symbol 102 MovieClip
"sword"Symbol 105 MovieClip {enemy3Sword1} Frame 1Symbol 103 MovieClip {Hay_ya_sa_fla.swordEn3_72}
"sword"Symbol 106 MovieClip {enemy3Walk} Frame 1Symbol 103 MovieClip {Hay_ya_sa_fla.swordEn3_72}
"sword"Symbol 107 MovieClip {enemy3Fall} Frame 1Symbol 103 MovieClip {Hay_ya_sa_fla.swordEn3_72}
"sword"Symbol 108 MovieClip {enemy3Defend} Frame 1Symbol 103 MovieClip {Hay_ya_sa_fla.swordEn3_72}
"sword"Symbol 109 MovieClip {enemy3Static} Frame 1Symbol 103 MovieClip {Hay_ya_sa_fla.swordEn3_72}
"sword"Symbol 110 MovieClip {enemy3Lie} Frame 1Symbol 103 MovieClip {Hay_ya_sa_fla.swordEn3_72}
"hit"Symbol 133 MovieClip {Hay_ya_sa_fla.ninSword_104} Frame 1Symbol 132 MovieClip
"sword"Symbol 134 MovieClip {ninjaSword3} Frame 1Symbol 133 MovieClip {Hay_ya_sa_fla.ninSword_104}
"hit"Symbol 156 MovieClip {Hay_ya_sa_fla.swordEn1_213} Frame 1Symbol 132 MovieClip
"sword"Symbol 157 MovieClip {enemy1Sword1} Frame 1Symbol 156 MovieClip {Hay_ya_sa_fla.swordEn1_213}
"hit"Symbol 159 MovieClip {Hay_ya_sa_fla.swordMov_268} Frame 1Symbol 132 MovieClip
"sword"Symbol 160 MovieClip {ninjaStar} Frame 1Symbol 159 MovieClip {Hay_ya_sa_fla.swordMov_268}
"hand"Symbol 160 MovieClip {ninjaStar} Frame 1Symbol 115 MovieClip
"sword"Symbol 161 MovieClip {ninjaSword2} Frame 1Symbol 133 MovieClip {Hay_ya_sa_fla.ninSword_104}
"hit"Symbol 184 MovieClip {Hay_ya_sa_fla.shoe2En7_22} Frame 1Symbol 183 MovieClip
"hit"Symbol 188 MovieClip {Hay_ya_sa_fla.swordEn7_24} Frame 1Symbol 187 MovieClip
"sword"Symbol 190 MovieClip {enemy7Sword1} Frame 1Symbol 188 MovieClip {Hay_ya_sa_fla.swordEn7_24}
"hit"Symbol 212 MovieClip {Hay_ya_sa_fla.swordEn4_117} Frame 1Symbol 211 MovieClip
"sword"Symbol 214 MovieClip {enemy4Sword1} Frame 1Symbol 212 MovieClip {Hay_ya_sa_fla.swordEn4_117}
"sword"Symbol 216 MovieClip {ninjaSword1} Frame 1Symbol 133 MovieClip {Hay_ya_sa_fla.ninSword_104}
"hit"Symbol 219 MovieClip {Hay_ya_sa_fla.shoeHit_260} Frame 1Symbol 218 MovieClip
"leg"Symbol 220 MovieClip {ninjaKick} Frame 1Symbol 219 MovieClip {Hay_ya_sa_fla.shoeHit_260}
"sword"Symbol 221 MovieClip {enemy7Walk} Frame 1Symbol 188 MovieClip {Hay_ya_sa_fla.swordEn7_24}
"sword"Symbol 222 MovieClip {enemy4Walk} Frame 1Symbol 212 MovieClip {Hay_ya_sa_fla.swordEn4_117}
"sword"Symbol 223 MovieClip {enemy1Walk} Frame 1Symbol 156 MovieClip {Hay_ya_sa_fla.swordEn1_213}
"sword"Symbol 224 MovieClip {ninjaWalk} Frame 1Symbol 133 MovieClip {Hay_ya_sa_fla.ninSword_104}
"sword"Symbol 225 MovieClip {ninjaUp} Frame 1Symbol 133 MovieClip {Hay_ya_sa_fla.ninSword_104}
"sword"Symbol 226 MovieClip {enemy7Static} Frame 1Symbol 188 MovieClip {Hay_ya_sa_fla.swordEn7_24}
"sword"Symbol 231 MovieClip {enemy4Roll} Frame 1Symbol 212 MovieClip {Hay_ya_sa_fla.swordEn4_117}
"sword"Symbol 232 MovieClip {ninjaDown} Frame 1Symbol 133 MovieClip {Hay_ya_sa_fla.ninSword_104}
"questionFrame"Symbol 256 MovieClip {storyBoard} Frame 1Symbol 237 MovieClip
"frameLevel5"Symbol 256 MovieClip {storyBoard} Frame 1Symbol 240 MovieClip
"frameLevel4"Symbol 256 MovieClip {storyBoard} Frame 1Symbol 244 MovieClip
"frameLevel3"Symbol 256 MovieClip {storyBoard} Frame 1Symbol 248 MovieClip
"frameLevel2"Symbol 256 MovieClip {storyBoard} Frame 1Symbol 251 MovieClip
"frameLevel1"Symbol 256 MovieClip {storyBoard} Frame 1Symbol 255 MovieClip
"border"Symbol 265 MovieClip {level5} Frame 1Symbol 46 MovieClip
"yLevel"Symbol 265 MovieClip {level5} Frame 1Symbol 57 MovieClip {yLevelBasic}
"yLevel"Symbol 265 MovieClip {level5} Frame 1Symbol 57 MovieClip {yLevelBasic}
"border"Symbol 268 MovieClip {level4} Frame 1Symbol 46 MovieClip
"yLevel"Symbol 268 MovieClip {level4} Frame 1Symbol 57 MovieClip {yLevelBasic}
"yLevel"Symbol 268 MovieClip {level4} Frame 1Symbol 57 MovieClip {yLevelBasic}
"border"Symbol 275 MovieClip {level1} Frame 1Symbol 46 MovieClip
"yLevel"Symbol 275 MovieClip {level1} Frame 1Symbol 57 MovieClip {yLevelBasic}
"yLevel"Symbol 275 MovieClip {level1} Frame 1Symbol 57 MovieClip {yLevelBasic}
"yLevel"Symbol 275 MovieClip {level1} Frame 1Symbol 57 MovieClip {yLevelBasic}
"obs"Symbol 275 MovieClip {level1} Frame 1Symbol 274 MovieClip
"obs"Symbol 275 MovieClip {level1} Frame 1Symbol 274 MovieClip
"yLevel"Symbol 275 MovieClip {level1} Frame 1Symbol 57 MovieClip {yLevelBasic}
"sword"Symbol 276 MovieClip {enemy7Fall} Frame 1Symbol 188 MovieClip {Hay_ya_sa_fla.swordEn7_24}
"sword"Symbol 277 MovieClip {enemy4Fall} Frame 1Symbol 212 MovieClip {Hay_ya_sa_fla.swordEn4_117}
"sword"Symbol 278 MovieClip {enemy1Fall} Frame 1Symbol 156 MovieClip {Hay_ya_sa_fla.swordEn1_213}
"sword"Symbol 279 MovieClip {ninjaFall} Frame 1Symbol 133 MovieClip {Hay_ya_sa_fla.ninSword_104}
"sword"Symbol 280 MovieClip {enemy7Defend} Frame 1Symbol 188 MovieClip {Hay_ya_sa_fla.swordEn7_24}
"sword"Symbol 281 MovieClip {enemy4Defend} Frame 1Symbol 212 MovieClip {Hay_ya_sa_fla.swordEn4_117}
"sword"Symbol 282 MovieClip {enemy4Static} Frame 1Symbol 212 MovieClip {Hay_ya_sa_fla.swordEn4_117}
"sword"Symbol 283 MovieClip {enemy7Lie} Frame 1Symbol 188 MovieClip {Hay_ya_sa_fla.swordEn7_24}
"sword"Symbol 284 MovieClip {enemy4Lie} Frame 1Symbol 212 MovieClip {Hay_ya_sa_fla.swordEn4_117}
"sword"Symbol 287 MovieClip {enemy1Lie} Frame 1Symbol 156 MovieClip {Hay_ya_sa_fla.swordEn1_213}
"sword"Symbol 288 MovieClip {enemy1Static} Frame 1Symbol 156 MovieClip {Hay_ya_sa_fla.swordEn1_213}
"sword"Symbol 289 MovieClip {ninjaLie} Frame 1Symbol 133 MovieClip {Hay_ya_sa_fla.ninSword_104}
"sword"Symbol 291 MovieClip {ninjaDefendMov} Frame 1Symbol 133 MovieClip {Hay_ya_sa_fla.ninSword_104}
"sword"Symbol 292 MovieClip {ninjaStatic} Frame 1Symbol 133 MovieClip {Hay_ya_sa_fla.ninSword_104}
"sword"Symbol 303 MovieClip {enemy1Sword2} Frame 1Symbol 156 MovieClip {Hay_ya_sa_fla.swordEn1_213}
"sword"Symbol 304 MovieClip {enemy7SwordUp} Frame 1Symbol 188 MovieClip {Hay_ya_sa_fla.swordEn7_24}
"sword"Symbol 305 MovieClip {enemy7Sword3} Frame 1Symbol 188 MovieClip {Hay_ya_sa_fla.swordEn7_24}
"sword"Symbol 306 MovieClip {enemy7Sword2} Frame 1Symbol 188 MovieClip {Hay_ya_sa_fla.swordEn7_24}
"sword"Symbol 307 MovieClip {enemy4Sword2} Frame 1Symbol 212 MovieClip {Hay_ya_sa_fla.swordEn4_117}
"lifeMask"Symbol 320 MovieClip {lifeBar} Frame 1Symbol 316 MovieClip
"life1"Symbol 323 MovieClip {lifeCountBar} Frame 1Symbol 322 MovieClip
"life2"Symbol 323 MovieClip {lifeCountBar} Frame 1Symbol 322 MovieClip
"life3"Symbol 323 MovieClip {lifeCountBar} Frame 1Symbol 322 MovieClip
"life4"Symbol 323 MovieClip {lifeCountBar} Frame 1Symbol 322 MovieClip
"starCountTxt"Symbol 327 MovieClip {ninjaStarBar} Frame 1Symbol 326 EditableText
"hit"Symbol 355 MovieClip {Hay_ya_sa_fla.swordEn2_174} Frame 1Symbol 354 MovieClip
"sword"Symbol 356 MovieClip {enemy2Lie} Frame 1Symbol 355 MovieClip {Hay_ya_sa_fla.swordEn2_174}
"sword"Symbol 357 MovieClip {enemy2Static} Frame 1Symbol 355 MovieClip {Hay_ya_sa_fla.swordEn2_174}
"sword"Symbol 358 MovieClip {enemy2Fall} Frame 1Symbol 355 MovieClip {Hay_ya_sa_fla.swordEn2_174}
"sword"Symbol 362 MovieClip {enemy2Sword1} Frame 1Symbol 355 MovieClip {Hay_ya_sa_fla.swordEn2_174}
"sword"Symbol 363 MovieClip {enemy2Walk} Frame 1Symbol 355 MovieClip {Hay_ya_sa_fla.swordEn2_174}
"levelTxt"Symbol 402 MovieClip {levelMov} Frame 1Symbol 400 EditableText
"scoreTxt"Symbol 405 MovieClip {scoreMov} Frame 1Symbol 403 EditableText
"hit"Symbol 425 MovieClip {Hay_ya_sa_fla.swordEn5_130} Frame 1Symbol 424 MovieClip
"sword"Symbol 426 MovieClip {enemy5Defend} Frame 1Symbol 425 MovieClip {Hay_ya_sa_fla.swordEn5_130}
"sword"Symbol 427 MovieClip {enemy5Static} Frame 1Symbol 425 MovieClip {Hay_ya_sa_fla.swordEn5_130}
"sword"Symbol 432 MovieClip {enemy5Lie} Frame 1Symbol 425 MovieClip {Hay_ya_sa_fla.swordEn5_130}
"sword"Symbol 433 MovieClip {enemy5Sword1} Frame 1Symbol 425 MovieClip {Hay_ya_sa_fla.swordEn5_130}
"sword"Symbol 434 MovieClip {enemy5Star} Frame 1Symbol 425 MovieClip {Hay_ya_sa_fla.swordEn5_130}
"hand"Symbol 434 MovieClip {enemy5Star} Frame 1Symbol 407 MovieClip
"sword"Symbol 435 MovieClip {enemy5Sword2} Frame 1Symbol 425 MovieClip {Hay_ya_sa_fla.swordEn5_130}
"sword"Symbol 436 MovieClip {enemy5Walk} Frame 1Symbol 425 MovieClip {Hay_ya_sa_fla.swordEn5_130}
"sword"Symbol 437 MovieClip {enemy5Sword3} Frame 1Symbol 425 MovieClip {Hay_ya_sa_fla.swordEn5_130}
"sword"Symbol 438 MovieClip {enemy5Fall} Frame 1Symbol 425 MovieClip {Hay_ya_sa_fla.swordEn5_130}
"sword"Symbol 440 MovieClip {enemy7JumpAndShoot} Frame 1Symbol 188 MovieClip {Hay_ya_sa_fla.swordEn7_24}
"hand"Symbol 440 MovieClip {enemy7JumpAndShoot} Frame 1Symbol 163 MovieClip
"sword"Symbol 441 MovieClip {enemy4Jump} Frame 1Symbol 212 MovieClip {Hay_ya_sa_fla.swordEn4_117}
"sword"Symbol 442 MovieClip {ninjaSwordUpMov} Frame 1Symbol 133 MovieClip {Hay_ya_sa_fla.ninSword_104}
"border"Symbol 452 MovieClip {level2} Frame 1Symbol 46 MovieClip
"yLevel"Symbol 452 MovieClip {level2} Frame 1Symbol 57 MovieClip {yLevelBasic}
"yLevel"Symbol 452 MovieClip {level2} Frame 1Symbol 57 MovieClip {yLevelBasic}
"yLevel"Symbol 452 MovieClip {level2} Frame 1Symbol 57 MovieClip {yLevelBasic}
"sword"Symbol 480 MovieClip {enemy3SwordUp} Frame 1Symbol 103 MovieClip {Hay_ya_sa_fla.swordEn3_72}
"sword"Symbol 481 MovieClip {enemy7Kick} Frame 1Symbol 188 MovieClip {Hay_ya_sa_fla.swordEn7_24}
"sword"Symbol 481 MovieClip {enemy7Kick} Frame 1Symbol 184 MovieClip {Hay_ya_sa_fla.shoe2En7_22}
"hit"Symbol 510 MovieClip {Hay_ya_sa_fla.shoe2En6_37} Frame 1Symbol 509 MovieClip
"hit"Symbol 518 MovieClip {Hay_ya_sa_fla.swordEn6_39} Frame 1Symbol 517 MovieClip
"sword"Symbol 519 MovieClip {enemy6Defend} Frame 1Symbol 518 MovieClip {Hay_ya_sa_fla.swordEn6_39}
"sword"Symbol 522 MovieClip {enemy6Static} Frame 1Symbol 518 MovieClip {Hay_ya_sa_fla.swordEn6_39}
"sword"Symbol 525 MovieClip {enemy6SwordUp} Frame 1Symbol 518 MovieClip {Hay_ya_sa_fla.swordEn6_39}
"sword"Symbol 526 MovieClip {enemy6Sword2} Frame 1Symbol 518 MovieClip {Hay_ya_sa_fla.swordEn6_39}
"sword"Symbol 527 MovieClip {enemy6Sword1} Frame 1Symbol 518 MovieClip {Hay_ya_sa_fla.swordEn6_39}
"sword"Symbol 528 MovieClip {enemy6Sword3} Frame 1Symbol 518 MovieClip {Hay_ya_sa_fla.swordEn6_39}
"sword"Symbol 529 MovieClip {enemy6Kick} Frame 1Symbol 510 MovieClip {Hay_ya_sa_fla.shoe2En6_37}
"sword"Symbol 530 MovieClip {enemy6Roll} Frame 1Symbol 518 MovieClip {Hay_ya_sa_fla.swordEn6_39}
"sword"Symbol 531 MovieClip {enemy6Walk} Frame 1Symbol 518 MovieClip {Hay_ya_sa_fla.swordEn6_39}
"sword"Symbol 532 MovieClip {enemy6Fall} Frame 1Symbol 518 MovieClip {Hay_ya_sa_fla.swordEn6_39}
"sword"Symbol 533 MovieClip {enemy6Lie} Frame 1Symbol 518 MovieClip {Hay_ya_sa_fla.swordEn6_39}
"sword"Symbol 540 MovieClip {enemy7Roll} Frame 1Symbol 188 MovieClip {Hay_ya_sa_fla.swordEn7_24}
"lifeMask"Symbol 547 MovieClip {enemyLifeBar} Frame 1Symbol 543 MovieClip
"bonus_txt"Symbol 564 MovieClip {speedBonus} Frame 1Symbol 562 EditableText
"mc_Icon"Symbol 571 MovieClip {AdlibToolbar_fla.Symbol1_5} Frame 1Symbol 570 MovieClip
"btn_All"Symbol 572 MovieClip {AdlibToolbar_fla.spriteButtons_2} Frame 1Symbol 566 MovieClip
"btn_FX"Symbol 572 MovieClip {AdlibToolbar_fla.spriteButtons_2} Frame 1Symbol 568 MovieClip
"mc_IconHolder"Symbol 572 MovieClip {AdlibToolbar_fla.spriteButtons_2} Frame 1Symbol 571 MovieClip {AdlibToolbar_fla.Symbol1_5}
"mc_Toolbar"Symbol 573 MovieClip {AdlibToolbar} Frame 1Symbol 572 MovieClip {AdlibToolbar_fla.spriteButtons_2}

Special Tags

FileAttributes (69)Timeline Frame 1Access local files only, Metadata not present, AS3.




http://swfchan.com/24/116939/info.shtml
Created: 8/3 -2019 08:47:44 Last modified: 8/3 -2019 08:47:44 Server time: 22/12 -2024 12:35:24